Every error has the same shape, whatever the endpoint or platform. Branch on error.code, not on the message: messages are written for people and can change.
The error shape
HTTP/1.1 429 Too Many Requests
X-Request-ID: 3f9c2a71
Retry-After: 42
{
"error": {
"code": "ratelimit.exceeded",
"message": "Too many requests: slow down and retry after the Retry-After delay",
"meta": { "limit": 300, "retry_after_seconds": 42 }
},
"request_id": "3f9c2a71"
}
code: a dotted, lowercase name. The first part is the group (auth, validation, account, billing, publishing, platform, ratelimit, system…).
message: plain English, safe to show to a person.
meta: only when there is something useful. Common keys: field (the input at fault, such as targets[0].board_id), id, resource, account_id, platform, platform_status (what the platform answered), retry_after_seconds, limit and issues (every validation problem of a post).
request_id: 8 lowercase hex characters, the same as the X-Request-ID header. If you send your own X-Request-ID (1 to 64 of a-z A-Z 0-9 _ -) it is used instead.
Errors carry the rate-limit headers too (see Rate limits).
HTTP statuses
HTTP statuses the API uses
Status
Meaning
Retry?
400
Meaning:The request is wrong: bad JSON, a missing or invalid field, a post that breaks a platform rule.
Retry?No. Fix the request.
401
Meaning:No credential, or one that is not valid.
Retry?No. Fix the key or token.
402
Meaning:A plan limit (API keys, webhook endpoints), or X's monthly write quota of the app is used up.
Retry?Not until the limit changes.
403
Meaning:Allowed for nobody with this key, plan or account state, including accounts that must reconnect.
Retry?No.
404
Meaning:The thing does not exist or this key cannot see it. Unknown /v1 paths answer http.404.
Retry?No.
409
Meaning:A conflict with the current state: a post already publishing, an account linked elsewhere, a duplicate.
Retry?After the state changes.
410
Meaning:An invite link that was used, revoked or expired.
Retry?No.
412
Meaning:The server or workspace is missing app credentials for that platform.
Retry?After setup.
413
Meaning:The upload would go over the plan's media storage.
Retry?After freeing space.
422
Meaning:Valid request, but the platform or account cannot do it (refused media, no Pages, unsupported platform).
Retry?Usually no.
429
Meaning:Too fast: request budget, posting cap, plan allowance or a platform limit. Read Retry-After.
Retry?Yes, after the wait (not for used-up allowances).
500
Meaning:A bug on our side: system.internal.
Retry?Yes, a few times.
501
Meaning:The platform cannot do this operation at all: resource.not_supported.
Retry?No.
503
Meaning:A platform or this server is briefly unavailable.
Retry?Yes, with backoff.
Platform failures never answer 502 or 504: a failure that may pass is 503, a refusal is 422.
Authentication and access
Authentication and access codes
Code
Status
When
auth.missing_header
Status:401
When:No Authorization header, or one that does not start with Bearer.
auth.empty_token
Status:401
When:"Bearer " with no token after it.
auth.invalid_token
Status:401
When:Not an API key, OAuth token or session token, or an expired token.
auth.invalid_key
Status:401
When:An sh_live_ key that is unknown or revoked.
auth.user_not_found
Status:401
When:The OAuth token's user left the workspace.
auth.insufficient_scope
Status:403
When:The key lacks a scope (meta.required_scope), or a brand-limited key called an all-brand operation.
auth.session_required
Status:403
When:Dashboard-only endpoint.
auth.cross_origin
Status:403
When:A cookie request that changes data came from another site.
Validation
Request validation codes
Code
Status
When
validation.body_invalid
Status:400
When:The body is not a JSON object.
validation.body_empty
Status:400
When:Nothing to change was sent.
validation.field_required
Status:400
When:A required field is missing (meta.field).
validation.field_invalid
Status:400
When:A field has a wrong value or type, including a cursor or URL this API did not accept (meta.field).
validation.field_not_editable
Status:400
When:The field cannot change on a published post (meta.field).
When:Export allowance used up, too soon after the last export, or one already running.
plan.limit_reached
Status:402
When:The plan's number of API keys or webhook endpoints is reached.
validation.post_limit_exhausted
Status:429
When:The month's post credits are used up (meta.limit, meta.used).
validation.interaction_limit_exhausted
Status:429
When:The month's reply and DM credits are used up.
automation.limit_reached, queue.limit_reached
Status:409
When:The plan's number of automations or queues is reached.
byok.credentials_missing
Status:412
When:Neither the server nor the workspace has developer app keys for the platform.
byok.credentials_invalid
Status:401
When:The platform refused the app keys.
byok.app_access_denied
Status:412
When:The platform refused the app access to its API (X: access level or credits).
Publishing
A post that breaks a rule answers 400 before anything is sent. The code is the first problem's own code when there is one, else publishing.validation_failed; meta.issues lists every problem with its platform, field, message and target.
Publishing request codes
Code
Status
When
publishing.validation_failed
Status:400
When:One or more platform rules are broken (meta.issues).
publishing.no_targets
Status:400
When:A scheduled post with no targets.
publishing.duplicate_target
Status:400
When:The same account (and page or board) twice in targets.
post.no_retryable_deliveries
Status:400
When:Retry was asked for a post with no failed targets.
publishing.velocity_limit
Status:429
When:A target is at its hourly or daily posting cap (meta.account_id, window, limit, retry_after_seconds).
When:A media item is incomplete or its type cannot be worked out.
publishing.media.url_unreachable
Status:422
When:A media URL answered 401, 404 or 410 (meta.field). Make it public or upload the file.
validation.media_type
Status:400
When:The platform does not take this media (for example a document outside LinkedIn).
validation.privacy_level_required
Status:400
When:TikTok: privacy_level missing on a direct post.
validation.invalid_privacy_level
Status:400
When:TikTok: privacy_level is not one of the creator's allowed levels.
validation.branded_content_private
Status:400
When:TikTok: branded content cannot be SELF_ONLY.
validation.post_mode
Status:400
When:TikTok: post_mode is not direct or inbox, or a photo post was sent to drafts.
validation.posting_limit
Status:400
When:TikTok says the creator has reached today's posting limit.
validation.field_required (field title)
Status:400
When:YouTube: the video has no title.
validation.board_id_required
Status:400
When:Pinterest: the target has no board_id.
validation.duplicate_board_id
Status:400
When:Pinterest: board_id and page_id were both sent.
validation.use_board_id
Status:400
When:Pinterest: the board was put in platform_data instead of board_id.
validation.use_page_id
Status:400
When:board_id on a target that is not Pinterest.
account.platform_unsupported
Status:422
When:An App Store Connect target.
Delivery failures
Problems that happen while sending are not errors of the request: the post is accepted, and a failed target carries error.code, message, category and caused_by.
Target failure codes
Code
Meaning
publishing.delivery.timeout
Meaning:Sending took more than 15 minutes. Check the platform before you retry: the post may be live.
system.internal
Meaning:Interrupted while sending, or no final answer from the platform after 1 hour.
validation.publish
Meaning:The platform's rules refused the content before anything was sent.
platform.<name>.auth
Meaning:The account must be reconnected.
platform.<name>.rate_limit
Meaning:The platform kept answering 429 after the automatic retries.
platform.<name>.usage_capped
Meaning:X: the app's monthly write quota is used up.
platform.<name>.<reason>
Meaning:A reason the platform gave, for example platform.linkedin.processing_failed or platform.zalo.article_processing.
platform.<name>.publish_failed
Meaning:Any other platform refusal.
Inbox
Inbox codes
Code
Status
When
validation.youtube_daily_reply_limit
Status:429
When:The YouTube channel posted its 5 replies and comments today. Resets at midnight Pacific Time.
inbox.sync_rate_limited
Status:429
When:A sync of this account ran too recently (meta.retry_after_seconds).
messaging.human_agent_window_closed
Status:400
When:Facebook HUMAN_AGENT tag: the person's last message is more than 7 days old.
When:Bluesky: delete only your own replies; hide only in your threads; the hide list is full.
platform.bluesky.dm_scope_missing
Status:403
When:The app password was created without DM access.
platform.<name>.insights_scope_missing
Status:403
When:The account must reconnect and allow the insights permission.
Platform errors
When a platform refuses or fails a call, the code starts with platform. and the API's platform name: twitter, google, app_store_connect and so on. meta.platform and meta.platform_status say who answered what.
Platform error codes
Code
Status
When
platform.<name>.rate_limit
Status:429
When:The platform is limiting you. Retry-After and meta.retry_after_seconds give the wait.
platform.<name>.usage_capped
Status:402
When:X: the app's monthly quota is spent.
platform.<name>.auth
Status:401
When:The platform refused the credentials of a credential-based account (Bluesky, Telegram, App Store Connect…).
platform.<name>.unavailable
Status:503
When:The platform is briefly down.
platform.<name>.<reason>
Status:422
When:A refusal with the platform's own reason, for example platform.youtube.no_channels.
platform.<name>.api_error
Status:503 or 422
When:503 when it may pass on retry, 422 when the platform refused.
A dead platform token is never a platform error: it answers 403 account.reconnection_required.
Rate limits
Rate limit codes
Code
Status
When
ratelimit.exceeded
Status:429
When:The workspace's request budget for this minute is spent (meta.limit, meta.retry_after_seconds).
System
System codes
Code
Status
When
system.internal
Status:500
When:Something broke on our side. Retry; if it persists, send us the request_id.
server.not_configured
Status:503
When:A self-hosted server is missing its database configuration.
Handling errors
On 429 and 503, wait for Retry-After (or back off from 1 second, doubling) and try again.
On account.reconnection_required, ask the account owner to reconnect, then retry.
On 400, show message and meta.field to whoever wrote the request; retrying the same body gives the same answer.
Never retry a publish blindly after a timeout: read the post first, it may be live.