Zendesk API error codes: Complete reference guide for 2026

Rama Adi
Written by

Rama Adi

Katelin Teen
Reviewed by

Katelin Teen

Last edited November 30, 2026

Expert Verified
Two developers running past a flow of support messages into an AI agent that ends in a green check, with a code window, a gear and a key dropped into a bin, beside the Zendesk logo
TL;DR

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 codeMeaningCommon cause in Zendesk
200OKSuccessful GET or PUT request
201CreatedMost successful POST requests
204No ContentSuccessful DELETE request
400Bad RequestMalformed request; an idempotency key reused with a different body; offset pagination past 100 pages
401UnauthorizedAuthentication failed, including a deactivated API token or an expired OAuth token
403ForbiddenAuthenticated, but the token or user lacks permission
404Not FoundThe resource does not exist
409ConflictTwo requests changing the same resource at once, or a safe update that found newer data
422Unprocessable EntityValid JSON the API won't apply, such as closing a ticket that is already closed
429Too Many RequestsA rate limit was exceeded
500Internal Server ErrorA problem on Zendesk's side
503Service UnavailableWith Retry-After: a database timeout or deadlock. Without it: an outage or maintenance
Four columns of HTTP status code families, green for 2xx success, blue for 3xx redirection, orange for 4xx client errors and red for 5xx server errors, each listing example codes such as 200 OK, 304 Not Modified, 401 Unauthorized and 503 Service Unavailable
The first digit tells you whose problem it is.

When a business rule fails, Zendesk answers with a JSON body. This is the shape from its request docs:

