
Zendesk's API uses standard HTTP status codes, and the error catching most teams in 2026 is a 401 from an API token that worked last month: since July 28, 2026 Zendesk switches off any token unused for 30 days, nobody can create a new token since October 27, 2026, and every remaining token stops on April 30, 2027. The fix is to move to OAuth access tokens, sent as Authorization: Bearer.
The rest of the codes follow standard HTTP. A 403 is usually a missing OAuth scope. A 409 is two writes colliding on one ticket. A 422 is a request Zendesk understood but won't apply. A 429 means you passed your plan's per-minute limit (200 on Team up to 2,500 on Enterprise Plus), so wait the Retry-After seconds. A 503 with Retry-After is safe to retry. If the job behind your integration is an AI agent working tickets, eesel connects through Zendesk's own OAuth approval, so the token removal doesn't touch it, and a coding agent can set it up with the eesel CLI while a Zendesk admin still approves the connection.
What do Zendesk API status codes mean?
I build integrations at eesel, and Zendesk's API reference is one I read more than most. If you're new to it, start with the Zendesk API tutorial and come back here when something fails. Its status codes fall into the usual HTTP families:
- 2xx (Success): the request worked
- 3xx (Redirection): the resource has moved or hasn't changed
- 4xx (Client error): something in your request is wrong
- 5xx (Server error): something went wrong on Zendesk's side
Here are the codes you'll meet most, with what Zendesk itself says causes them:
| Status code | Meaning | Common cause in Zendesk |
|---|---|---|
| 200 | OK | Successful GET or PUT request |
| 201 | Created | Most successful POST requests |
| 204 | No Content | Successful DELETE request |
| 400 | Bad Request | Malformed request; an idempotency key reused with a different body; offset pagination past 100 pages |
| 401 | Unauthorized | Authentication failed, including a deactivated API token or an expired OAuth token |
| 403 | Forbidden | Authenticated, but the token or user lacks permission |
| 404 | Not Found | The resource does not exist |
| 409 | Conflict | Two requests changing the same resource at once, or a safe update that found newer data |
| 422 | Unprocessable Entity | Valid JSON the API won't apply, such as closing a ticket that is already closed |
| 429 | Too Many Requests | A rate limit was exceeded |
| 500 | Internal Server Error | A problem on Zendesk's side |
| 503 | Service Unavailable | With Retry-After: a database timeout or deadlock. Without it: an outage or maintenance |
When a business rule fails, Zendesk answers with a JSON body. This is the shape from its request docs:
{
"error": "RecordInvalid",
"description": "Record validation errors",
"details": {
"value": [
{
"type": "blank",
"description": "can't be blank"
}
]
}
}
Not every error comes back as JSON. Zendesk says an API-level error, such as calling the API without SSL, may come back as text/plain, and a plain-text answer from an endpoint you know exists usually means a syntax error in your request or a subdomain that doesn't exist. Treat it as an error to fix, not a body to parse.
The Sell API (Zendesk's sales CRM) uses a different envelope: an errors array, plus a meta object carrying http_status and a logref request ID.
Why does the Zendesk API return 401 or 403?
A 401 means Zendesk couldn't work out who you are; a 403 means it knows exactly who you are and won't let you do this. Zendesk's own 401 and 403 troubleshooting guide says these two codes account for many of the failed API requests it sees, especially early in an integration's life.

401 Unauthorized: authentication failed
Zendesk lists these causes:
- A missing or malformed
Authorizationheader - Incorrect Base64 encoding for Basic authentication
- The
/tokensuffix left off when using an API token - An expired or revoked token, which since July 2026 includes API tokens Zendesk deactivated for going unused (next section)
- An OAuth token sent in a Basic header instead of as a Bearer token
- An invalid or expired JWT for Messaging
An expired OAuth access token has its own body, so you can tell it apart from a bad header:
{
"error": "invalid_token",
"error_description": "The access token provided is expired, revoked, malformed or invalid for other reasons."
}
When you see invalid_token, exchange your refresh token for a new access token and retry once. Zendesk's OAuth migration guide says access tokens last 30 minutes by default (anything from 5 minutes to 2 days, set by expires_in), and its example refresh token lasts 30 days. The old pair stops working the moment a refresh succeeds, so save both new tokens before your next call.
Here is the OAuth header format:
curl \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
"https://your_subdomain.zendesk.com/api/v2/users/me.json"
API tokens still work until April 30, 2027 on accounts that have an active one. They use Basic authentication with /token after the email:
curl -v \
-u "agent@example.com/token:YOUR_API_TOKEN" \
"https://your_subdomain.zendesk.com/api/v2/tickets.json"
And in Node.js:
import fetch from "node-fetch";
import btoa from "btoa";
const subdomain = "your_subdomain";
const email = "agent@example.com";
const token = process.env.API_TOKEN;
const response = await fetch(
`https://${subdomain}.zendesk.com/api/v2/users/me.json`,
{
headers: {
'Authorization': 'Basic ' + btoa(`${email}/token:${token}`),
'Content-Type': 'application/json'
}
}
);
403 Forbidden: authenticated but not authorized
Zendesk lists these causes:
- An OAuth token without the scope the endpoint needs (a token with
tickets:readcan't create or update tickets) - End-user credentials used on agent-only endpoints. An end-user OAuth token can call
/users/mebut gets a 403 on tickets, views or ticket fields - A resource that belongs to another brand
- The account's IP allowlist
- A suspended or downgraded agent account
Check scopes first. You can list the scopes on the token you're using with GET /api/v2/oauth/tokens/current, and scopes can't be changed after a token is created, so a wrong scope means generating a new token. The guide to Zendesk OAuth scopes lists which scope each resource needs.
A quick diagnostic order
Zendesk's guide suggests working through it in this order:
- Test with curl first, to separate a credentials problem from a bug in your code.
- Check the subdomain. Credentials belong to one environment, and sandbox and production tokens don't swap.
- Make sure the authentication method matches the token: Basic for API tokens, Bearer for OAuth, a signed JWT for Messaging.
- Check the user's role. Many endpoints need an agent or admin.
- For OAuth, confirm the token carries the scope the endpoint needs.
- Look at where the request runs. Browser calls made with an API token fail on CORS; OAuth access tokens do support client-side CORS requests.
Why did my Zendesk API token stop working?
On June 1, 2026 Zendesk announced it is removing API tokens for the Ticketing, Help Center and Voice APIs, and the removal is already under way. That makes "a token that worked last month now returns 401" one of the most likely errors you'll hit this year:
- 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, through the UI or the API. Existing active tokens keep working.
- April 30, 2027: every remaining token is deactivated, can't be reactivated, and the token pages disappear from Admin Center.

Zendesk is plain about what breaks: "Workflows will stop executing, tickets won't sync, and automated processes may fail silently." The risky ones are the scripts, webhooks that write back to tickets and contractor-built integrations that nobody watches.
What to do now:
- In Admin Center, open Apps and integrations > APIs > API tokens and read each token's "Last used" and "Deactivates on" dates. The page also has a usage report covering the last 7 days of token requests.
- A token deactivated in the last 60 days can still be reactivated there, which buys time but doesn't fix anything.
- Create an OAuth client in Admin Center, get tokens with the
client_credentialsgrant (server-to-server) or theauthorization_codegrant (acting for a user), and switch the header toAuthorization: Bearer. The walkthrough of creating a Zendesk OAuth app covers the client setup. - Build token refresh in from day one, because OAuth access tokens expire and a token that expires mid-job gives you the same 401 again.

If you're choosing between the two for a new build, Zendesk API authentication and scopes compares them in more depth. For any build that has to outlive April 2027, the choice is already made.
How do I handle a Zendesk 429 rate limit error?
Wait the number of seconds in the Retry-After header, then retry. Zendesk's rate limits page returns a 429 whenever you pass a limit, and every response carries headers so you can slow down before that happens:
X-Rate-Limit: 700
X-Rate-Limit-Remaining: 699
Ticketing APIs such as Tickets and Users add more detail, including ratelimit-reset (seconds until the minute resets) and per-endpoint headers like zendesk-ratelimit-tickets-index: total=100; remaining=99; resets=41.

The account-wide limit for the Support and Help Center APIs depends on your Zendesk Suite plan:
| Plan | Support and Help Center API requests per minute |
|---|---|
| Team | 200 |
| Growth | 400 |
| Professional | 400 |
| Enterprise | 700 |
| Enterprise Plus | 2,500 |
The High Volume API add-on raises Growth and above to 2,500 a minute (it replaces the plan's limit rather than adding to it) and needs at least 10 agent seats. Help Center requests don't count against the Support limit, or the other way round.
Some endpoints have their own, tighter limits, and these are where most surprise 429s come from:
| Endpoint | Limit |
|---|---|
| Update Ticket | 30 updates per 10 minutes, per user, per ticket. Tag changes and linking a help center article count too |
| Incremental Exports | 10 requests a minute (30 with High Volume) |
| Export Search Results | 100 requests a minute per account |
| Update User, Create or Update User | 5 requests a minute per user |
| List Tickets past page 500 | 50 requests a minute |
| Zendesk apps | 100 requests a minute per user per app at the client, 700 per 5 minutes at the API |
Endpoints that queue background jobs, such as Update Many Tickets, allow 30 queued or running jobs at once. Past that you get a TooManyJobs error, and the zendesk-ratelimit-inflight-jobs header tells you how many slots are left.
Retrying a 429 in code
A minimal retry that honours Retry-After:
import time
import requests
def make_request_with_retry(url, headers, max_retries=3):
for attempt in range(max_retries):
response = requests.get(url, headers=headers)
if response.status_code == 429:
retry_after = int(response.headers.get('Retry-After', 60))
time.sleep(retry_after)
continue
return response
raise Exception("Max retries exceeded")
For batch work:
- Use bulk endpoints. Update Many Tickets changes up to 100 tickets in one request, and bulk ticket import does the same for migrations.
- Queue requests so traffic arrives evenly instead of in bursts.
- Throttle on
X-Rate-Limit-Remainingbefore you reach zero. - Use cursor pagination for big lists. Since August 15, 2023, offset pagination past the first 100 pages (10,000 records) returns a 400 Bad Request, so this one is a hard wall, not a speed tip. The guide to paginating Zendesk tickets shows the cursor version.
The deeper guide on Zendesk API rate limits covers monitoring usage against your limit.
What causes 409 and 422 errors in Zendesk?
422 Unprocessable Entity
A 422 means the request was well-formed JSON, but Zendesk won't apply it. The example Zendesk's request docs give is closing a ticket that's already closed. Validation failures land here too:
- A required field is missing, such as the comment body on a new ticket
- A value points at something that doesn't exist, such as an assignee ID
- Asking the Search API for a page past its 1,000-result cap (page 11 at 100 per page) returns 422; use the export endpoint for bigger result sets
The details object in the error body names the field that failed:
{
"error": "RecordInvalid",
"description": "Record validation errors",
"details": {
"base": [
{
"description": "Status: closed is not valid for ticket update"
}
]
}
}
409 Conflict
A 409 means your change collided with another one. Zendesk says it typically happens when two or more requests try to create or change the same resource at the same time, and that you can retry once the conflict is resolved.
Zendesk already uses optimistic locking on every endpoint that saves tickets. To catch a collision deliberately instead of losing data, make a safe update: read the ticket's updated_at, then send it back as updated_stamp with safe_update: true. Zendesk's guide to creating and updating tickets explains it with two updates that each add a tag:
{
"ticket": {
"subject": "Updated Subject",
"updated_stamp": "2021-08-24T16:53:51Z",
"safe_update": true
}
}
If someone changed the ticket since you read it, you get this instead of a silent overwrite:
{
"description": "Safe Update prevented the update due to outdated ticket data. Please fetch the latest ticket data and try again.",
"error": "UpdateConflict"
}
Fetch the ticket again and reapply your change. Bulk updates report the same thing as an UpdateConflict in the job status rather than as a 409. The guide to updating tickets via the API has the full request.
Idempotency keys stop duplicates, not conflicts
Retrying a POST after a timeout can create the same ticket twice. Zendesk's Ticketing API accepts an Idempotency-Key header on ticket creation so a retry returns the first result instead:
curl https://{subdomain}.zendesk.com/api/v2/tickets.json \
-d '{"ticket": {"subject": "Test", "comment": {"body": "Test"}}}' \
-H "Content-Type: application/json" \
-H "Idempotency-Key: unique-key-123" \
-X POST
Add your Bearer header as usual. The first response carries x-idempotency-lookup: miss and a repeat carries hit. Keys expire after two hours, and reusing a key with a different body returns a 400 with "error": "IdempotentRequestError". More on this in Zendesk API idempotency keys.
What do Zendesk email delivery status codes mean?
The Email Notifications API tells you what happened after Zendesk sent a ticket email. Each recipient gets a delivery_status object with id, name, code and message; the code is usually the receiving server's SMTP code.
The ones you'll see most:
| ID | Name | SMTP code | Meaning |
|---|---|---|---|
| 0 | NONE | 0 | No delivery failure response received |
| 5 | DELIVERED | 200 | The email was delivered |
| 16 | BAD_EMAIL_ADDRESS | 510 | Address rejected: it doesn't exist or is misspelled |
| 29 | MAILBOX_UNAVAILABLE | 550 | Mailbox unavailable or access denied |
| 31 | MAILBOX_FULL | 552 | The recipient's inbox is full |
| 39 | USER_DOES_NOT_EXIST | 550 5.1.1 | User does not exist (check for typos) |
| 40 | RECIPIENT_IS_INACTIVE | 550 5.2.1 | The address is inactive |
| 52 | INCORRECT_AUTHENTICATION_LEVEL | 550 5.7.515 | Your From address doesn't meet the recipient's authentication requirements |
Zendesk's full table lists more than 60 values, including 520 (IP and SPF record don't match), 530 (authentication required) and 558 (rejected as suspected spam).

If you send through Zendesk's Microsoft Exchange connector, failures come back with their own codes:
| Code | Meaning |
|---|---|
| EC-001 | The Exchange connection is inactive or restricted |
| EC-002 | Exchange rejected the handoff for insufficient storage |
| EC-003 | Exchange rejected the handoff |
| EC-004 | Bad recipient address |
| EC-005 | Microsoft API limits and Zendesk's retry limits were both reached |
| EC-006 | Exchange authentication issue |
How do I troubleshoot a Zendesk API error?
Start from the status code, then read the body; Zendesk's error messages usually name the problem. This order catches most of what I see:
- Read the whole error body, not just the status code.
invalid_token,RecordInvalid,UpdateConflict,TooManyJobsandIdempotentRequestErroreach point to a different fix. - Reproduce it with curl to separate the API from your application code.
- Keep the
X-Zendesk-Request-Idheader. Every response has one, and Zendesk support can trace your exact request with it. - Check the subdomain and the token type together. A sandbox token on production, or an API token on an account created after July 28, 2026, fails before anything else is checked.
- Check TLS if nothing connects at all. The API needs TLS 1.2 and the SNI extension; TLS 1.0 and 1.1 were removed in June 2018.
- For 5xx errors, check the Zendesk status page before changing your code.
Pick the code you got to see where to look first:
Tap the status code your integration returned to see the first thing to check.
The mistakes I'd check before anything else:
- Leaving
/tokenoff the username in Basic auth - Sending an OAuth token in a Basic header instead of as Bearer
- Building anything new on API tokens, which stop working on April 30, 2027
- Not storing the new refresh token after each refresh
- Retrying a 429 straight away instead of after
Retry-After
Try eesel in Zendesk before you build the integration
A lot of the Zendesk integrations I see exist to put AI on the ticket queue: draft a reply, tag, route, close the easy ones. If that's the job, you may not need to own the auth, rate limits and retries yourself. 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.
The part that matters for this post is how it connects: a Zendesk admin approves eesel on Zendesk's own approval screen, which lists what it can read and do. That is an OAuth grant, not an API token, so the token removal doesn't touch it. eesel's Zendesk docs also say what the plan limits mean in practice: it works on every current Zendesk plan, and on the entry-level plan Zendesk's lower per-minute limit only makes the first ticket import arrive more slowly.
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 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, you pick which sources to import, an admin approves the link in Zendesk, and eesel status shows what has downloaded. Claude Code, Codex or Cursor can run those same commands for you, so the only browser step left is the admin's approval.

If you're building something eesel doesn't do, such as a data sync into your warehouse, everything above still applies, and the Zendesk API development guide covers the wider build. If the integration is really "an agent that works our tickets", Try eesel and test it on your own tickets in the dashboard, or book a demo with the eesel team.