Administrator Required
You need to be a Zendesk Administrator in your instance to access the API settings.
API tokens are being retired
Zendesk is removing API tokens as a way to connect to the Zendesk API. Since 27 October 2026, new API tokens can no longer be created. Existing tokens stop working on 30 April 2027, and any token not used for 30 days is switched off automatically before then. Use an OAuth client instead, as described below.
Timeline
- 28 July 2026: tokens unused for 30 days are deactivated, and deleted 60 days after that. Accounts created from this date can't use API tokens at all.
- 27 October 2026: no one can create new API tokens. Existing active tokens keep working.
- 30 April 2027: all remaining API tokens stop working permanently. There is no extension.
Step 1: Create an OAuth client
- In Admin Center, go to Apps and integrations > APIs > OAuth clients and click Add OAuth client. You can also go straight to
https://{your_subdomain}.zendesk.com/admin/apps-integrations/apis/oauth-clients. - Enter a Name, a Description and your Company name. Use a name that says what the connection is for, such as the integration or app it powers.
- Note the Identifier. This is your client ID.
- Under Client kind, select Confidential. This is needed for server-to-server connections that use a client secret.
- Leave Redirect URLs blank unless the integration signs users in through Zendesk. Server-to-server connections don't need one.
- Under Allowed scopes, select only what the integration needs, such as
tickets:read. If you leave it empty, the client can request any scope. - Click Save, then copy the Secret straight away and store it somewhere secure. It's shown in full only once. You can generate a new one on the Edit page if it's lost.
Step 2: Get an access token
Your integration exchanges the client ID and secret for a short-lived access token:
curl -X POST https://{your_subdomain}.zendesk.com/oauth/tokens \
-H "Content-Type: application/x-www-form-urlencoded" \
--data-urlencode "grant_type=client_credentials" \
--data-urlencode "client_id={identifier}" \
--data-urlencode "client_secret={secret}" \
--data-urlencode "scope=tickets:read"
The response includes an access_token and expires_in. Tokens last 30 minutes by default; you can set expires_in anywhere from 5 minutes to 48 hours. No refresh token is issued, so request a new token when it expires or when an API call returns a 401 with invalid_token.
Step 3: Call the API with the token
Replace the old email/token login with a Bearer token in the Authorization header:
Authorization: Bearer {access_token}
Tip: API calls made this way are recorded against the Zendesk user who created the OAuth client. If ticket updates, comments or audit logs need to show a clear owner, create the client from a dedicated service account admin rather than a personal one.
Moving existing integrations off API tokens
- In Admin Center, go to Apps and integrations > APIs > API tokens and check each token's Last used date and description to see what still depends on it.
- Move the most important integrations first. Update each one to use an OAuth client, then deactivate its old token.
- Watch for the special cases: webhooks that call back into your own Zendesk with an API token, custom actions in action flows, and third-party or custom-built apps. Each needs moving to OAuth (or, for webhooks, to an action flow) or it will stop working.
Need a hand checking what's affected in your account? Contact the Gravity CX team.
Comments
Article is closed for comments.