How to create a Zendesk API token in 2026, and what to use now that you can't

Kira
Written by

Kira

Katelin Teen
Reviewed by

Katelin Teen

Last edited November 30, 2026

Expert Verified
A developer at a laptop smiling at a browser window with a key that points to a second window with a padlock shield, beside the Zendesk logo
TL;DR

You can't create a new Zendesk API token anymore: Zendesk blocked token creation for every account on October 27, 2026, and every remaining token stops working on April 30, 2027. If a guide tells you to click Add API token, it was written before the change. What you create instead is an OAuth access token: an admin adds an OAuth client in Admin Center, your code exchanges its credentials at /oauth/tokens, and you send Authorization: Bearer <token> where you used to send email/token:api_token. If you still have a working token, keep it in use (30 days unused deactivates it) while you migrate.

Can you still create a Zendesk API token?

No. On June 1, 2026 Zendesk announced it is removing API tokens for the Ticketing, Help Center and Voice APIs, and the second phase, which ends token creation, began on October 27, 2026. Zendesk's own wording: "Accounts can no longer create new API tokens through the UI or API."

Zendesk's help center announcement titled Announcing the removal of API tokens as an authentication method for API requests, edited Sep 16, 2026, with a table reading announced June 1, 2026, rollout starts July 28, 2026, rollout ends April 30, 2027
The announcement behind every 'where did Add API token go?' question, as taken from Zendesk's help center.

The removal runs in three phases:

  • Since July 28, 2026: any token unused for 30 days is deactivated, and a token that stays deactivated for 60 more days is deleted for good. Accounts created on or after that date can't create or use API tokens at all.
  • Since October 27, 2026: no account can create a new API token. Existing active tokens keep working.
  • April 30, 2027: every remaining token is deactivated, can't be reactivated, and the API token pages are removed from Admin Center.
A timeline of Zendesk's API token removal: announced June 1, 2026; unused tokens deactivate July 28, 2026; no new tokens October 27, 2026; every token stops April 30, 2027; with a callout to move to OAuth and send a Bearer header
Three dates, and the last one has no grace period.

Zendesk gives its reason plainly: API tokens have no rotation, no scopes and no expiry, and "An API token can be used to impersonate any user in your account, including admins." Only Support API tokens are affected; API tokens for Messaging, Chat and other products are not part of this change.

What should I do with the API tokens I already have?

Keep the ones you need alive, and move them to OAuth one at a time. Zendesk says the two can run side by side until April 30, 2027, so there's no need to switch everything at once.

  1. In Admin Center, open Apps and integrations > APIs > API tokens and read each token's "Last used" and "Deactivates on" dates. Using a token resets its clock, so a token your integration calls at least once every 30 days won't deactivate.
  2. Generate the usage report on the same page. It lists the last 7 days of requests made with API tokens, with the IP address, user agent, endpoint and the user's email, which is the quickest way to find out what still depends on each token.
  3. If a token was deactivated in the last 60 days, open the options menu next to it and select Reactivate. That buys time, not a fix.
  4. Watch for the quiet ones. Zendesk warns that "Workflows will stop executing, tickets won't sync, and automated processes may fail silently." A monthly or quarterly job is the classic case: it goes 30 days unused, deactivates, and fails the next time it runs.

Webhooks that call back into your own Zendesk with an API token stop working too. Zendesk suggests action flows for many of those (their built-in Zendesk actions need no token at all) and says it will add native OAuth support for webhooks before the April 2027 deadline, without a date yet.

How do I create an OAuth access token instead?

The OAuth access token is the replacement, and for a script or server-to-server job the fastest route is the client_credentials grant. These steps follow Zendesk's own migration guide.

A before-and-after comparison: the API token (being removed) used Basic auth with email/token:api_token, has had no new tokens since Oct 27, 2026, never expires and has full account access, and stops April 30, 2027; the OAuth access token takes three steps, create an OAuth client in Admin Center, POST /oauth/tokens with client_credentials, send Authorization: Bearer, and expires after 30 minutes by default and is scoped, for example tickets:read
Only the header in each request changes; the work is in getting the token.

Step 1: Create an OAuth client in Admin Center

