---
title: "Create a connection"
description: "Choose a grant type and create client credentials on the Connections tab in Mindtickle account settings."
contentType: "guide"
url: "https://developer.mindtickle.com/docs/getting-started/connections/create-a-connection/"
---

Create a connection to give an AI client, an agent, or an integration its own client credentials.

## Before you begin

- You need the **Technical Settings** permission. This is the same permission that gives access to the **Security & integrations** tab in **Account** > **Settings**. Admins without this permission don't see the **Connections** tab.
- Decide which grant type the connection needs. See [Choose a grant type](#choose-a-grant-type).
- For the **Authorization code** grant type, have the callback URL of each AI client or app that will use the connection. Each AI client publishes its own callback URL in its documentation.
- Have a secure place, such as a password manager or secret manager, to store the client secret. Mindtickle shows the client secret **only once**.

## Choose a grant type

The grant type decides how the connection signs in to Mindtickle. You choose it when you create the connection, and you can't change it later for that connection.

| Grant type             | Use it when                                                                                                                                                                                      | Callback URLs                                                                       |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------- |
| **Authorization code** | People sign in and approve access themselves, for example, when an IT admin publishes Mindtickle as a connector in an AI client such as Claude, and each rep connects their own account through a consent screen. | Required. Add the callback URL of each AI client or app that uses the connection. |
| **Client credentials** | An application connects to Mindtickle without a person signing in, for example, a background job, an automation, or a custom agent.                                                             | Not used.                                                                           |

:::note

Reps connect an AI client through a consent screen only with the **Authorization code** grant type. With **Client credentials**, no one signs in: the application gets a token for a Mindtickle user, and the tools run as that user.

:::

## Open the Connections tab

1. On the Mindtickle admin site, go to **Account** > **Settings**, and open the **Connections** tab.
2. Click **Add new connection**. A panel opens with four steps: **Details**, **Authorization**, **Permissions**, and **Review**.

:::note

The steps are the same for both grant types, except that only the **Authorization code** grant type has callback URLs in the **Authorization** step.

:::

## Step 1: Details

1. Enter a **Connection or client name**. Use a name that tells other admins what the connection is for, such as the name of the AI client or the integration.
2. Optionally, enter a **Description**.
3. Under **Choose grant type**, select **Authorization code** or **Client credentials**.
4. Click **Next**.

## Step 2: Authorization

1. Copy the **Client ID** and the **Client secret** with the copy icon next to each field, and store them in a secure place.
2. Select **I have copied the Client secret somewhere safe**.
3. In **Client secret expiry**, choose how long the client secret stays valid: 30 days, 60 days, 90 days (the default), 180 days, or 1 year. The date the secret stops working is shown below the field.
4. For the **Authorization code** grant type only: under **Callback URLs**, enter a callback URL and click **Add**. Repeat for each AI client or app that uses the connection.
5. Click **Next**.

:::caution

The client secret is shown only once. After you click **Next**, you can't view it again. If you lose it, generate a new client secret. See [Generate a new client secret](/docs/getting-started/connections/manage-connections/#generate-a-new-client-secret).

:::

## Step 3: Permissions

1. For each product, select **Read**, **Write**, or both. Use **Search permissions** to find a product.
2. Click **Next**.

The list shows **Training**, **Asset Hub**, **Digital Sales Rooms**, **Deals**, **Call AI**, and **Users and groups**. A grayed-out checkbox means the access isn't available:

- **Deals** and **Call AI** offer read access only, so their **Write** checkbox is always grayed out.
- If your company doesn't have one of these Mindtickle products, both of its checkboxes are grayed out.

:::note

- These are the most a connection can get. An AI client or app that uses the connection never gets more, even if it asks for more. Each person who uses the connection still sees only the content their own Mindtickle permissions allow.
- Follow the principle of least privilege. Select only what the connection needs.
- Search and Mindtickle Assistant need no permission here. Search works with every connection. Mindtickle Assistant works when it is turned on for your company and the user has Assistant access.
- Selecting **Read** for **Training** also gives access to AI Tutor, if your company has it turned on, and to AI Roleplay. The AI Roleplay practice screen asks for access to the rep's camera and microphone, and the practice conversation is recorded. Check that this fits your company's policies before you select it. To see which tools each row gives access to, see [Scopes](/docs/mcp/build-a-custom-client/#scopes).

:::

## Step 4: Review

1. Check the **Details**, **Authorization**, and **Permissions** cards. To change something, click **Edit** on its card.
2. Click **Add connection**.

The connection appears in the list with the status **Active**. You can now use the `client_id` and `client_secret` in your AI client or integration.

If you click **Cancel** or close the panel after you have entered details, Mindtickle asks you to confirm. Click **Yes, discard** to close without saving, or **No, continue** to keep working.

## Limits and rules

| Field                         | Rule                                                                                                                                                                                                                                                                                                                                                                                        |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Connection or client name** | Required. Up to 255 characters.                                                                                                                                                                                                                                                                                                                                                             |
| **Description**               | Optional. Up to 500 characters.                                                                                                                                                                                                                                                                                                                                                             |
| **Callback URLs**             | At least one, and up to 10, for the **Authorization code** grant type. Each URL can be up to 251 characters, and all the URLs together must fit within 2,048 bytes. Each URL must match the AI client's callback URL exactly and must use HTTPS. The only exceptions are the `localhost` and `127.0.0.1` addresses, which can use HTTP for testing. A URL can't contain `#` or a user name. |
| **Client secret expiry**      | 30 days, 60 days, 90 days, 180 days, or 1 year. You can change it only when you generate a new client secret.                                                                                                                                                                                                                                                                               |
| **Permissions**               | At least one.                                                                                                                                                                                                                                                                                                                                                                               |

## Related

- [Manage connections](/docs/getting-started/connections/manage-connections/): Edit, deactivate, activate, or delete a connection after you create it.
- [Build a custom client](/docs/mcp/build-a-custom-client/): Use a Client credentials connection to call the Mindtickle MCP server from code.
- [Set up the connector](/docs/mcp/publish-the-connector/): Use an Authorization code connection to set up Mindtickle in an AI client.
