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
| Status | Code | When |
|---|---|---|
| 400 | invalid | A field is missing or has the wrong value. The message names the field. |
| 400 | invalid_json | A POST or PATCH body that isn't a JSON object. |
| 401 | unauthorized | No token, or it's invalid, expired, revoked, or its owner left the organisation. |
| 402 | limit | The organisation's plan has no room left (file storage, for example). |
| 403 | forbidden | The token lacks the scope, or the person can't do this (a private chat they're not in, a doc they can only read). |
| 403 | ip_not_allowed | The token is limited to some addresses, and this isn't one. |
| 403 | two_factor_required | The organisation requires login verification and the token's owner hasn't set it up. |
| 404 | not_found | No such endpoint, or no such item in the token's organisation (ids are UUIDs). |
| 409 | wrong_trigger | Starting an automation that doesn't start on “A webhook is called”. |
| 409 | disabled | Starting an automation that's turned off. |
| 413 | too_large | A file over 10 MB, or an automation body over 64 KB. |
| 429 | rate_limited | More than 120 requests a minute with one token. |
| 500 | server_error | Something went wrong on our side. Safe to retry. |
Retrying
429: wait for the seconds inRetry-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.