Errors, paging and limits
One error shape, one rate limit, one way to page.
Error shape
Every error has the same body: a stable code to branch on and a sentence you can show.
{ "error": { "code": "not_found", "message": "Project not found." } }
| Status | code | When |
|---|---|---|
| 400 | invalid_request | A field is missing or wrong; the message names it. |
| 401 | unauthorized | No key, or a revoked one. |
| 402 | plan_required | The studio is on Free and the request needs more than Free allows. Everything else keeps working. |
| 403 | forbidden | Not something a key may do, such as changing an owner. |
| 404 | not_found | It doesn't exist, or it belongs to another studio. |
| 409 | conflict | It can't be done now: an archived project, an older version. |
| 413 | too_large | The file is too big for one request; upload it in parts. |
| 415 | unsupported_file | Not a format TrulyFinal reviews. |
| 429 | rate_limited | Too many requests with one key. Wait for Retry-After. |
Rate limit
120 requests a minute per key. Over that, the API answers 429 with a Retry-After header in seconds. Webhooks are the cheaper way to hear about changes than asking every few seconds.
Paging
Lists come newest first, in pages:
{ "data": [ … ], "nextCursor": "c_…" }
- Pass
?cursor=with the lastnextCursorfor the next page. - Pass
?limit=(up to 100, default 50) to change the page size. nextCursorisnullon the last page.
Your own ids
Projects and files take an externalId: your order number, CRM record or task id. Find a file by it with GET /v1/files?externalId=…, and every webhook about that file carries it back.