Errors and limits
Status codes, rate limits and pagination in the Platform API.
Errors#
Failures use standard status codes and put a readable sentence in error.
{"success":false,"error":"This key doesn't have the 'apps:write' permission."}The message is meant for a developer reading a log, not for an end user. Don't show it in your interface as it is.
| Code | Meaning | What happened |
|---|---|---|
400 | Bad Request | The body or a parameter is malformed. The message says which field. |
401 | Unauthorized | The key is missing, invalid, revoked or expired. |
403 | Forbidden | The key is valid but lacks the scope, or is limited to another workspace. |
404 | Not Found | No record with that id under this account. |
409 | Conflict | The request is valid but the current state refuses it. Deleting a default workspace, for example. |
429 | Too Many Requests | Rate limit reached. Wait for the next minute. |
500 | Server Error | Something failed on our side. Safe to retry. |
Rate limits#
Each key has a per-minute limit, 600 by default. Going over it returns 429. The window is rolling, so waiting out the current minute is enough.
If you're syncing in bulk, prefer larger pages over more requests. One call at limit=200 costs a quarter of four calls at 50.
GET /me returns the limit of the key you're holding as rate_limit.
Pagination#
List endpoints take page and limit and return total alongside the items.
- Pages start at 1.
limitdefaults to 50 and tops out at 200.- A larger number is clamped rather than rejected, so check
limitin the response if it matters to you.
{"success":true,"data":{"items":[],"total":128,"page":1,"limit":50}}