Errors

Every error returns the same envelope so you can handle them with one code path.

Envelope

Minimal shape (no extra context to attach):

{
  "status": 401,
  "code": "INVALID_KEY",
  "message": "Invalid API key"
}

Some codes carry a details object with structured fields you can program against. Example for INSUFFICIENT_SCOPE:

{
  "status": 403,
  "code": "INSUFFICIENT_SCOPE",
  "message": "This endpoint requires the 'posts:write' scope, which this token was not granted. Granted scopes: [posts:read, connections:read]. Mint a new key with the missing scope.",
  "details": {
    "required_scope": "posts:write",
    "granted_scopes": ["posts:read", "connections:read"],
    "token_kind": "workspace"
  }
}

Quota responses carry a details.upgrade_url so your integration can deep-link the end user to billing instead of asking them to navigate. Example for UPLOAD_QUOTA_EXCEEDED (the per-user post cap on Free):

{
  "status": 429,
  "code": "UPLOAD_QUOTA_EXCEEDED",
  "message": "Monthly upload quota exceeded for this account. Upgrade to Creator or Team for unlimited posts.",
  "details": {
    "quota": "uploads",
    "used": 5,
    "limit": 5,
    "remaining": 0,
    "upgrade_url": "https://www.shortsync.app/settings?section=billing"
  }
}

Same shape for QUOTA_EXCEEDED (the per-org monthly API request cap), plus a details.resets_at ISO 8601 timestamp telling you when the counter resets:

{
  "status": 429,
  "code": "QUOTA_EXCEEDED",
  "message": "Monthly API request quota exceeded for this organization. Upgrade to Creator or Team for a higher request cap.",
  "details": {
    "quota": "requests",
    "used": 1000,
    "limit": 1000,
    "resets_at": "2026-07-01T00:00:00.000Z",
    "upgrade_url": "https://www.shortsync.app/settings?section=billing"
  }
}
  • status mirrors the HTTP status code, in the body for convenience.
  • code is a stable machine-readable identifier (UPPER_SNAKE_CASE). Switch on this, not on message.
  • message is human-readable and may change between versions.
  • details is optional. When absent the field is omitted entirely (not null). Shape depends on code.
  • No stack traces or request context are ever returned in any environment. Those go to server logs and Sentry.

Codes you'll see

HTTPcodeWhen
400VALIDATION_ERRORRequest body or query params didn't pass shape validation.
401MISSING_AUTH_HEADERNo `Authorization` header on the request.
401INVALID_KEYToken wasn't found in our table, or its prefix is unrecognized.
401KEY_REVOKEDToken existed but was revoked. Mint a new one.
401KEY_EXPIREDToken was rotated and the grace window has passed.
403INSUFFICIENT_SCOPEToken is valid but lacks the scope this endpoint requires.
404POST_NOT_FOUND / UPLOAD_NOT_FOUND / KEY_NOT_FOUNDResource doesn't exist for this workspace.
409UPLOAD_NOT_RECEIVEDPOST /posts referenced an upload whose bytes haven't been PUT to the presigned URL yet.
409POST_NOT_EDITABLE / POST_NOT_CANCELLABLEPost is in a state that doesn't allow the operation (e.g. already published).
413FILE_TOO_LARGE / STORAGE_QUOTA_EXCEEDEDGET /uploads/:id finalize: upload exceeds per-kind size cap (2 GB video, 20 MB image) or the workspace's storage quota. The S3 object is deleted before this response.
415UNSUPPORTED_FILE_TYPEGET /uploads/:id finalize: the stored Content-Type isn't in the allow-list (mp4, mov, webm, avi, mkv, jpg, png, webp, heic, gif). The S3 object is deleted before this response.
429RATE_LIMIT_EXCEEDEDPer-key rate limit (60 req/min). Response carries `Retry-After` and `X-RateLimit-*` headers.
429QUOTA_EXCEEDEDMonthly per-org request quota for the plan tier is used up. `details.upgrade_url` deep-links the user to billing.
429UPLOAD_QUOTA_EXCEEDEDFree-tier per-user post cap (5/month) reached on POST /posts. `details.upgrade_url` deep-links the user to billing.
429DAILY_LIMIT_REACHEDThe workspace's daily posting limit for that platform is used up (see /docs/platforms/limits). Resets at midnight UTC. Scheduled posts can be moved to the next free slot instead.
400X_POST_TOO_LARGEX only: the post needs more units than a whole day has (20), such as a link in both the post and its first comment. Remove a link, or connect your own X app.
400LIKE_UNSUPPORTEDPOST /inbox/conversations/:id/like on a YouTube thread. The Data API v3 has no comment-like endpoint. Also raised for DM threads (only comment threads can be liked).
403PLATFORM_SCOPE_MISSINGThe connected platform account is missing a scope this operation needs. `details.platform` + `details.scope` identify which. Example: liking an Instagram comment without instagram_manage_engagement (only granted via the Facebook Login for Business upgrade). `details.upgrade_url`, when present, is the link the user opens to grant it. Don't retry until they have.
500INTERNAL_ERRORSomething blew up on our side. We log it. Safe to retry.

Partial failure on POST /posts

Multi-target fanout has special semantics. Request-shape errors (missing required fields, invalid upload_id, malformed targets) return 400 and create nothing.

Per-target operational failures (a connection's token expired, a platform rejected the post, etc.) do not fail the whole call. You'll get 201 with one post object per target. The failed ones carry status: "failed" and an error object on the post itself.

Always iterate data and check each post's status instead of relying solely on the HTTP code.

Retries

  • Safe to retry: 5xx errors, network timeouts.
  • Don't retry: 4xx errors (the request is wrong; retrying won't help). Fix the request first.
  • Retry after backoff: 429 RATE_LIMIT_EXCEEDED. The response carries Retry-After (seconds) plus X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers. Default cap is 60 requests/minute per key.
  • Don't retry until next month: 429 QUOTA_EXCEEDED. The organization's plan-tier monthly quota is exhausted. Upgrade the plan or wait for the next UTC month.
  • Don't retry until midnight UTC: 429 DAILY_LIMIT_REACHED. The platform's daily posting limit for the workspace is used up. Limits per platform are on Daily posting limits.