rizamodocs

Errors

One error shape for every endpoint, with what to do next.

Every error has the same shape and an HTTP status that matches it.

{
  "error": {
    "code": "invalid_request",
    "message": "scheduledAt: must be in the future",
    "action": "edit_post"
  },
  "requestId": "req_..."
}
  • code: stable, safe to branch on.
  • message: for people. It names the fields at fault.
  • action: what to do next: reconnect_account, edit_post, retry or contact_support.
  • network: the network's own code, subcode and message, when a network refused.
  • requestId: also in the Request-Id header. Send it to support.

Codes

StatusCodeMeaning
400invalid_requestA field is missing or wrong
401unauthorizedNo key, or the key is not valid
403forbiddenThe key cannot reach this profile or action
404not_foundNo such object, or not in your team
409conflictThe request conflicts with the object's current state
429rate_limitedToo many requests: wait for Retry-After seconds
500internalOur side failed. Retry, and send the requestId if it keeps failing

Retries

Send an Idempotency-Key header on every POST. A retry with the same key gets the same answer for 24 hours, so a post is never created twice.

On this page