> ## 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 Contentful connector

> Creating the app, installing it, and configuring your locales

For Contentful administrators.

**1. Get your space ID**

Go to **Settings > General settings** and copy the space ID from the General section. Send it to Translated.

![The Contentful settings menu with General settings highlighted](https://mintcdn.com/translated/RmMl3eEGJd76FY8o/images/contentful/general-settings-menu.png?fit=max\&auto=format\&n=RmMl3eEGJd76FY8o\&q=85\&s=8aa8bdc84a8ba6a8571bc565a71ce6e3)

Settings then General settings

![The General settings page showing the Space ID field](https://mintcdn.com/translated/RmMl3eEGJd76FY8o/images/contentful/space-id.png?fit=max\&auto=format\&n=RmMl3eEGJd76FY8o\&q=85\&s=3fe72f06452cbc7fdbdfbc463b5e5afe)

The space ID sits at the top of the General section

**2. Create a management token**

1. Go to **Settings > CMA tokens**.
2. Create a personal access token.
3. Set no expiration.
4. Generate it and copy it immediately. It cannot be viewed again.

Send it to Translated.

![The Contentful settings menu with CMA tokens highlighted](https://mintcdn.com/translated/RmMl3eEGJd76FY8o/images/contentful/cma-tokens-menu.png?fit=max\&auto=format\&n=RmMl3eEGJd76FY8o\&q=85\&s=0faa546387fb13b2b80d49d9d2201bfc)

Settings then CMA tokens

![The personal access token dialog, token value redacted](https://mintcdn.com/translated/RmMl3eEGJd76FY8o/images/contentful/token-created.png?fit=max\&auto=format\&n=RmMl3eEGJd76FY8o\&q=85\&s=dd7cd84a8ab732c2743c7033163f9e75)

Copy the token immediately. It cannot be viewed again

**3. Create the app**

Either from **Organization settings and subscriptions > Apps > Create app**, or within the space from **Apps > Marketplace > Manage app definitions**.

1. Disable **Hosted by Contentful**.
2. Set the frontend URL to the endpoint Translated gives you for your environment, sandbox or production.
3. Under **Locations**, select only **App configuration screen** and **Entry sidebar**.

![The Contentful app definition screen with the frontend URL and location checkboxes](https://mintcdn.com/translated/RmMl3eEGJd76FY8o/images/contentful/app-details.png?fit=max\&auto=format\&n=RmMl3eEGJd76FY8o\&q=85\&s=d0588bd3de21e055e71f57c41745df79)

App details: frontend URL and locations

**4. Install the app**

1. In the Apps view, open the three-dot menu and choose **Install to space**.
2. Choose the space and environment.
3. Enter the matching API key: the sandbox key for the sandbox app, the production key otherwise.
4. Select the content models the app should appear on.
5. Save.
6. Under **Content model**, add the app to the **Sidebar** of each model you chose.

![The Install TOS to a space dialog](https://mintcdn.com/translated/RmMl3eEGJd76FY8o/images/contentful/install-to-space.png?fit=max\&auto=format\&n=RmMl3eEGJd76FY8o\&q=85\&s=08b3e8ab9469c8705165f213fef94ed9)

Choose the space and environment

![The sidebar configuration screen for a content type](https://mintcdn.com/translated/RmMl3eEGJd76FY8o/images/contentful/sidebar-config.png?fit=max\&auto=format\&n=RmMl3eEGJd76FY8o\&q=85\&s=63087cf3bafa998b422919d1a40c698f)

Add the app to the sidebar of each content type

**5. Configure your locales**

1. Go to **Settings > Locales**.
2. Add each target locale, selecting the specific variant where it matters.
3. Save.

Available target languages come from your globally enabled locales, so a language missing from the app is usually missing from this list. See [Language codes](https://help.os.translated.com/reference/language-codes.md).

![The Contentful settings menu with Locales highlighted](https://mintcdn.com/translated/RmMl3eEGJd76FY8o/images/contentful/locales-menu.png?fit=max\&auto=format\&n=RmMl3eEGJd76FY8o\&q=85\&s=a96bb26e44bb9282ea755139c8b81c06)

Settings then Locales

**6. Agree service types**

Agree at least one service type with Translated. They configure the connector and confirm when you can start.

> [!WARNING]
>
> Match the key to the app. A production key in a sandbox app is the most common setup error here, and it fails in a way that looks like an authentication problem rather than a configuration one.

## Testing

Ask Translated for sandbox mode, which returns machine translated content. Test on a real entry with references and a mixture of field types rather than a simple one, since the reference behaviour is what usually needs checking.


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