You must be signed in as an admin. Creating a Zendesk OAuth app walks through the same screen in more detail.

  1. In Admin Center, click Apps and integrations, then select APIs > OAuth clients.
  2. Click Add OAuth client.
  3. Enter a Name (users see it if they're ever asked to approve the app) and check the Identifier, which is filled in from the name and becomes your client_id.
  4. Set Client kind to Confidential for a server-side script. Public clients are for browser and mobile apps, must use PKCE and can only use the authorization code flow.
  5. Leave Redirect URLs empty if you'll only use client_credentials; they're only needed for the browser approval flow.
  6. Under Scopes, pick only what the integration needs. These are the client's allowed scopes, a ceiling no token from this client can go above. Leaving the field empty allows every scope. Zendesk API OAuth scopes lists what each one covers.
  7. Click Save, then copy the Secret straight away. Zendesk shows it in full only once; after that you see only its first nine characters.

If one API token was shared by several integrations, create one OAuth client per integration. Zendesk recommends this so you can revoke one integration without breaking the others.

Step 2: Exchange the client credentials for an access token

Bash
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=your_client_identifier" \
  --data-urlencode "client_secret=your_client_secret" \
  --data-urlencode "scope=tickets:read"

The response holds the token and its lifetime in seconds:

JSON
{
  "access_token": "gErypPlm4dOVgGRvA1ZzMH5MQ3nLo8bo",
  "token_type": "bearer",
  "scope": "tickets:read",
  "expires_in": 1800
}

There's no refresh token in this flow. When the access token expires, your code repeats the same request.

Step 3: Send it as a Bearer token and test it

Bash
curl https://your-subdomain.zendesk.com/api/v2/users.json \
  -H "Authorization: Bearer your_access_token"

That's the whole change to each request. In Python it's one line:

Python
# Before (API token)
response = requests.get(url, auth=(f"{email}/token", api_token))

# After (OAuth access token)
response = requests.get(url, headers={"Authorization": f"Bearer {access_token}"})

A JSON list of users means it worked. Postman also works: its built-in OAuth 2.0 authorization handles the token exchange for you, which Zendesk's guide describes under Using Postman for testing.

Step 4: Handle expiry

Access tokens last 30 minutes by default, and you can set expires_in anywhere from 5 minutes to 48 hours. When one expires, Zendesk answers with a 401 and this body:

JSON
{
  "error": "invalid_token",
  "error_description": "The access token provided is expired, revoked, malformed or invalid for other reasons."
}

Request a fresh token before each job, or on that 401, and retry once. Admin Center can create and manage OAuth clients, but generating tokens still takes code or a tool like Postman; there is no "copy a token" button any more.

Which OAuth flow should I use?

It depends on whether a person is there to approve access. Zendesk's guide puts it like this:

FlowClient kindBest forRefresh token?
Client credentialsConfidentialBackground scripts, data pipelines, server-to-server jobs with no userNo, request a new token
Authorization codeConfidentialServer-side apps acting for a specific userYes, 30 days by default (7 to 90)
Authorization code with PKCEPublicBrowser or mobile apps that can't keep a secretYes

Zendesk's advice when unsure is the authorization code flow. It needs a one-time approval in a browser, and if you have no callback server you can set the redirect URL to https://localhost and copy the code from the address bar after approving. Use client credentials when nothing can do that browser step.

One difference matters for ownership: client credentials tokens act as the admin who created the OAuth client. If that admin is deleted or loses the permissions to manage OAuth clients, those tokens stop working, while authorization code tokens keep working for the user who approved them. Create the client from an admin account that will outlast the person setting it up.

API token vs OAuth access token

API tokenOAuth access token
Can you create one?No, since October 27, 2026Yes
Sent asBasic auth, email/token:api_tokenAuthorization: Bearer <token>
ExpiresNever while used; deactivated after 30 days unused; all stop April 30, 202730 minutes by default, 5 minutes to 48 hours
ScopesNone; it can act as any user, admins includedPer token, capped by the client's allowed scopes
Acts asWhichever verified user's email you sendThe approving user, or the client's admin for client credentials
Works from a browser (CORS)NoYes
Third-party apps may use itNo, Zendesk's developer policy forbids apps using a customer's API credentialsThrough the app's own OAuth

If you're building an app other companies will install, Zendesk's policy already rules out asking them for an API token or for their own OAuth client: the app uses its own OAuth, or a global OAuth client for many Zendesk accounts. Zendesk API authentication and scopes goes further into the choice.

How do I keep Zendesk OAuth credentials secure?

The habits that kept API tokens safe still apply, with OAuth's controls on top:

  • Store the client secret and tokens outside your code. Zendesk suggests environment variables for simple scripts, a secrets manager (AWS Secrets Manager, HashiCorp Vault, Azure Key Vault) for production, and encrypted database fields when you hold tokens for many Zendesk accounts.
  • Ask for the narrowest scope. A token requested with no scope gets full read and write access. If an integration only reads tickets and updates users, ask for tickets:read users:read users:write, not read write, and set the same list as the client's allowed scopes.
  • One client per integration, so revoking one doesn't break the rest.
  • Keep refresh tokens current. An authorization code integration that loses its refresh token has to repeat the browser approval.

Troubleshooting a Zendesk token that won't work

  • 401 with a token that used to work: most likely deactivated after 30 days unused. Check the API tokens page and reactivate it if it's within 60 days, then plan its migration.
  • 401 with invalid_token: an OAuth access token that expired or was revoked. Request or refresh a new one.
  • 401 on Basic auth: check the email/token: format, then whether the token still exists. On an account created on or after July 28, 2026, API tokens never work.
  • 403 Forbidden with a fresh OAuth token: the token's scope doesn't cover the call, for example a tickets:read token sending a PUT. Request a token with the scope you need.
  • 400 invalid_scope when requesting a token: you asked for a scope outside the client's allowed scopes. Change the request or widen the client's scopes in Admin Center.
  • 429 Too Many Requests: a rate limit, not an auth problem; see Zendesk API rate limits.

Zendesk API error codes covers each of these in more depth.

Zendesk's developer documentation page titled Migrating from API tokens to OAuth access tokens, with the note that API tokens will be permanently deactivated on April 30, 2027 and a list of reasons tokens are being retired
Zendesk's migration guide is the page to keep open while you switch, as taken from its developer docs.

Connecting an AI agent to Zendesk without an API token

A lot of people searching for a Zendesk API token want it for one job: to plug a tool into the ticket queue. If that tool is an AI agent, check how it connects before you build anything, because a tool that still asks you to paste an API token stops working on April 30, 2027.

eesel joins your Zendesk as an AI teammate. It learns from your help center, macros and past tickets, then drafts or sends replies, tags and updates tickets. It connects without an API token: a Zendesk admin approves eesel on Zendesk's own approval screen, which lists what it can read and do. That's an OAuth grant, so the token removal doesn't touch it, and eesel's Zendesk docs say it works on every current Zendesk plan.

You decide what eesel may do. Every action is set to run on its own, ask a person first, or stay off, so a reply can wait for an agent's approval while tagging runs freely, and you can test it in the dashboard on your own tickets before it touches a customer. If you work from a terminal, the eesel CLI does the setup: npx @eesel/cli integrations connect zendesk shows the connection options, an admin approves the link in Zendesk, and eesel status shows what has downloaded. Claude Code, Codex or Cursor can run those commands for you.

The eesel dashboard chat showing the Zendesk authorization link, with the agent explaining what happens after approval
One approval in Zendesk, with no API token, as shown in eesel's Zendesk docs.

If you're building your own integration, everything above still applies, and the Zendesk API development guide covers the wider build. If what you need is an agent that works your tickets, try eesel and test it on your own Zendesk, or book a demo with the eesel team.

Frequently Asked Questions

Can I still create a Zendesk API token?
No. Since October 27, 2026 no Zendesk account can create a new API token, in Admin Center or through the API, and accounts created on or after July 28, 2026 can't create or use them at all. Create an OAuth access token instead; creating a Zendesk OAuth app covers the client setup.
When do Zendesk API tokens stop working?
Every remaining API token is deactivated on April 30, 2027 and can't be reactivated after that. Before then, a token that goes 30 days unused is deactivated, and one that stays deactivated for 60 days is deleted. A 401 from a token that used to work is usually this; see Zendesk API error codes.
Who can create a Zendesk OAuth client and access token?
An admin creates the OAuth client in Admin Center under Apps and integrations > APIs > OAuth clients. Creating tokens through the API needs an admin or an agent with the Manage APIs permission. Which scopes to give it is covered in Zendesk API OAuth scopes.
What's the difference between a Zendesk API token and an OAuth access token?
An API token is a permanent password sent with an email address, with no scopes and no expiry while it's used. An OAuth access token is sent as a Bearer token, expires after 30 minutes by default and can be limited to scopes such as tickets:read. Zendesk API authentication compares them in more depth.
How do I create an OAuth access token for a Zendesk script with no user involved?
Create a confidential OAuth client, then POST grant_type=client_credentials with its client_id, client_secret and a scope to https://{subdomain}.zendesk.com/oauth/tokens. You get an access token with no refresh token, so request a new one the same way when it expires. The Zendesk API development guide covers the wider build.
Can I reactivate a deactivated Zendesk API token?
Yes, within 60 days of deactivation: open Apps and integrations > APIs > API tokens, click the options menu next to the token and select Reactivate. It buys time until April 30, 2027, not a fix; the 401 section of Zendesk API error codes explains how to spot a deactivated token.
Do I need an API token to connect an AI agent to Zendesk?
Not for eesel: a Zendesk admin approves it on Zendesk's own OAuth screen, so the token removal doesn't touch it, and you choose which actions it takes alone, asks first for, or never takes.

Share this article