> For the complete documentation index, see [llms.txt](https://doc.wearepatchworks.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.wearepatchworks.com/product-documentation/patchworks-services/service-systems/supported-service-systems/commercetools-service-connector/finding-service-connector-credentials-for-commercetools.md).

# Finding service connector credentials for CommerceTools

## Required credentials

To [add a Patchworks connector](/product-documentation/patchworks-services/service-connectors/adding-a-service-connector.md) for **CommerceTools**, the following details are required for authentication:

<table><thead><tr><th>Credential</th><th data-type="checkbox">Required</th><th>Note</th></tr></thead><tbody><tr><td><a href="#obtaining-credentials">project_key</a></td><td>true</td><td>Available when a <a href="#obtaining-credentials">new API client </a>is created in the CommerceTools dashboard.</td></tr><tr><td><a href="#obtaining-credentials">client_id</a></td><td>true</td><td>As above</td></tr><tr><td><a href="#obtaining-credentials">secret</a></td><td>true</td><td>As above</td></tr><tr><td><a href="#obtaining-credentials">scope</a></td><td>true</td><td>As above</td></tr><tr><td><a href="#obtaining-credentials">API URL</a></td><td>true</td><td>As above</td></tr><tr><td><a href="#obtaining-required-information">Auth URL</a></td><td>true</td><td>As above</td></tr></tbody></table>

## Obtaining credentials

The credentials listed above are needed so that Patchworks can access the required data in **CommerceTools**. To obtain these details, follow the steps below to create a new **API client**.

**Step 1**\
In your browser, open the URL that you use to access the **CommerceTools** dashboard.

**Step 2**\
From **settings**, select **developer settings**:

![](/files/TcMmCDZttIDxnqnmKTzX)

**Step 3**\
Click the **create new api client** button:

![](/files/n02kOwDvhV3h1eYraHvJ)

**Step 4**\
Select the following scopes:

| Manage   | View                            | Manage My | Tokens |
| -------- | ------------------------------- | --------- | ------ |
| Orders   | Customer groups                 | Orders    | N/A    |
| Products | Customers                       |           |        |
|          | Discount codes                  |           |        |
|          | Orders \[default]               |           |        |
|          | Payments                        |           |        |
|          | Products (all) \[default]       |           |        |
|          | Products (published) \[default] |           |        |
|          | Shipping methods                |           |        |
|          | States                          |           |        |
|          | Stores                          |           |        |
|          | Types                           |           |        |

You can see the required selections below:

<div align="left"><img src="/files/ukN8rvJO3dl3uN3NNQTd" alt=""></div>

**Step 5**\
Click the **create api client** button:

<div align="left"><img src="/files/2pvRtlqEvEJDTgdF4F3c" alt=""></div>

**Step 6**\
All required authentication details are displayed - add them to your password manager immediately as they are only shown once. &#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.wearepatchworks.com/product-documentation/patchworks-services/service-systems/supported-service-systems/commercetools-service-connector/finding-service-connector-credentials-for-commercetools.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
