/📚 Guides/Error Handling

Error Handling

All errors follow a consistent JSON shape so you can handle them programmatically.

Error shape

{
  "error": {
    "code": "invalid_request",
    "message": "scheduled_at must be in the future",
    "param": "scheduled_at",
    "request_id": "req_9x8y7z"
  }
}

Status codes

CodeMeaning
400Invalid request — check the param field.
401Missing or invalid API key.
403API key lacks the required scope.
404Resource not found in this workspace.
409Conflict — e.g. deleting a published post.
429Rate limit exceeded.
5xxTransient — retry with exponential backoff.

Always log the request_id — it's the fastest way for support to trace a failure.

Next
Guides → Scheduling Logic
Continue