---
{
  "title": "Zendesk API error codes: Complete reference guide for 2026",
  "slug": "zendesk-api-error-codes",
  "intent": "icp-competitor",
  "locale": "en",
  "date": "2026-03-02",
  "updated": "2026-11-30T12:41:22Z",
  "template": "default",
  "excerpt": "What each Zendesk API error code means and how to fix it, from 401s caused by the API token removal to 429 rate limits, 409 safe updates and email delivery codes.",
  "categories": ["Guides","Zendesk AI"],
  "tags": [
    "Zendesk",
    "API",
    "Error Codes",
    "Developer",
    "Troubleshooting"
  ],
  "readTime": 15,
  "author": 19,
  "reviewer": 4,
  "seo": {
    "title": "Zendesk API error codes: Complete reference guide for 2026",
    "description": "A 401 from a Zendesk token that used to work usually means it was deactivated: tokens stop on April 30, 2027. Fixes for 401, 403, 409, 422, 429 and 5xx errors.",
    "image": "https://cdn-public.eesel.ai/blog/banners/zendesk-api-error-codes-mx399zaf-195129-20261130.webp"
  },
  "coverImage": "https://cdn-public.eesel.ai/blog/banners/zendesk-api-error-codes-mx399zaf-195129-20261130.webp",
  "coverImageAlt": "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",
  "coverImageWidth": 1536,
  "coverImageHeight": 1024,
  "cta": {
    "variant": "cli",
    "headline": "Connect Zendesk to eesel from your terminal",
    "subhead": "Your coding agent runs the eesel CLI, an admin approves once in Zendesk, and you test drafted replies before anything reaches a customer.",
    "primary": {
      "label": "Learn more",
      "action": "learn-more"
    },
    "secondary": {
      "label": "Try for free",
      "action": "signup"
    }
  },
  "faqs": {
    "heading": "Frequently Asked Questions",
    "type": "blog",
    "answerType": "html",
    "faqs": [
      {
        "question": "What is the difference between a 401 and 403 error in the Zendesk API?",
        "answer": "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 <a href=\"https://www.eesel.ai/blog/zendesk-api-oauth-scopes\">your OAuth scopes</a> or the user's role."
      },
      {
        "question": "Why did my Zendesk API token suddenly start returning 401?",
        "answer": "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 <a href=\"https://www.eesel.ai/blog/zendesk-oauth-app-creation\">how to create a Zendesk OAuth app</a>."
      },
      {
        "question": "How do I handle Zendesk API error codes for rate limiting?",
        "answer": "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; <a href=\"https://www.eesel.ai/blog/zendesk-api-rate-limit-requests-per-minute\">Zendesk API rate limits</a> covers them in depth."
      },
      {
        "question": "What does a 409 Conflict mean in the Zendesk API?",
        "answer": "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 <a href=\"https://www.eesel.ai/blog/zendesk-api-update-ticket\">ticket updates</a>."
      },
      {
        "question": "How can I debug a 422 Unprocessable Entity error in Zendesk?",
        "answer": "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 <a href=\"https://www.eesel.ai/blog/zendesk-api-list-tickets-pagination\">cursor pagination</a> or the export endpoint."
      },
      {
        "question": "What should I do when I get a 500 or 503 error from Zendesk?",
        "answer": "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."
      },
      {
        "question": "Can I avoid writing Zendesk API error handling myself?",
        "answer": "If what you need is an AI agent working your Zendesk tickets, yes: <a href=\"https://www.eesel.ai/integrations/zendesk\">eesel's Zendesk integration</a> 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."
      }
    ],
    "supportLink": null
  },
  "alternates": {
    "x-default": "zendesk-api-error-codes",
    "en": "zendesk-api-error-codes",
    "de": "zendesk-api-fehlercodes",
    "es": "zendesk-api-error-codes",
    "fr": "codes-erreur-api-zendesk",
    "ja": "zendesk-api-error-codes",
    "pt": "codigos-de-erro-api-zendesk"
  }
}
---

## TL;DR

