---
title: "What do overads API error codes mean?"
description: "Every overads API error carries a stable code such as POST_NOT_FOUND or CONNECTION_EXPIRED, a message for a person and, where it applies, the field at fault."
canonical_url: https://overads.io/help/api-error-codes
md_url: https://overads.io/help/api-error-codes.md
updated: 2026-11-27
---

# What do overads API error codes mean?

Included in Growth, the one overads plan. API keys, webhooks and the MCP server are part of the plan.

Every error the overads API raises carries a stable `code`, a `message` written for a person and, where there is one, the `field` that caused it. Switch on the code in your program: it does not change for the life of v1.

## The shape of an error

```json
{
  "error": {
    "code": "SCHEDULED_TIME_IN_PAST",
    "message": "scheduledAt is 42 minutes in the past. Send a time in the future, or omit it to create a draft.",
    "field": "scheduledAt"
  }
}
```

- `code` is the thing to branch on.
- `message` is for a person. Log it, show it, but do not parse it.
- `field` names the input at fault, when there is one.

## Four kinds of answer that look different

| Kind | Body | Example |
| --- | --- | --- |
| An API error | `{ error: { code, message, field } }` | `POST_NOT_FOUND` |
| A bad credential or a rate limit | A flat body with `statusCode` and `message`, sometimes `code` | `401` Invalid API key, `429` with `retryAfterSeconds` |
| A request that fails schema validation | A flat `400` with a list of messages | An unknown field, a wrong type, a missing required field |
| A post that breaks one channel's limits | A flat `400` with `code` at the top level | `TOO_LONG` |

Unknown fields are refused, never ignored. A flat body also carries `error`, `path` and `timestamp`.

## Posts and connections

| Code | Status | Meaning | Recovery |
| --- | --- | --- | --- |
| `POST_NOT_FOUND` | 404 | No post with that id in this workspace. | List with `GET /posts`. |
| `POST_NOT_EDITABLE` | 409 | The post is publishing, published, partially published or cancelled. | Create a new post. |
| `CONNECTION_NOT_FOUND` | 404 | A `connectionIds` entry is not in this workspace. | List with `GET /connections`. |
| `CONNECTION_EXPIRED` | 409 | The connection is not active or its token has expired. | Reconnect the account in the app. |
| `SCHEDULED_TIME_IN_PAST` | 400 | `scheduledAt` is more than five minutes in the past. | Send a future time, or omit it for a draft. |
| `APPROVAL_REQUIRED` | 409 | `POST /posts/:id/publish` on a post that is pending approval. | A member approves it in the app. Do not retry. |

## Media

