Rate limits and errors

Every error has an HTTP status, a stable code and a message you can show to people.

The error format#

json
{
  "error": {
    "code": "forbidden",
    "message": "This key can't do that. It needs the ai scope."
  }
}

Match on code, which never changes. The message is written for people and may follow their language.

StatusCodeMeaning
400invalidThe request is missing something or has a wrong value.
401unauthorizedNo valid key or token: missing, revoked or expired.
402quota_exceededThe person’s plan has no transcription minutes, imports or AI requests left this month.
403forbiddenNot allowed: a missing scope, a role that can’t do it, or a workspace policy (with policy).
403not_memberX-Workspace-Id names a workspace other than the key’s or token’s.
404not_foundIt doesn’t exist, or this credential can’t see it.
409conflictIt changed since you read it, or it already exists. Recordings come back with the current version.
413too_largeThe upload or body is too big.
429rate_limitedToo many requests. Wait for Retry-After.
502upstreamA provider Nullnote relies on didn’t answer. Try again.
503not_configuredThe feature isn’t set up on this server yet.

Policy errors#

When an admin has turned something off, the error says which policy:

json
{ "error": { "code": "forbidden", "policy": "integrations.api",
             "message": "Your admin turned off the API for this workspace." } }

Rate limits#

  • Each key, and each OAuth grant, can make 120 requests a minute.
  • Past that, the API answers 429 rate_limited with a Retry-After header, in seconds.
  • AI requests also count against the person’s plan each month, as they do in the apps. Running out gives 402 quota_exceeded.

Retrying well#

  • Retry 429, 502 and network errors with exponential backoff and a little jitter. Don’t retry other 4xx errors unchanged.
  • Creating recordings, folders, bookmarks and photos uses IDs you choose, so a retried create returns the same record instead of a duplicate.
  • On 409 conflict for a recording edit, take the recording from the response, apply your change to it, and send it again with its version as baseVersion.