Zendesk's API uses standard HTTP status codes, and <mark>the error catching most teams in 2026 is a 401 from an API token that worked last month</mark>: 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](https://www.eesel.ai/integrations/zendesk) 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](https://docs.eesel.ai/apis-and-developer-resources/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](https://developer.zendesk.com/api-reference/) is one I read more than most. If you're new to it, start with the [Zendesk API tutorial](https://www.eesel.ai/blog/zendesk-api-tutorial-for-beginners) 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 |

![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](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/public_assets/blog-gen/24fae00c-2ead-476d-a7b1-5eea98a5037b "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](https://developer.zendesk.com/api-reference/introduction/requests/):

```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](https://developer.zendesk.com/api-reference/sales-crm/errors/) (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](https://support.zendesk.com/hc/en-us/articles/10306782115610-Troubleshooting-401-and-403-Errors-on-the-Zendesk-Developer-Platform) 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](https://cdn-public.eesel.ai/blog/blog-gen/generated/zendesk-401-vs-403-mx399v97-c4a10f-20261130.webp "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`, <mark>exchange your refresh token for a new access token and retry once</mark>. Zendesk's [OAuth migration guide](https://developer.zendesk.com/documentation/authentication/oauth-migration/) 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 <mark>scopes can't be changed after a token is created</mark>, so a wrong scope means generating a new token. The guide to [Zendesk OAuth scopes](https://www.eesel.ai/blog/zendesk-api-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](https://www.eesel.ai/blog/zendesk-sandbox-vs-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](https://support.zendesk.com/hc/en-us/articles/10840968198042-Announcing-the-removal-of-API-tokens-as-an-authentication-method-for-API-requests) 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](https://cdn-public.eesel.ai/blog/blog-gen/generated/zendesk-api-token-removal-timeline-mx399va2-c5b1f6-20261130.webp "Three dates, and the last one has no grace period.")

Zendesk is plain about what breaks: <mark>"Workflows will stop executing, tickets won't sync, and automated processes may fail silently."</mark> 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](https://www.eesel.ai/blog/zendesk-oauth-app-creation) 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](https://cdn-public.eesel.ai/blog/zendesk/images/zendesk-oauth-migration-20261130.png "Zendesk's own migration guide, as taken from [its developer docs](https://developer.zendesk.com/documentation/authentication/oauth-migration/).")

If you're choosing between the two for a new build, [Zendesk API authentication and scopes](https://www.eesel.ai/blog/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](https://developer.zendesk.com/api-reference/introduction/rate-limits/) 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 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](https://cdn-public.eesel.ai/blog/zendesk/images/zendesk-rate-limits-docs-20261130.png "The headers to watch, from [Zendesk's rate limits reference](https://developer.zendesk.com/api-reference/introduction/rate-limits/).")

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](https://www.eesel.ai/blog/zendesk-api-incremental-export) | 10 requests a minute (30 with High Volume) |
| Export Search Results | 100 requests a minute per account |
| Update User, [Create or Update User](https://www.eesel.ai/blog/zendesk-api-create-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.

![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](https://wmeojibgfvjvinftolho.supabase.co/storage/v1/object/public/public_assets/blog-gen/5272a467-dd59-419a-a308-8a87d01b7f3c "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](https://www.eesel.ai/blog/zendesk-api-bulk-import-tickets) 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](https://www.eesel.ai/blog/zendesk-api-list-tickets-pagination) shows the cursor version.

The deeper guide on [Zendesk API rate limits](https://www.eesel.ai/blog/zendesk-api-rate-limit-requests-per-minute) 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](https://developer.zendesk.com/api-reference/introduction/requests/) 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](https://www.eesel.ai/blog/zendesk-api-create-ticket-json)
- 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](https://developer.zendesk.com/documentation/ticketing/managing-tickets/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](https://www.eesel.ai/blog/zendesk-api-update-ticket) 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](https://developer.zendesk.com/api-reference/ticketing/introduction/) 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](https://www.eesel.ai/blog/zendesk-api-idempotency-keys).

## What do Zendesk email delivery status codes mean?

The [Email Notifications API](https://developer.zendesk.com/api-reference/ticketing/tickets/email_notifications/) 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).

![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)](https://cdn-public.eesel.ai/blog/blog-gen/generated/zendesk-email-delivery-codes-mx399v9r-115b6f-20261130.webp "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:

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

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](https://status.zendesk.com)** before changing your code.

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

<div class="widget-zendesk-api-error-codes-chooser" aria-label="Pick a Zendesk API status code to see its most likely cause and first fix"><style>.widget-zendesk-api-error-codes-chooser{background:#fff;color:#474739;border:1px solid #e3e3dc;border-radius:14px;padding:18px;margin:24px 0;font-size:15px;line-height:1.5}.widget-zendesk-api-error-codes-chooser .zc-r{position:absolute;opacity:0;width:1px;height:1px}.widget-zendesk-api-error-codes-chooser .zc-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.widget-zendesk-api-error-codes-chooser .zc-tabs label{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border:1px solid #03363D;border-radius:999px;cursor:pointer;font-weight:600;color:#03363D;background:#fff}.widget-zendesk-api-error-codes-chooser .zc-p{display:none;border-left:4px solid #03363D;background:#F4F7F6;border-radius:8px;padding:14px 16px}.widget-zendesk-api-error-codes-chooser .zc-h{display:block;font-weight:700;color:#03363D;margin-bottom:6px}.widget-zendesk-api-error-codes-chooser .zc-l{display:block;margin-top:6px}.widget-zendesk-api-error-codes-chooser code{background:#eef2f1;border-radius:4px;padding:0 4px}.widget-zendesk-api-error-codes-chooser .p-401{display:block}.widget-zendesk-api-error-codes-chooser .l-401{background:#03363D;color:#fff}.widget-zendesk-api-error-codes-chooser .zc-r:checked~.zc-panels .p-401{display:none}.widget-zendesk-api-error-codes-chooser .zc-r:checked~.zc-tabs .l-401{background:#fff;color:#03363D}.widget-zendesk-api-error-codes-chooser #zc-401:checked~.zc-panels .p-401,.widget-zendesk-api-error-codes-chooser #zc-403:checked~.zc-panels .p-403,.widget-zendesk-api-error-codes-chooser #zc-409:checked~.zc-panels .p-409,.widget-zendesk-api-error-codes-chooser #zc-422:checked~.zc-panels .p-422,.widget-zendesk-api-error-codes-chooser #zc-429:checked~.zc-panels .p-429,.widget-zendesk-api-error-codes-chooser #zc-503:checked~.zc-panels .p-503{display:block}.widget-zendesk-api-error-codes-chooser #zc-401:checked~.zc-tabs .l-401,.widget-zendesk-api-error-codes-chooser #zc-403:checked~.zc-tabs .l-403,.widget-zendesk-api-error-codes-chooser #zc-409:checked~.zc-tabs .l-409,.widget-zendesk-api-error-codes-chooser #zc-422:checked~.zc-tabs .l-422,.widget-zendesk-api-error-codes-chooser #zc-429:checked~.zc-tabs .l-429,.widget-zendesk-api-error-codes-chooser #zc-503:checked~.zc-tabs .l-503{background:#03363D;color:#fff}.widget-zendesk-api-error-codes-chooser .zc-r:focus-visible~.zc-tabs label{outline:none}.widget-zendesk-api-error-codes-chooser #zc-401:focus-visible~.zc-tabs .l-401,.widget-zendesk-api-error-codes-chooser #zc-403:focus-visible~.zc-tabs .l-403,.widget-zendesk-api-error-codes-chooser #zc-409:focus-visible~.zc-tabs .l-409,.widget-zendesk-api-error-codes-chooser #zc-422:focus-visible~.zc-tabs .l-422,.widget-zendesk-api-error-codes-chooser #zc-429:focus-visible~.zc-tabs .l-429,.widget-zendesk-api-error-codes-chooser #zc-503:focus-visible~.zc-tabs .l-503{outline:3px solid #5FB3A8;outline-offset:2px}</style><input class="zc-r" type="radio" name="zc" id="zc-401"><input class="zc-r" type="radio" name="zc" id="zc-403"><input class="zc-r" type="radio" name="zc" id="zc-409"><input class="zc-r" type="radio" name="zc" id="zc-422"><input class="zc-r" type="radio" name="zc" id="zc-429"><input class="zc-r" type="radio" name="zc" id="zc-503"><div class="zc-tabs"><label for="zc-401" class="l-401">401</label><label for="zc-403" class="l-403">403</label><label for="zc-409" class="l-409">409</label><label for="zc-422" class="l-422">422</label><label for="zc-429" class="l-429">429</label><label for="zc-503" class="l-503">503</label></div><div class="zc-panels"><div class="zc-p p-401"><span class="zc-h">401: Zendesk can't tell who you are</span><span class="zc-l">Body says <code>invalid_token</code>? Your OAuth access token expired: refresh it and retry once.</span><span class="zc-l">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.</span><span class="zc-l">Otherwise: the <code>/token</code> suffix, Bearer versus Basic, and the subdomain.</span></div><div class="zc-p p-403"><span class="zc-h">403: Zendesk knows you, but says no</span><span class="zc-l">List the token's scopes with <code>GET /api/v2/oauth/tokens/current</code>. Scopes can't be edited, so a missing one means a new token.</span><span class="zc-l">Then check the user's role, the brand, the IP allowlist and whether the agent was suspended or downgraded.</span></div><div class="zc-p p-409"><span class="zc-h">409: your write collided with another</span><span class="zc-l">Body says <code>UpdateConflict</code>? Your safe update saw newer data: fetch the ticket and reapply.</span><span class="zc-l">Otherwise two requests changed the same resource at once: serialize writes to the same ticket.</span></div><div class="zc-p p-422"><span class="zc-h">422: valid JSON Zendesk won't apply</span><span class="zc-l">Read <code>details</code> for the field that failed, such as a missing comment body or a status the ticket can't move to.</span><span class="zc-l">From Search? You asked past the 1,000-result cap: use the export endpoint.</span></div><div class="zc-p p-429"><span class="zc-h">429: you passed a rate limit</span><span class="zc-l">Sleep for the <code>Retry-After</code> seconds, then retry.</span><span class="zc-l">Hitting it on one ticket? Update Ticket allows 30 changes per 10 minutes per user per ticket, whatever your plan.</span><span class="zc-l">Error says <code>TooManyJobs</code>? You have 30 background jobs queued: wait for some to finish.</span></div><div class="zc-p p-503"><span class="zc-h">503: Zendesk is unavailable</span><span class="zc-l">Has a <code>Retry-After</code> header? A database timeout or deadlock: wait and retry.</span><span class="zc-l">No header? An outage or maintenance: check the status page, then contact Zendesk support with your <code>X-Zendesk-Request-Id</code>.</span></div></div></div>

*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](https://www.eesel.ai/blog/zendesk-integration) I see exist to put [AI on the ticket queue](https://www.eesel.ai/blog/zendesk-ai): 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](https://www.eesel.ai/integrations/zendesk) 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.

<mark>The part that matters for this post is how it connects</mark>: 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](https://docs.eesel.ai/integrations/helpdesks/zendesk) 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](https://docs.eesel.ai/apis-and-developer-resources/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](https://cdn-public.eesel.ai/blog/zendesk-api-error-codes/images/image-20261130.webp "One approval in Zendesk, with no API token, as shown in [eesel's Zendesk docs](https://docs.eesel.ai/integrations/helpdesks/zendesk).")

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](https://www.eesel.ai/blog/zendesk-api-development) covers the wider build. If the integration is really "an agent that works our tickets", [Try eesel](https://dashboard.eesel.ai/signup) and test it on your own tickets in the dashboard, or [book a demo](https://www.eesel.ai/book/team) with the eesel team.
