---
title: "AEO API Errors: Codes and How to Fix Them | AEO API"
description: "Look up AEO API error codes, match them to HTTP statuses and see what to do before you retry a request."
url: "https://aeoapi.dev/docs/errors"
canonical: "https://aeoapi.dev/docs/errors"
last_updated: "2026-11-29"
---

# AEO API errors

Read the HTTP status and the `code` in the response body. Keep the `request_id` if you need help with a request.

API error codes and recovery steps

| Code | HTTP status | What to do |
| --- | --- | --- |
| `invalid_request` | 400 | Check the request syntax and selector values before sending it again. |
| `unauthenticated` | 401 | Send a valid API key in the Authorization header. |
| `quota_exceeded` | 402 | Check the remaining credits and the cost of the requested work. |
| `forbidden` | 403 | Check the required scopes, role, plan and billing access for this request. |
| `not_found` | 404 | Check the resource ID and whether the key can access its brand. |
| `invalid_request` | 405 | Use an HTTP method listed for this route. Check the Allow response header. |
| `conflict` | 409 | Read the current state. If you retried a write, confirm the key and request body match the first attempt. |
| `precondition_failed` | 412 | Read the current revision and review the change before sending a new request. |
| `validation_error` | 422 | Read field_errors when present and correct the listed fields. |
| `rate_limited` | 429 | Wait for the delay in Retry-After before sending the request again. |
| `internal_error` | 500 | Use retryable to decide whether to retry. Keep the request_id if you need help. |
| `source_pending` | 503 | Wait for the delay in Retry-After before sending the request again. |
| `feature_not_offered` | 503 | Check the documented requirements for this feature. The current request cannot be retried. |

## Fix a request field

When the response includes `field_errors`, each entry identifies a `field` and tells you what to change in its `message`.

| When it happens | Status and code | Field | What to do |
| --- | --- | --- | --- |
| Brand update is missing a revision | 400 `invalid_request` | `header.if-match` | Read the brand and send its current `ETag` in the `If-Match` header. |
| Prompt archive request contains extra fields | 400 `invalid_request` | `body` | Send only `action: "archive"` and `prompt_id`. |
| A brand already has the requested name | 409 `conflict` | `name` | Choose a different name, or use the existing brand. |
| A citation check URL is missing from this brand's citation list | 404 `not_found` | `urls.0` for the first URL, for example | Replace each URL identified in `field_errors` with one from [`GET /v2/analytics/citations`](https://aeoapi.dev/docs/api-reference#get-v2-analytics-dataset) for that brand. |

Check `retryable` before repeating a request. See [how to retry a write](https://aeoapi.dev/docs/guides/authentication-and-access#retries).
