Developer docs

Errors, paging and limits

One error shape, one rate limit, one way to page.

Updated

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." } }
StatuscodeWhen
400invalid_requestA field is missing or wrong; the message names it.
401unauthorizedNo key, or a revoked one.
402plan_requiredThe studio is on Free and the request needs more than Free allows. Everything else keeps working.
403forbiddenNot something a key may do, such as changing an owner.
404not_foundIt doesn't exist, or it belongs to another studio.
409conflictIt can't be done now: an archived project, an older version.
413too_largeThe file is too big for one request; upload it in parts.
415unsupported_fileNot a format TrulyFinal reviews.
429rate_limitedToo 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 last nextCursor for the next page.
  • Pass ?limit= (up to 100, default 50) to change the page size.
  • nextCursor is null on 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.

Next: Webhooks

Chat