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

# Auth connections

> Keep the sign-in for an API once, with OAuth 2.0, Basic or a Bearer token, and let every tool that calls the API use it. Change the credentials in one place.

An auth connection is how your tools sign in to an API: OAuth 2.0 client
credentials, an OAuth 2.0 JWT assertion, Basic authentication or a Bearer
token. You set it up once for the workspace, and every tool that calls that
API chooses it. A new client secret, password or token is typed in one place
and reaches every tool and published agent that uses the connection on its
next call, with nothing to republish.

Open **Workspace settings → General** and find **Auth connections**. Owners
and Members can add, edit and delete connections. Viewers see each
connection's name, type and where it is used, never its secrets.

![Auth connections section of Workspace settings General with the Add auth menu open on OAuth 2.0 client credentials, Basic authentication, Bearer token and OAuth 2.0 JWT, above three connections: Billing API, Orders API and Partner API used by three tools](https://mintcdn.com/centillion/N4uSPACxOe7yqp8V/images/workspaces/auth-connections-01-list.webp?fit=max\&auto=format\&n=N4uSPACxOe7yqp8V\&q=85\&s=8309413c14f499b6772dfadf7622dc2e)

Auth connections lists each connection's type, its provider and the tools and published agents that use it. Add auth starts a new one.

## Add a connection

Choose **Add auth** and pick the type your API uses. Give the connection a
**Name**, unique in the workspace ignoring case, and, if you like, a
**Provider** shown beside it. Then fill in the type's fields and choose
**Create auth connection**. A workspace keeps up to 50 connections.

![Add OAuth 2.0 client credentials connection panel beside Workspace settings General, with the name Shipping API, a client ID, a masked client secret and a token URL typed](https://mintcdn.com/centillion/N4uSPACxOe7yqp8V/images/workspaces/auth-connections-02-add.webp?fit=max\&auto=format\&n=N4uSPACxOe7yqp8V\&q=85\&s=dc9e290c4dafeb45a608bbdb89e4cb33)

An OAuth 2.0 client credentials connection: the client ID, the secret and the token URL.

### OAuth 2.0 client credentials

| Field | What to enter |
| - | - |
| Client ID | The client ID your API gave you. |
| Client secret | The client secret. It is encrypted when you save and never shown again. |
| Token URL | The HTTPS address that issues access tokens, such as `https://auth.example.com/oauth/token`. |
| Scopes | Optional. The scopes to request, separated by commas, such as `leads.read, leads.write`. |
| Extra parameters (JSON) | Optional. More form fields for the token request, such as `{"audience": "https://api.example.com"}`. |
| Use Basic auth in the token request header | Sends the client ID and secret in an HTTP Basic `Authorization` header. Left off, they go in the request body as `client_id` and `client_secret`. |
| Token request headers | Optional. Headers sent with each token request, such as an API key the token endpoint asks for. Their values are encrypted. |

Before a call, the tool asks the token URL for an access token with
`grant_type=client_credentials`, then sends it to your API as
`Authorization: Bearer <token>`, beside the tool's other headers. The token
is reused until about a minute before the `expires_in` the token server gave
(an hour when it gives none), and every tool on the connection shares it, so
an API that limits token requests sees one per token, not one per tool or per
call. If your API answers `401`, the tool gets a new token and sends the
request once more.

### OAuth 2.0 JWT

For APIs that take a signed assertion instead of a client secret (the JWT
bearer grant). Enter the **Secret key** that signs it: a shared secret for the
HS algorithms, or a PEM private key for RS and PS. Then the **Token URL**,
optional **Scopes**, the **Token type** to send (**Access token** or **ID
token** from the response), the **Algorithm**, an optional **Key ID** sent as
`kid`, how long each assertion is valid under **Expiration (seconds)**, and the
claims: **Issuer (iss)**, **Audience (aud)**, **Subject (sub)** and optional
**Extra claims (JSON)**.

Each token request carries a new assertion, issued at that moment, with
`grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer`. Tokens are reused
and renewed the same way as client credentials.

### Basic authentication

A **Username** and **Password**, sent with every request as an HTTP Basic
`Authorization` header. The username can't contain a colon.

### Bearer token

A **Token**, such as an API key or a personal access token, sent with every
request as `Authorization: Bearer <token>`.

An API key that goes in a header of its own, such as `x-api-key`, belongs in a
[secret](https://cntillion.com/docs/workspaces/secrets.md) instead.

## Choose a connection in a tool

Open a webhook tool's **Settings**. Under **URL**, set **Authentication** to
the connection. **Create new auth connection** adds one without leaving the
tool and chooses it. A web form tool that gets its link from a request has
the same choice under **Authentication**, below its headers.

An MCP server has the choice under **Server URL**. The connection signs in
every request the server gets: **Discover tools** and each tool call the
agent makes. An OAuth token is shared with the webhook tools on the same
connection and renewed the same way, so a server whose tokens last an hour
keeps working without anyone pasting a new one.

![Webhook tool settings with Method POST, a URL, and Authentication set to Partner API, OAuth 2.0 client credentials, with Create new auth connection and Manage connections links](https://mintcdn.com/centillion/N4uSPACxOe7yqp8V/images/workspaces/auth-connections-03-tool.webp?fit=max\&auto=format\&n=N4uSPACxOe7yqp8V\&q=85\&s=c3399a45d21b9e2392e7faabd539f87f)

A webhook tool signing in with the Partner API connection.

The connection sends the `Authorization` header, so the tool can't also have
an `Authorization` header or secret of its own. If an API or an MCP server
repeats the token or password back in its response, the tool masks it as
`••••••••` before the agent or the Tool Logs see it.

## Tools that keep their own OAuth settings

Tools made before auth connections kept their own copy of the OAuth client
credentials. While any do, **Auth connections** names them and offers **Move to
auth connections**. That gives each distinct client one connection, named after
the API's address and keeping the client's settings and secret, and points every
tool that used the client at it. Nobody types the secret again, and a
connection that already holds the same client is reused.

The move changes the tools, not your agents' published versions: those keep
the copy they were published with, and keep working, until you publish again.
Until a tool moves, its **Authentication** shows **This tool's own OAuth
settings** with the old fields.

## Edit or rotate a connection

Open the connection's **⋮** menu and choose **Edit connection**. Change any
setting, or paste a new secret; leave a secret empty to keep the one saved.
A token request header shows its name only; leave its value empty to keep it.
A connection keeps its type: to sign in another way, add a new connection and
choose it in the tools.

## Delete a connection

Open the connection's **⋮** menu and choose **Delete connection**. A
connection can't be deleted while a tool uses it, or while a published agent's
live version does: choose another connection in those tools and publish the
agents first. Deleting can't be undone.

If a tool runs after its connection is gone, the call stops with a message
that names no secret.

## From the API and AI assistants

The Developer API manages connections under `/auth-connections`, and a
webhook tool or an MCP server names one in `authConnectionId`. See
[Workspace auth connections](https://cntillion.com/docs/api-reference/developer-api.md#workspace-auth-connections).
AI assistants list connections with `list_auth_connections`; see
[AI assistants (MCP)](https://cntillion.com/docs/developer-guides/mcp.md).


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