| Code | Status | Meaning | Recovery |
| --- | --- | --- | --- |
| `MEDIA_REQUIRED` | 400 | The post targets Instagram and carries no media. | Add `mediaUrls` or `mediaIds`. |
| `MEDIA_NOT_FOUND` | 404 | A `mediaIds` entry is not a media asset in this workspace. | Use the id returned by `POST /media/upload-url`. |
| `MEDIA_NOT_READY` | 409 | The asset has not been completed, or the bytes are not in storage yet. | PUT the file, then `POST /media/:id/complete`. |
| `MEDIA_TOO_LARGE` | 400 | Over the cap: 15 MB images, 500 MB video by upload, 25 MB video by URL. (A video over one target channel's own size cap carries the same code in the flat channel-limit body below.) | Shrink it, or use the presigned upload for large video. |
| `MEDIA_URL_REFUSED` | 400 | The URL is not public https, did not answer 2xx, or did not return an image or video. | Host the file on a public https URL. |
| `MEDIA_STORAGE_UNAVAILABLE` | 503 | Object storage is not configured or not reachable. | Retry later; nothing was written. |

## Keys, scopes and retries

| Code | Status | Meaning | Recovery |
| --- | --- | --- | --- |
| `SCOPE_MISSING` | 403 | The key lacks the route's scope. | Create a key with the scope. |
| `IDEMPOTENCY_KEY_CONFLICT` | 422 | The `Idempotency-Key` was used with a different request. | Use a fresh key for a new request. |
| `IDEMPOTENCY_IN_FLIGHT` | 409 | A request with this key is still running. | Wait, then retry with the same key to get its result. |
| `VALIDATION_FAILED` | 400 (409 for a taken slug) | An `Idempotency-Key` over 255 characters, an upload `contentType` the kind does not accept, a taken workspace `slug`, or a managed key asking only for `workspaces:manage`. | The `field` names it. |

Webhook routes and the client-workspace routes agencies use have codes of their own, such as `WEBHOOK_URL_REFUSED` and `WORKSPACE_NOT_MANAGED`. They are listed with the rest in the [error catalogue](https://overads.io/docs/errors).

## Channel-limit refusals

Every target of a post is checked against its channel's limits when the post is created or edited. A failure answers `400` with a flat body, and the message names the channel and the cap.

| Code | Meaning |
| --- | --- |
| `TOO_LONG` | The copy for one channel is over its character cap. Give that channel a shorter `variants` entry. |
| `TOO_MANY_ITEMS` | More images, videos or total items than the channel takes. Trim the media list, or split the post. |
| `MEDIA_UNSUPPORTED` | A mix or a kind of media the channel does not take, such as images and a video together. Send one kind of media to that channel. |
| `MEDIA_REQUIRED` | A scheduled post with no media, to a channel that needs some. A draft is allowed to be incomplete. |
| `MEDIA_TOO_LARGE` | A video over the channel's file cap. Shrink it, or drop that channel. |
| `MEDIA_TOO_LONG` | A video over the channel's duration cap. Trim it, or drop that channel. |
| `MEDIA_TOO_SHORT` | A video under the channel's shortest length. Use a longer video. |
| `BOARD_REQUIRED` | A Pinterest post scheduled without a board. Pass `platformSettings.pinterest.boardId`. |

## Warnings are not errors

Things that happened without failing the call ride on a successful write as `warnings`. There are two.

| Warning | Meaning |
| --- | --- |
| `APPROVAL_REQUIRED` | The post is queued as pending and publishes after a member approves it in the app. |
| `SCHEDULED_TIME_COERCED` | A `scheduledAt` up to five minutes in the past was moved to now. |

## Which errors to retry

| Answer | Retry? |
| --- | --- |
| `429` | Yes, after `retryAfterSeconds`. |
| `IDEMPOTENCY_IN_FLIGHT` | Yes, after a short wait, with the same key. You then get the first request's result. |
| `MEDIA_NOT_READY` | Yes, once the PUT has finished. |
| `MEDIA_STORAGE_UNAVAILABLE` and other `5xx` | Yes, later. Nothing was written. |
| `APPROVAL_REQUIRED` on publish | No. A member approves the post in the app. |
| `CONNECTION_EXPIRED` | No. A person reconnects the account in the app first. |
| `SCOPE_MISSING`, `401`, `402` | No. Fix the key or the plan first. |
| Any other `4xx` | No. Change the request. |

## One account failing is not an error

A post to three accounts that lands on two answers with success. The account that failed is in `targets` with `status` set to `failed` and the platform's own error text. Read `targets`, not only the HTTP status, and subscribe to the `post.failed` webhook to be told. What the common platform messages mean is in [why a post failed](https://overads.io/help/failed-post).

## The same codes over MCP

- A tool error comes back as a tool result marked as an error, with the same `code` strings as the tables above.
- A tool that is outside the connection's permissions, is switched off on the server, or does not exist all answer the same way: Unknown tool.
- A session idle for 30 minutes answers `404` with a message saying to send `initialize` again.

## Common questions

### Will overads error codes change?

No. A code is stable for the life of v1 of the API. Messages can be reworded, so branch on the code.

### Why did I get a 400 with no error code?

The request failed schema validation: an unknown field, a wrong type or a missing required field. The body lists the messages.

### What does SCOPE_MISSING mean?

The key does not hold the permission the route needs. Create a key with that scope in Settings > API.

### What does a 402 mean?

The workspace is paused or its plan does not include API access. Choose a plan in Settings > Billing and the same call works again.

### Where is the machine-readable list?

The OpenAPI document at https://api.overads.io/public/v1/openapi.json describes every route, and needs no key.

## Related

- [What are the overads API rate limits?](https://overads.io/help/api-rate-limits)
- [What is an idempotency key in overads?](https://overads.io/help/idempotency-key)
- [What happens when a post fails to publish?](https://overads.io/help/failed-post)
- [Errors (developer docs)](https://overads.io/docs/errors)
- [Authentication (developer docs)](https://overads.io/docs/authentication)

Updated 2026-11-27. Source: https://overads.io/help/api-error-codes
