Docs menu

Get started

Errors

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
StatusMeaningRetry?
400The request is wrong: bad JSON, a missing or invalid field, a post that breaks a platform rule.No. Fix the request.
401No credential, or one that is not valid.No. Fix the key or token.
402A plan limit (API keys, webhook endpoints), or X's monthly write quota of the app is used up.Not until the limit changes.
403Allowed for nobody with this key, plan or account state, including accounts that must reconnect.No.
404The thing does not exist or this key cannot see it. Unknown /v1 paths answer http.404.No.
409A conflict with the current state: a post already publishing, an account linked elsewhere, a duplicate.After the state changes.
410An invite link that was used, revoked or expired.No.
412The server or workspace is missing app credentials for that platform.After setup.
413The upload would go over the plan's media storage.After freeing space.
422Valid request, but the platform or account cannot do it (refused media, no Pages, unsupported platform).Usually no.
429Too fast: request budget, posting cap, plan allowance or a platform limit. Read Retry-After.Yes, after the wait (not for used-up allowances).
500A bug on our side: system.internal.Yes, a few times.
501The platform cannot do this operation at all: resource.not_supported.No.
503A platform or this server is briefly unavailable.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
CodeStatusWhen
auth.missing_header401No Authorization header, or one that does not start with Bearer.
auth.empty_token401"Bearer " with no token after it.
auth.invalid_token401Not an API key, OAuth token or session token, or an expired token.
auth.invalid_key401An sh_live_ key that is unknown or revoked.
auth.user_not_found401The OAuth token's user left the workspace.
auth.insufficient_scope403The key lacks a scope (meta.required_scope), or a brand-limited key called an all-brand operation.
auth.session_required403Dashboard-only endpoint.
auth.cross_origin403A cookie request that changes data came from another site.

Validation

Request validation codes
CodeStatusWhen
validation.body_invalid400The body is not a JSON object.
validation.body_empty400Nothing to change was sent.
validation.field_required400A required field is missing (meta.field).
validation.field_invalid400A field has a wrong value or type, including a cursor or URL this API did not accept (meta.field).
validation.field_not_editable400The field cannot change on a published post (meta.field).
validation.<name>_required / validation.<name>_invalid400The same, named after one field, for example validation.status_invalid or validation.sort_invalid.
validation.platform_invalid400Use another platform name (for example linkedin instead of linkedin_page).
validation.redirect_uri_invalid_format400redirect_uri is not an http(s) URL, or has a user, password or #fragment.
validation.redirect_uri_not_whitelisted400redirect_uri is not in the workspace's allowed redirect URIs.
validation.customer_state_too_long400state is longer than 512 characters.
validation.connection_type_invalid400metadata.connection_type is not one the platform takes.
validation.limit_reached422A per-workspace list is full (for example 20 redirect URIs).

Not found, conflicts and unsupported

Resource codes
CodeStatusWhen
resource.not_found404meta.resource and meta.id name what is missing.
account.not_found, brand.not_found, conversation.not_found, media.not_found, queue.not_found404That object does not exist or this key cannot see it.
http.404404No endpoint at this method and path under /v1.
resource.conflict409Already exists, or the same text went to one of the accounts in the last 24 hours (send skip_duplicate_check: true).
ambiguous_post_id409A platform post id matches several posts: use the SocialWire id (meta.post_ids).
post.state_invalid409The post's status does not allow this (meta.state).
invite.unavailable410The invite link was used, revoked or expired.
resource.not_supported501The platform has no API for this operation.

Accounts

Account codes
CodeStatusWhen
account.reconnection_required403The account's platform token stopped working. Every call that needs it answers this until it is reconnected (meta.id is the account).
account.already_linked409The brand already holds an account on this platform, or lock_accounts_to_brand stops the account moving between brands.
account.none_found422The sign-in returned no account to connect.
account.platform_unsupported422The account's platform cannot do this, for example an App Store Connect target on a post (meta.account_id).
account.permission_missing403The account's own permissions exclude this operation (meta.permission).

Connection failures that come back on the redirect have their own list in Connect accounts.

Billing, plan allowances and app credentials

