Get started

Errors

Failed requests answer with a status code and a JSON error object.

Branch on code; message is written for people and may change. Validation errors also list every problem in issues.

{
  "error": {
    "code": "invalid_request",
    "message": "scheduledAt must be in the future.",
    "issues": [{ "path": "scheduledAt", "message": "scheduledAt must be in the future." }]
  }
}

Error codes

StatusCodeMeaning
400invalid_requestA field is missing or invalid; issues lists each problem.
400invalid_jsonThe body isn't valid JSON.
400account_requiredAn old key without an account was used while several accounts are connected, and the request didn't name one.
400media_not_foundA media id doesn't belong to an uploaded file.
401unauthorizedThe API key is missing, wrong or revoked.
403forbiddenA read-only key tried to change something.
403account_forbiddenThe request named another account than the key's.
404not_foundNo such post, file or endpoint, or the post belongs to another account.
404account_not_foundNo connected account has that id or username.
405method_not_allowedThe endpoint exists but not with this method.
409conflictThe post or file can't change in its current state.
409account_not_connectedThe key's account isn't connected, or Threads rejected its token.
415unsupported_media_typeUpload media got neither multipart nor JSON.
422publish_failedThreads rejected the post while publishing.
429rate_limitedThreads is limiting this account. Wait a few minutes.
502threads_errorThreads returned an error.
500internal_errorSomething broke in 1Threads. Check the Worker logs.