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

# Setting up the Contentstack connector

> Step by step setup, from first contact to your first translation request

For Contentstack administrators.

Work through the shared steps, then the steps for the method you chose. You can add the second method later without redoing the shared steps.

## Shared steps

**1. Tell us your host**

Send Translated the Contentstack Content Management API base URL that applies to your account.

**2. Configure your languages**

1. Go to **Settings > Languages**.
2. Click **+ New Language**.
3. Configure the language, selecting the specific variant where it matters.
4. Click **Add**.

Send Translated the full list of source and target languages for every stack. Each stack can have a different list. The language marked **Default** is the source language.

![Contentstack Languages settings](https://mintcdn.com/translated/2DaOeCV4v_J3PwVu/images/contentstack/languages.png?fit=max\&auto=format\&n=2DaOeCV4v_J3PwVu\&q=85\&s=e59177712f7bee0c7e25de62b8417da6)

Settings, then Languages. The language marked Default is the source language.

**3. Create the translation workflow**

1. Go to **Settings > Workflows**.
2. Click **+ New Workflow**.
3. Name it, and add a description if you want one.
4. Select the content types in scope.
5. Configure the stages. Three must be consecutive: translation requested, translation in progress, translation ready. The second and third must be available as next stages from every other stage, and all users and roles must be allowed to move between them.
6. Add any workflow superusers.
7. Enable the workflow and click **Save**.

![Contentstack workflow stages](https://mintcdn.com/translated/2DaOeCV4v_J3PwVu/images/contentstack/workflow-stages.png?fit=max\&auto=format\&n=2DaOeCV4v_J3PwVu\&q=85\&s=9eefd9365e35c2b32dc7c46c6ee168a2)

The three consecutive stages, with the workflow enabled.

![Workflow stage transition permissions](https://mintcdn.com/translated/2DaOeCV4v_J3PwVu/images/contentstack/workflow-transitions.png?fit=max\&auto=format\&n=2DaOeCV4v_J3PwVu\&q=85\&s=76d4789efd44842173d92336f2b9a685)

Every user and role must be permitted to move between the stages.

Send Translated a screenshot of the workflow whenever you create or change it.

**4. Send us your stack API key**

Found per stack under **Settings > Stack > API Credentials > ApiKey**.

![Contentstack stack settings and API credentials](https://mintcdn.com/translated/2DaOeCV4v_J3PwVu/images/contentstack/stack-api-key.png?fit=max\&auto=format\&n=2DaOeCV4v_J3PwVu\&q=85\&s=c4f198398e5eea1a7df11a13818321cd)

Stack settings. The API key sits under API Credentials.

**5. Wait for confirmation**

Translated configures your account before you go further. This matters for the app: installing it before your configuration exists makes authentication fail.

## If you will request translations from workflow stages

### Create a management token

Needed only if you will not install the Translated app.

**1. Log in with an admin account**

**2. Go to Settings > Tokens > Management Tokens**

![Contentstack management tokens](https://mintcdn.com/translated/2DaOeCV4v_J3PwVu/images/contentstack/tokens.png?fit=max\&auto=format\&n=2DaOeCV4v_J3PwVu\&q=85\&s=996b89223400e14da9dde06b119dff39)

Settings, then Tokens, then the Management Tokens tab.

**3. Create the token**

Click **+ Management Token** and name it.

**4. Set the permissions**

Grant both read and write permissions, and set **Expiry** to **Never**.

![Create new management token](https://mintcdn.com/translated/2DaOeCV4v_J3PwVu/images/contentstack/create-management-token.png?fit=max\&auto=format\&n=2DaOeCV4v_J3PwVu\&q=85\&s=56cfb3f377a3b4ca4e873abc2c2cd08d)

Read and write permissions, with Expiry set to Never.

**5. Generate it**

Click **Generate Token**, copy the token, and click **Done**.

![Management token generated dialog](https://mintcdn.com/translated/2DaOeCV4v_J3PwVu/images/contentstack/token-generated.png?fit=max\&auto=format\&n=2DaOeCV4v_J3PwVu\&q=85\&s=815d74ba22e19505058345ed5775a64e)

The token is shown once. Copy it before closing the dialog.

> [!WARNING]
>
> The token cannot be viewed again once you close the dialog. Send it to Translated with the stack API key, through a channel you would use for any other credential.

### Create the webhook

**1. Create it**

Go to **Settings > Webhooks** and click **+ New Webhook**.

**2. Set the URL to notify**

Sandbox:

```
https://tos-connector-contentstack.sandbox.translated.com/v1/contentstack/intake
```

Production:

```
https://tos-connectors-queues.translated.com/connectors/contentstack
```

**3. Set the authentication**

If a username and password are mandatory, enter dummy values. Otherwise select **None** as the authentication method.

![Webhook authentication method](https://mintcdn.com/translated/2DaOeCV4v_J3PwVu/images/contentstack/webhook-auth.png?fit=max\&auto=format\&n=2DaOeCV4v_J3PwVu\&q=85\&s=a9fb10ed1626fb8b29bb25bb38a1f05f)

Authentication method options on the webhook.

**4. Add the API key header**

Add a custom header `x-api-key` with the API key Translated gives you.

**5. Set the trigger**

The webhook fires when an entry's workflow stage changes to the first of your three translation stages.

**6. Finish**

Untick **Send Concise Payload**, tick **Enable Webhook**, and click **Save**.

![Contentstack webhook configuration](https://mintcdn.com/translated/2DaOeCV4v_J3PwVu/images/contentstack/webhook-settings.png?fit=max\&auto=format\&n=2DaOeCV4v_J3PwVu\&q=85\&s=4b35d795c544d5d9c6c532e6084b821b)

The completed webhook, with the x-api-key custom header and the trigger condition.

### Optional: extra service types

To request a service type other than your default, create a workflow stage named after your first stage, a hyphen, and the service type name. If your first stage is `translation-request`, the stage for the urgent service type is `translation-request-urgent`.

> [!NOTE]
>
> Contentstack caps stage names at 32 characters, so keep your prefix short.

## If you will request translations from the app

Install the Translated app from the Contentstack marketplace, after Translated confirms your configuration is in place.

The app authenticates with OAuth 2.0, which is configured automatically during installation. There is no token to create and no webhook to set up.

## Testing

Ask Translated to put you in sandbox mode. Sandbox returns machine translated content so you can check the round trip end to end without placing a real order. When you are satisfied, agree the service types and switch to production.


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