Skip to content

Create an auth token

Request

Stores a third-party credential in your workspace so a data connector can authenticate outbound requests with it. Set token_type to text (the default) to send the credential value as a request header yourself, or to oauth to have Intercom exchange OAuth client credentials for an access token and keep it refreshed. The value you supply is stored encrypted and is never returned by any endpoint, including this one.

Security
bearerAuth
Headers
Intercom-Versionstring(intercom_version_preview)

Preview Intercom API version. Used for closed beta endpoints or other features under managed availability.

Default:"Preview"
Value:"Preview"
Example:Preview
Bodyapplication/jsonrequired

The fields accepted when storing a new third-party credential. Set token_type to text (the default) to store a plain credential value, or to oauth to have Intercom obtain and manage an access token via the OAuth client-credentials grant.

namestringrequired

A name for the credential, so a teammate can identify it later.

Example:"Fulfilment API key"
token_typestring

The type of credential to store. Defaults to text.

Enum:"text""oauth"
Example:"text"
token_valuestring

The credential value. Required when token_type is text. Must be omitted when token_type is oauth. Stored encrypted and never returned by any endpoint.

Example:"example-token-value"
request_header_keystring

The request header the credential is sent in. Required when token_type is text. Must be omitted when token_type is oauth, where it is fixed to Authorization.

Example:"Authorization"
token_prefixstring

An optional prefix placed before the credential value in the header, for example Bearer. Must be omitted when token_type is oauth, where it is fixed to Bearer.

Example:"Bearer"
descriptionstring

An optional description of what the credential is used for.

Example:"Used by the order status connector"
oauth_configurationobject(OAuth Configuration)

The OAuth client-credentials configuration Intercom uses to obtain and refresh an access token. Required when token_type is oauth. Must be omitted when token_type is text.

curl -i -X POST \
  https://api.intercom.io/auth_tokens \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Intercom-Version: Preview' \
  -d '{
    "name": "Fulfilment API key",
    "token_value": "example-token-value",
    "request_header_key": "Authorization",
    "token_prefix": "Bearer",
    "description": "Used by the order status connector"
  }'

Responses

successful

Bodyapplication/json

Metadata for a stored third-party credential that data connectors use to authenticate outbound requests. Only metadata is returned — the credential value itself, and its refresh and OAuth configuration, are never exposed.

typestring

The type of object - auth_token.

Value:"auth_token"
Example:"auth_token"
idstring

The unique identifier for the auth token.

Example:"12345"
namestring or null

The name given to the credential when it was created.

Example:"Fulfilment API key"
descriptionstring or null

An optional description of what the credential is used for.

Example:"Used by the order status connector"
token_typestring or null

How the credential is presented to the external API, for example as a header value or an HMAC signature.

Example:"text"
request_header_keystring or null

The request header the credential is sent in.

Example:"Authorization"
token_prefixstring or null

The prefix placed before the credential value in the header, for example Bearer.

Example:"Bearer"
domainstring or null

The domain the credential is scoped to, if one was set.

Example:"api.fulfilment.example.com"
created_atinteger or null

The time the credential was created as a Unix timestamp.

Example:1763199000
updated_atinteger or null

The time the credential was last updated as a Unix timestamp.

Example:1768918935
Response
{ "type": "auth_token", "id": "12345", "name": "Fulfilment API key", "description": "Used by the order status connector", "token_type": "text", "request_header_key": "Authorization", "token_prefix": "Bearer", "domain": null, "created_at": "2025-11-15T09:30:00Z", "updated_at": "2025-11-15T09:30:00Z" }