> ## Documentation Index
> Fetch the complete documentation index at: https://hub.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Teamtailor Partner API

> To activate the Teamtailor Partner API or Public + Partner API in StackOne for integrating your Teamtailor Marketplace Integration, please follow the necessary steps.

## Overview

StackOne allows you to integrate your Teamtailor integration app with the Assessment and Background Check categories.
This guide covers how you can set up/configure integration at Teamtailor and integrate with StackOne.

## Partnership Requirements

> [!WARNING]
>
> The partnership with Teamtailor Integration is necessary to proceed with this documentation.

To become a Teamtailor Integration Partner, navigate to [resource partnership](https://www.teamtailor.com/en/resources/partnerships),
then click on `Apply today` which will scroll down to the Integration Partner section that contains a `Find out more` button to
direct you to the [Integrate with Teamtailor](https://teamtailor.notion.site/Integrate-with-Teamtailor-3919690568754aaaa7ffd681afe955f2) page.

![Integrate with Teamtailor page](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_tech_partner_page.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=7333332c94aa55be27be87a05066f327)

Click on `Apply as Tech Partner!` button to fill out the **Teamtailor - Tech Partner Integration Request Form**.

> [!NOTE]
>
> Once you have obtained the Teamtailor partnership, follow the steps below to create an integration with Teamtailor for the Assessment & Background Check categories.

## StackOne approach for Teamtailor Integration

Once you [Create an Integration Partner](#provider-side-setup) in Teamtailor, the next step is to enable and configure Teamtailor in StackOne. This process will generate an **External Trigger Token** for users, which acts as a key to activate/enable your integration through the Teamtailor Marketplace.

Users will utilize this **External Trigger Token** to integrate the Assessment/Background Check partner application into their job stage workflow.

![StackOne approach](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/Stackone_approach_on_Teamtailor.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=97895a9939fb1b7da00bfc8969655f89)

## Provider Side Setup

**1. Navigate to Integration's hub**

Log into your Teamtailor account. To access the *Integration Hub*, select the **Settings** option in the top-right corner.

![navigate to settings](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/0f5ddaa3aceb519d244f1bacd0f03f9b5135bbce4315993a2472e93217def40a-create_a_partner_1.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=ccd1072a4cd888b1ff029b80b4bb5cd5)

**2. Start creating the Integration Partner**

To add a new partner, click on the `CREATE A NEW PARTNER` button.

![create a partner](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/0b17226cdb027df25dd9bba9fd0b0ecc97fb2fb60f7a36244a3bc55dc3862c46-create_a_partner_2.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=413f5bac8547be0220aed25b278dab2a)

**3. Fill out the form to create a partner app**

Complete the New Partner's form by filling out all the required fields:

* **Partner's Name** - Enter the name of the integration partner.
* **Partner Base URL** - Enter the endpoint URL provided by StackOne that will be used to fetch the input field configurations with the list of packages and to send candidate test notifications.

```plaintext theme={null}
https://api.stackone.com/external-trigger/teamtailor
```

![new partner](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/0f7b82b6b6ba2bdba1f15aa0677e6838a9cb8270cc995c0eca95287d277f2490-new_partner.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=8d0b9efaefbbf695294025ad991970fe)

* **Category in marketplace** - The integration will be categorized and displayed under the chosen category, such as Assessments or Background Checks, on Teamtailor's Marketplace.
* **Additional options (Activation Form)** - Enter the following JSON into the activation form field:

![Activation Form](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/0aa6e654318c3dc39fd65964d51609d92b978d7ecc011a9422218d3dea886ebd-activation_form.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=cfc3f34676a9656a955fddb740552fa1)

```plaintext theme={null}
{
   "config":{
      "fields":[
         {
            "type":"infobox",
            "content":"<a href='/integration-configuration-concepts/ats/teamtailor-assessment-or-background-check'>Click</a> here to learn how to use this integration",
            "icon":"info"
         },
         {
            "id":"externalTriggerToken",
            "type":"password",
            "label":"External Trigger Token",
            "required":true,
            "description":"The token to be used to trigger the workflow externally"
         }
      ]
   }
}
```

> [!NOTE]
>
> This **External Trigger Token** field will be visible to the user when enabling the integration from the Teamtailor Marketplace.

After saving, the partner integration will be successfully created.

### To obtain the credentials for partner integration

**1. Find your Integration credentials**

Next to your partner Integration's name on the Grid, you will find the Integration ID.

![Integration hub](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/20cbc704994cabb08d5470f3879cf4f835fd930c9486df63a86b1726a3758dab-Integration_hub_grid.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=09cf6817f2e87d8404ea53f526aba9fa)

By clicking on `Show Details`, you will be able to access the **API Key**.

![Api Key](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/f762c6a11af0f8a1cc446d8fed106db773eed52dff6aacb7a77e7a58e387434d-show_details.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=10a31c81c2b080dd1c29108b990d2ebf)

## StackOne Configuration

**1. Navigate to enable the Teamtailor at StackOne**

Go to the ATS category on the *Integrations* page and activate Teamtailor

![To Enable Teamtailor](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/teamtailor-partner-api.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=779289c2d45afea85f5d4af11ba8cbe1)

**2. Enable and Configure Teamtailor in StackOne**

Fill out the necessary fields in the **Teamtailor - Configuration** modal:

* **Authentication Type**: Select either `Public + Partner API` or `Partner API` to integrate with Teamtailor (for Assessment/Background Check integration).

> [accordion] Difference between Public API & Partner API
>
> <ul>
>   <li>**Public API:** Access to the StackOne Unified APIs, excluding the Assessments and Background Checks Unified API and its features.</li>
>
>   <li>**Partner API:** Access to the Assessments and Background Checks Unified API and its features, but not other StackOne Unified APIs. This allows you to integrate your provider's partner app with StackOne.</li>
>
>   <li>**Public + Partner API:** Access to all StackOne Unified APIs, including the Assessments and Background Checks Unified API and its features.</li>
> </ul>

> [!NOTE]
>
> * If you select `Public + Partner API`, the hiring team's data will be included in the webhook notification.\\
>
> * If you select `Partner API`, the hiring team's data will not be included in the webhook notification.

* **Partner Category**: Select the category that corresponds to your integration on Teamtailor's Marketplace page. For instance, if your integration is listed under the Assessments category, please select **Assessment** from the dropdown menu.
* **Package's List Endpoint URL** - Implement and provide an endpoint to StackOne that StackOne will use to retrieve the list of packages when the recruiter wants to send a test to a candidate.

Implement the following POST endpoint:

```bash theme={null}
curl --location 'https://your-domain.com/<route-to-the-post-endpoint>' \
--header 'Content-Type: application/json' \
--header 'x-stackone-signature: string' \
--header 'Authorization: Basic <base64-encoded-api-key>' \
--data '{
    "job_id": "49201091",
    "account_id": "456551489512493412",
    "provider": "teamtailor"
}'
```

The expected response of the POST endpoint (list of packages). Refer to:

* [List Assessments Packages](https://hub.stackone.com/ats/api-reference/assessments/packages/list-assessments-packages.md)
* [List Background Check Packages](https://hub.stackone.com/ats/api-reference/background-checks/packages/list-background-check-packages.md)

Enter the endpoint into the designated field:

```plaintext theme={null}
https://your-domain.com/<route-to-the-post-endpoint>
```

* **Partner Integration ID**: You can find the Integration ID next to the Integration Name under **Settings > Integrations Hub** in Teamtailor.
* **Partner Integration API Key**: The API key can be found in the Integration details under **Settings > Integrations Hub** in Teamtailor.

> [!NOTE]
>
> To get Partner Integration ID & API Key, [check this](#to-obtain-the-credentials-for-partner-integration)

* **Package ID** - If you do not have the Package's List Endpoint URL, you can specify a particular package ID that will be visible to the recruiter when they wish to send the test to the candidate.

> [accordion] How is the Package's List Endpoint URL different from a Static Package ID?
>
> > [!NOTE]
> >
> > The Package's List Endpoint URL allows StackOne to fetch a list of available packages from your system, while the Static Package ID is fixed and available for users to select on the provider's side.
>
> **When you have a Package's List Endpoint URL**
>
> A list of packages will be available to select in Teamtailor.
> ![Dynamic Package ID](https://hub.stackone.com/images/teamtailor/assessment-or-background-check/teamtailor_dynamic_package.png)
>
> **When you have a Static Package ID**
>
> A static package ID will be available to select in Teamtailor.
> ![Static Package ID](https://hub.stackone.com/images/teamtailor/assessment-or-background-check/teamtailor_static_package.png)

> [!NOTE]
>
> At least one field is necessary for making packages available in the Provider's UI. Preference will be given to the **Package's List Endpoint URL**, even if both fields are configured.

![Teamtailor Configuration Model](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_configuration_model_new.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=ef2715b3051b9e15b0a094daf5030a3e)

Click on the `Confirm` or `Save Changes` button to enable your Partner APIs, allowing end-users to link their accounts through the Hub.

**3. Add a Webhook**

Navigate to the *Webhooks* page, click on `Add webhook` and fill out the form:

* **Name:** Enter your webhook with a recognisable name.
* **URL:** Enter the URL where the webhook will send the notification of the enable events.

![Add Webhook form](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_add_webhook_form.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=20d203472548a09aa95700f18fb380f0)

Enable webhook events from the `Events` tab for Assessment & Background Check, such as `Assessments Order` & `Background Check Order`.

![Select webhook events](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/teamtailor_add_webhook.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=7fae1bd4f83225517c9bf006a9a8e01f)

## ATS User Enablement

Navigate to the *Accounts* page or the StackOne Connector Hub to link your Teamtailor account with StackOne.

![Link Teamtailor account](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/teamtailor_add_link_account.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=6e610aa2dabf901b352e928fea7a041b)

Users will get the **External Trigger Token** that is required to enable the integration from the Teamtailor Marketplace.

![Teamtailor User view of External-trigger](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/teamtailor-custom-view-external-trigger.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=21103409de22812146e1d59cfae618b2)

> [!NOTE]
>
> Follow the [Teamtailor Assessment or Background Check](https://hub.stackone.com/integration-configuration-concepts/ats/teamtailor-assessment-or-background-check) guide regarding how to enable the Teamtailor integration from the Marketplace.

## ATS User Experience

### Send the test to the Candidate from Teamtailor

<video controls src="https://cdn.stackone.com/public/teamtailor_assess_bg_check_.mov" />

Test your integration with StackOne using your Teamtailor Sandbox

> [!NOTE]
>
> Follow the [Teamtailor Assessment or Background Check](https://hub.stackone.com/integration-configuration-concepts/ats/teamtailor-assessment-or-background-check) guide regarding how to send the test from Teamtailor.

### User will see after test has been sent

When a user sends an assessment or background check to a candidate, they will see a success message in the candidate application pop-up.

![Teamtailor sent test view](https://mintcdn.com/stackone-hub/W-TGq9LevOn66DMh/images/teamtailor/assessment-or-background-check/Teamtailor-sent-test-view.png?fit=max\&auto=format\&n=W-TGq9LevOn66DMh\&q=85\&s=3a8f13ef358224b298823a8539239c79)

## ATS User Experience Customization

**1. To Update the result via unified api**

Utilize the following endpoints to update the results:

* [Assessment Update Result](https://hub.stackone.com/ats/api-reference/assessments/results/update-assessments-result.md)
* [Background Check Update Result](https://hub.stackone.com/ats/api-reference/background-checks/results/update-background-check-result.md)

Utilize the following endpoint to get metadata to update the result of the assessment or background check:

* [Connector Meta Information](https://docs.stackone.com/platform/api-reference/connectors/get-connector-meta-information-legacy) with the provider key `teamtailor` for model `assessments/results.update` or `background_checks/results.update`

#### User sees the updated results with different conditions of the assessment/background check in Teamtailor

| |
| - |
| When the result status `completed` without any other details     ![Update result with result status completed only](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_result_status_completed.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=60f440cecf44254b214818cee71aa549) |
| When the result status `failed` without any other details        ![Update result with result status failed only](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_result_status_failed.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=874379495a3cc580efa536f5b9d08ee4) |
| When the result `completed` with all data except Score           ![completed without score](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_result_completed_without_score_with_other_details.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=c7b213c4f25cde3d03ec6a1f1bcb9c27) |
| When the result `failed` with all data except Score              ![failed without score](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_result_failed_without_score_with_other_details.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=76f15d928d7370672eba273e893b8bdf) |
| When the result `completed` with all details                     ![completed without score](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_result_completed_with_score.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=f3a5ef12217577ddaecd8f35d03069c6) |
| When the result `failed` with all details                        ![failed without score](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_result_failed_with_score.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=2f2c78d088dde0b24ac10207ad508159) |
| When the result not included Result URL                          ![without result URL](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_result_without_result_url.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=69b6c95ec7855c6df20ffaf1794b92ca) |
| When the result not included Attachments URL                     ![without attachments URL](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_result_without_attachments.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=d110c378e811f1350b69f37795278428) |
| When the result included multiple Attachments URL                ![multiple attachments URL](https://mintcdn.com/stackone-hub/brRsZxdwDlLJ_23D/images/teamtailor/assessment-or-background-check/teamtailor_result_with_multiple_attachments.png?fit=max\&auto=format\&n=brRsZxdwDlLJ_23D\&q=85\&s=c1ce2e73e094687c01a0ef580d34e424) |

## Testing Checklist

✅  **Provider Setup:**

* Logged-in with Admin account.
* Valid StackOne URL.
* Integration partner app is published to the Teamtailor's marketplace under your selected category.
* Teamtailor's marketplace activation form of your integration app having an input field to enter `External Trigger Token`.

✅  **StackOne Configuration:**

* Selected `Public + Partner API` or `Partner API` as Authentication Type.
* Package's List Endpoint URL is correct.
* Enable Teamtailor in StackOne Configuration model with the List Packages endpoint.
* Package's List Endpoint response is expected according to the following endpoint's response:
  * [List Assessments Packages](https://hub.stackone.com/ats/api-reference/assessments/packages/list-assessments-packages.md)
  * [List Background Check Packages](https://hub.stackone.com/ats/api-reference/background-checks/packages/list-background-check-packages.md)

✅  **ATS User Activation:**

* Enter `External Trigger Token` to the marketplace app to enable the integration partner app.
* Once the app is enabled from the marketplace, the app should be visible in the Integration list under the Candidate's application; navigate to `More` (the three-dot menu).

✅  **Create a Webhook:**

* Added a webhook for Teamtailor and enabled it with the events such as: `Assessment Order` or `Background Check Order`
* Valid webhook URL to receive assessment/background check notifications.

✅  **ATS User Experience:**

* The integration app is visible in the Integration list under the candidate’s application; navigate to `More` (the three-dot menu).
* A list of packages is visible in the dropdown field on the prompt when you click the integration from the list.
* Select a package and send the webhook. A green check will appear if the notification has been sent, or an error will appear if not.

✅  **Update Result:**

* Success response from the update result endpoint.
* Updated result details to Teamtailor's UI.

## Troubleshooting

| Symptom | Likely cause | Fix |
| - | - | - |
| Unable to add new Integration partner app. | **•** Teamtailor Partnership is not active.   **•** Logged-in account is not an Admin account. | **•** Contact Teamtailor support for partnership status.   **•** Log in with an Admin account. |
| Integration partner app not visible in Teamtailor Marketplace. | Partnership app might be published but not approved | Contact Teamtailor support for partnership status. |
| Getting `Failed to fetch config from partner: Unable to fetch the partner config` error on the pop-up. | **•** Package's List Endpoint URL or Static Package ID is missing from StackOne Configuration.   **•** Invalid response getting from the Package's List Endpoint URL.   **•** Invalid Package's List Endpoint URL. | **•** Add Static Package ID if you don't have Package's List Endpoint URL.   **•** Response format should be expected as mentioned in the [StackOne Configuration](#stackone-configuration).   **•** Check Package's List Endpoint URL implementation at your end.   **•** Verify CORS. |
| External Trigger Token field is not visible at StackOne Connector Hub. | **•** Selected Authentication Type is incorrect. | Select Authentication Type `Public + Partner API` or `Partner API` instead. |
| User unable to activate integration app. | Invalid External Trigger Token. | Ensure to copy & add valid External Trigger Token |
| Test notification is not received. | **•** Invalid webhook URL.   **•** Incorrect webhook events are enabled. | **•** Verify webhook URL.   **•** Enable expected events as mentioned in the [StackOne Configuration](#stackone-configuration). |
| Test notification not included the job's hiring team. | Different Authentication Type instead of `Public + Partner API`. | Select Authentication Type `Public + Partner API` instead. |
| Unable to update result. | Invalid payload format. | Check [Connector Meta API](https://docs.stackone.com/platform/api-reference/connectors/get-connector-meta-information-legacy) endpoint for payload format. |
| Result URL or Attachment's URL showing error when opened. | Added result URL can be expired or is private. | Ensure to add public or signed URLs; verify CORS and expiry. |

For persistent issues, contact StackOne support with detailed error logs and configuration information.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.