GUIDE

Errors

Errors use HTTP status codes and a JSON body with a stable code to branch on and a message written for people. Messages can change; codes won't. Internal details are never included.

400 · JSON
{
  "error": {
    "code": "invalid",
    "message": "title is required."
  }
}

Every code

StatusCodeWhen
400invalidA field is missing or has the wrong value. The message names the field.
400invalid_jsonA POST or PATCH body that isn't a JSON object.
401unauthorizedNo token, or it's invalid, expired, revoked, or its owner left the organisation.
402limitThe organisation's plan has no room left (file storage, for example).
403forbiddenThe token lacks the scope, or the person can't do this (a private chat they're not in, a doc they can only read).
403ip_not_allowedThe token is limited to some addresses, and this isn't one.
403two_factor_requiredThe organisation requires login verification and the token's owner hasn't set it up.
404not_foundNo such endpoint, or no such item in the token's organisation (ids are UUIDs).
409wrong_triggerStarting an automation that doesn't start on “A webhook is called”.
409disabledStarting an automation that's turned off.
413too_largeA file over 10 MB, or an automation body over 64 KB.
429rate_limitedMore than 120 requests a minute with one token.
500server_errorSomething went wrong on our side. Safe to retry.

Retrying

  • 429: wait for the seconds in Retry-After, then retry.
  • 500: retry after a short pause, backing off if it repeats. Requests that create things (POST) could have gone through, so check before retrying them.
  • Anything else in the 400s: change the request; retrying the same one gives the same answer.