JSON
{
  "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.

Two panels: 401 Unauthorized, where a request stops at a first gate asking who are you, with causes such as a missing /token suffix and a deactivated or expired token; and 403 Forbidden, where the request passes the first gate and stops at a second asking are you allowed, with causes such as a missing OAuth scope and end-user credentials on an agent endpoint
401 fails at the first gate, 403 at the second.

401 Unauthorized: authentication failed

Zendesk lists these causes:

  • A missing or malformed Authorization header
  • Incorrect Base64 encoding for Basic authentication
  • The /token suffix 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:

JSON
{
  "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:

Bash
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:

Bash
curl -v \
  -u "agent@example.com/token:YOUR_API_TOKEN" \
  "https://your_subdomain.zendesk.com/api/v2/tickets.json"

And in Node.js:

JavaScript
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:read can't create or update tickets)
  • End-user credentials used on agent-only endpoints. An end-user OAuth token can call /users/me but 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:

  1. Test with curl first, to separate a credentials problem from a bug in your code.
  2. Check the subdomain. Credentials belong to one environment, and sandbox and production tokens don't swap.
  3. Make sure the authentication method matches the token: Basic for API tokens, Bearer for OAuth, a signed JWT for Messaging.
  4. Check the user's role. Many endpoints need an agent or admin.
  5. For OAuth, confirm the token carries the scope the endpoint needs.
  6. 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.
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 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:

  1. 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.
  2. A token deactivated in the last 60 days can still be reactivated there, which buys time but doesn't fix anything.
  3. Create an OAuth client in Admin Center, get tokens with the client_credentials grant (server-to-server) or the authorization_code grant (acting for a user), and switch the header to Authorization: Bearer. The walkthrough of creating a Zendesk OAuth app covers the client setup.
  4. 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.
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 own migration guide, as taken from its developer docs.

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:

Code
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 Rate limits page of Zendesk's developer documentation, showing the X-Rate-Limit and X-Rate-Limit-Remaining response headers and the note that exceeding the limit returns 429 Too Many Requests with a Retry-After header
The headers to watch, from Zendesk's rate limits reference.

The account-wide limit for the Support and Help Center APIs depends on your Zendesk Suite plan:

PlanSupport and Help Center API requests per minute
Team200
Growth400
Professional400
Enterprise700
Enterprise Plus2,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:

EndpointLimit
Update Ticket30 updates per 10 minutes, per user, per ticket. Tag changes and linking a help center article count too
Incremental Exports10 requests a minute (30 with High Volume)
Export Search Results100 requests a minute per account
Update User, Create or Update User5 requests a minute per user
List Tickets past page 50050 requests a minute
Zendesk apps100 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.

A flowchart where an API request's status code is checked: anything but 429 is processed while watching X-Rate-Limit-Remaining, and a 429 leads to reading the Retry-After header, calculating a pause and waiting before the request starts again
Retry-After first, your own backoff second.

Retrying a 429 in code

A minimal retry that honours Retry-After:

Python
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-Remaining before 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:

JSON
{
  "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:

JSON
{
  "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:

JSON
{
  "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:

Bash
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:

IDNameSMTP codeMeaning
0NONE0No delivery failure response received
5DELIVERED200The email was delivered
16BAD_EMAIL_ADDRESS510Address rejected: it doesn't exist or is misspelled
29MAILBOX_UNAVAILABLE550Mailbox unavailable or access denied
31MAILBOX_FULL552The recipient's inbox is full
39USER_DOES_NOT_EXIST550 5.1.1User does not exist (check for typos)
40RECIPIENT_IS_INACTIVE550 5.2.1The address is inactive
52INCORRECT_AUTHENTICATION_LEVEL550 5.7.515Your 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).

A grid titled Zendesk email delivery codes, whose fix is it, sorting codes into four columns: the address is wrong (510, 511, 550 5.1.1), the recipient side (552, 550 5.2.1, 558), your sending setup (520, 530, 550 5.7.515) and your Exchange connector (EC-001, EC-005, EC-006)
Sort the code by whose fix it is before you change anything.

If you send through Zendesk's Microsoft Exchange connector, failures come back with their own codes:

CodeMeaning
EC-001The Exchange connection is inactive or restricted
EC-002Exchange rejected the handoff for insufficient storage
EC-003Exchange rejected the handoff
EC-004Bad recipient address
EC-005Microsoft API limits and Zendesk's retry limits were both reached
EC-006Exchange 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:

  1. Read the whole error body, not just the status code. invalid_token, RecordInvalid, UpdateConflict, TooManyJobs and IdempotentRequestError each point to a different fix.
  2. Reproduce it with curl to separate the API from your application code.
  3. Keep the X-Zendesk-Request-Id header. Every response has one, and Zendesk support can trace your exact request with it.
  4. 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.
  5. 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.
  6. For 5xx errors, check the Zendesk status page before changing your code.

Pick the code you got to see where to look first:

401: Zendesk can't tell who you areBody says invalid_token? Your OAuth access token expired: refresh it and retry once.Using an API token? Check its "Deactivates on" date in Admin Center. Unused tokens switch off after 30 days, and all of them stop on April 30, 2027.Otherwise: the /token suffix, Bearer versus Basic, and the subdomain.
403: Zendesk knows you, but says noList the token's scopes with GET /api/v2/oauth/tokens/current. Scopes can't be edited, so a missing one means a new token.Then check the user's role, the brand, the IP allowlist and whether the agent was suspended or downgraded.
409: your write collided with anotherBody says UpdateConflict? Your safe update saw newer data: fetch the ticket and reapply.Otherwise two requests changed the same resource at once: serialize writes to the same ticket.
422: valid JSON Zendesk won't applyRead details for the field that failed, such as a missing comment body or a status the ticket can't move to.From Search? You asked past the 1,000-result cap: use the export endpoint.
429: you passed a rate limitSleep for the Retry-After seconds, then retry.Hitting it on one ticket? Update Ticket allows 30 changes per 10 minutes per user per ticket, whatever your plan.Error says TooManyJobs? You have 30 background jobs queued: wait for some to finish.
503: Zendesk is unavailableHas a Retry-After header? A database timeout or deadlock: wait and retry.No header? An outage or maintenance: check the status page, then contact Zendesk support with your X-Zendesk-Request-Id.

Tap the status code your integration returned to see the first thing to check.

The mistakes I'd check before anything else:

  • Leaving /token off 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.

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 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.

Frequently Asked Questions

What is the difference between a 401 and 403 error in the Zendesk API?
A 401 means Zendesk could not authenticate the request, so it does not know who you are. A 403 means it knows who you are but that user or token lacks permission, most often a missing OAuth scope. Fix a 401 in your credentials and header, and a 403 in your OAuth scopes or the user's role.
Why did my Zendesk API token suddenly start returning 401?
Since July 28, 2026, Zendesk deactivates any API token that goes unused for 30 days, and deletes it after 60 more days. New tokens can't be created since October 27, 2026, and every token stops on April 30, 2027, so the lasting fix is to move to OAuth. See how to create a Zendesk OAuth app.
How do I handle Zendesk API error codes for rate limiting?
On a 429, wait the number of seconds in the Retry-After header before retrying, and watch X-Rate-Limit-Remaining so you slow down before you hit the limit. The per-plan limits run from 200 requests a minute on Team to 2,500 on Enterprise Plus; Zendesk API rate limits covers them in depth.
What does a 409 Conflict mean in the Zendesk API?
Two requests tried to change the same resource at once, or a safe update found the ticket had changed since you read it. Fetch the ticket again and retry; to catch collisions on purpose, send safe_update and updated_stamp with your ticket updates.
How can I debug a 422 Unprocessable Entity error in Zendesk?
Read the details object in the error body, which names the field that failed validation. Zendesk's own example is trying to close a ticket that is already closed; asking the Search API for a page past its 1,000-result cap also returns 422, so switch to cursor pagination or the export endpoint.
What should I do when I get a 500 or 503 error from Zendesk?
A 503 with a Retry-After header is a database timeout or deadlock, so wait that long and retry. A 503 without one, or a 500 that persists, points to an outage or maintenance: check Zendesk's status page, then contact Zendesk support with the X-Zendesk-Request-Id header from the response.
Can I avoid writing Zendesk API error handling myself?
If what you need is an AI agent working your Zendesk tickets, yes: eesel's Zendesk integration connects through Zendesk's own OAuth approval rather than an API token, and you choose which actions it takes alone, asks first for, or never takes. If you are building your own integration, the handling in this guide is still yours to write.

Share this article