Browse the Help Centre
Overview

Help Centre / API and MCP

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

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

KindBodyExample
An API error{ error: { code, message, field } }POST_NOT_FOUND
A bad credential or a rate limitA flat body with statusCode and message, sometimes code401 Invalid API key, 429 with retryAfterSeconds
A request that fails schema validationA flat 400 with a list of messagesAn unknown field, a wrong type, a missing required field
A post that breaks one channel's limitsA flat 400 with code at the top levelTOO_LONG

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

Posts and connections

CodeStatusMeaningRecovery
POST_NOT_FOUND404No post with that id in this workspace.List with GET /posts.
POST_NOT_EDITABLE409The post is publishing, published, partially published or cancelled.Create a new post.
CONNECTION_NOT_FOUND404A connectionIds entry is not in this workspace.List with GET /connections.
CONNECTION_EXPIRED409The connection is not active or its token has expired.Reconnect the account in the app.
SCHEDULED_TIME_IN_PAST400scheduledAt is more than five minutes in the past.Send a future time, or omit it for a draft.
APPROVAL_REQUIRED409POST /posts/:id/publish on a post that is pending approval.A member approves it in the app. Do not retry.

Media

CodeStatusMeaningRecovery
MEDIA_REQUIRED400The post targets Instagram and carries no media.Add mediaUrls or mediaIds.
MEDIA_NOT_FOUND404A mediaIds entry is not a media asset in this workspace.Use the id returned by POST /media/upload-url.
MEDIA_NOT_READY409The asset has not been completed, or the bytes are not in storage yet.PUT the file, then POST /media/:id/complete.
MEDIA_TOO_LARGE400Over 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_REFUSED400The 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_UNAVAILABLE503Object storage is not configured or not reachable.Retry later; nothing was written.

Keys, scopes and retries

CodeStatusMeaningRecovery
SCOPE_MISSING403The key lacks the route's scope.Create a key with the scope.
IDEMPOTENCY_KEY_CONFLICT422The Idempotency-Key was used with a different request.Use a fresh key for a new request.
IDEMPOTENCY_IN_FLIGHT409A request with this key is still running.Wait, then retry with the same key to get its result.
VALIDATION_FAILED400 (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.

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.

CodeMeaning
TOO_LONGThe copy for one channel is over its character cap. Give that channel a shorter variants entry.
TOO_MANY_ITEMSMore images, videos or total items than the channel takes. Trim the media list, or split the post.
MEDIA_UNSUPPORTEDA 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_REQUIREDA scheduled post with no media, to a channel that needs some. A draft is allowed to be incomplete.
MEDIA_TOO_LARGEA video over the channel's file cap. Shrink it, or drop that channel.
MEDIA_TOO_LONGA video over the channel's duration cap. Trim it, or drop that channel.
MEDIA_TOO_SHORTA video under the channel's shortest length. Use a longer video.
BOARD_REQUIREDA 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.

WarningMeaning
APPROVAL_REQUIREDThe post is queued as pending and publishes after a member approves it in the app.
SCHEDULED_TIME_COERCEDA scheduledAt up to five minutes in the past was moved to now.

Which errors to retry

AnswerRetry?
429Yes, after retryAfterSeconds.
IDEMPOTENCY_IN_FLIGHTYes, after a short wait, with the same key. You then get the first request's result.
MEDIA_NOT_READYYes, once the PUT has finished.
MEDIA_STORAGE_UNAVAILABLE and other 5xxYes, later. Nothing was written.
APPROVAL_REQUIRED on publishNo. A member approves the post in the app.
CONNECTION_EXPIREDNo. A person reconnects the account in the app first.
SCOPE_MISSING, 401, 402No. Fix the key or the plan first.
Any other 4xxNo. 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.

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.