Billing and credential codes
CodeStatusWhen
billing.brands_limit403A new brand is needed (for example a connect without brand_id) and the plan has no room.
billing.platform_not_available403This server does not support that platform.
billing.storage_quota413The upload would exceed the plan's media storage.
billing.export_limit, billing.export_cooldown, billing.export_concurrent429Export allowance used up, too soon after the last export, or one already running.
plan.limit_reached402The plan's number of API keys or webhook endpoints is reached.
validation.post_limit_exhausted429The month's post credits are used up (meta.limit, meta.used).
validation.interaction_limit_exhausted429The month's reply and DM credits are used up.
automation.limit_reached, queue.limit_reached409The plan's number of automations or queues is reached.
byok.credentials_missing412Neither the server nor the workspace has developer app keys for the platform.
byok.credentials_invalid401The platform refused the app keys.
byok.app_access_denied412The 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
CodeStatusWhen
publishing.validation_failed400One or more platform rules are broken (meta.issues).
publishing.no_targets400A scheduled post with no targets.
publishing.duplicate_target400The same account (and page or board) twice in targets.
post.no_retryable_deliveries400Retry was asked for a post with no failed targets.
publishing.velocity_limit429A target is at its hourly or daily posting cap (meta.account_id, window, limit, retry_after_seconds).
publishing.media.missing_source, missing_type, invalid_source_type, unsupported_source, untyped_url422A media item is incomplete or its type cannot be worked out.
publishing.media.url_unreachable422A media URL answered 401, 404 or 410 (meta.field). Make it public or upload the file.
validation.media_type400The platform does not take this media (for example a document outside LinkedIn).
validation.privacy_level_required400TikTok: privacy_level missing on a direct post.
validation.invalid_privacy_level400TikTok: privacy_level is not one of the creator's allowed levels.
validation.branded_content_private400TikTok: branded content cannot be SELF_ONLY.
validation.post_mode400TikTok: post_mode is not direct or inbox, or a photo post was sent to drafts.
validation.posting_limit400TikTok says the creator has reached today's posting limit.
validation.field_required (field title)400YouTube: the video has no title.
validation.board_id_required400Pinterest: the target has no board_id.
validation.duplicate_board_id400Pinterest: board_id and page_id were both sent.
validation.use_board_id400Pinterest: the board was put in platform_data instead of board_id.
validation.use_page_id400board_id on a target that is not Pinterest.
account.platform_unsupported422An 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
CodeMeaning
publishing.delivery.timeoutSending took more than 15 minutes. Check the platform before you retry: the post may be live.
system.internalInterrupted while sending, or no final answer from the platform after 1 hour.
validation.publishThe platform's rules refused the content before anything was sent.
platform.<name>.authThe account must be reconnected.
platform.<name>.rate_limitThe platform kept answering 429 after the automatic retries.
platform.<name>.usage_cappedX: the app's monthly write quota is used up.
platform.<name>.<reason>A reason the platform gave, for example platform.linkedin.processing_failed or platform.zalo.article_processing.
platform.<name>.publish_failedAny other platform refusal.

Inbox

Inbox codes
CodeStatusWhen
validation.youtube_daily_reply_limit429The YouTube channel posted its 5 replies and comments today. Resets at midnight Pacific Time.
inbox.sync_rate_limited429A sync of this account ran too recently (meta.retry_after_seconds).
messaging.human_agent_window_closed400Facebook HUMAN_AGENT tag: the person's last message is more than 7 days old.
messaging.tag_not_enabled, messaging.tag_not_supported403 / 422Message tags are off on this server, or not available on this platform.
telegram.cannot_message403The person has not started a chat with the bot, or blocked it.
platform.zalo.not_deliverable422The person has not interacted with the Official Account in the last 7 days.
platform.<name>.private_reply_ineligible400The comment cannot get a private reply (too old, or one was already sent).
platform.youtube.comments_disabled422Comments are off on the video.
platform.facebook.comment_not_hideable422Facebook does not allow hiding this comment.
platform.bluesky.not_own_record, not_thread_owner, hidden_replies_full403 / 422Bluesky: delete only your own replies; hide only in your threads; the hide list is full.
platform.bluesky.dm_scope_missing403The app password was created without DM access.
platform.<name>.insights_scope_missing403The 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
CodeStatusWhen
platform.<name>.rate_limit429The platform is limiting you. Retry-After and meta.retry_after_seconds give the wait.
platform.<name>.usage_capped402X: the app's monthly quota is spent.
platform.<name>.auth401The platform refused the credentials of a credential-based account (Bluesky, Telegram, App Store Connect…).
platform.<name>.unavailable503The platform is briefly down.
platform.<name>.<reason>422A refusal with the platform's own reason, for example platform.youtube.no_channels.
platform.<name>.api_error503 or 422503 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
CodeStatusWhen
ratelimit.exceeded429The workspace's request budget for this minute is spent (meta.limit, meta.retry_after_seconds).

System

System codes
CodeStatusWhen
system.internal500Something broke on our side. Retry; if it persists, send us the request_id.
server.not_configured503A 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.