Prepaid AIDocsv1
StatusSign in

API reference

Errors and rate limits

Every status code the API answers with, the exact error bodies, and the limits.

1 min read

Errors are JSON with a single error string. Successful responses are 200.

An error body
{  "error": "key revoked"}

Status codes

StatuserrorWhat to do
401missing bearer tokenSend Authorization: Bearer pk_live_….
401unknown keyThe key does not exist. Check you copied all of it.
401invalid keyThe key is malformed or does not match.
401key revokedCreate a new key.
404A sentence naming the idOnly from Retrieve a call: no such call in this workspace.
429rate limit exceeded for this API keyWait for Retry-After seconds.
429too many failed authentication attemptsStop retrying with a bad key; wait for Retry-After.
503unavailableBriefly unable to reach the database. Retry with backoff.

Rate limits

LimitCounted perWindow
600 requestsAPI keyRolling hour
30 failed authenticationsSource IP addressRolling hour

Every 429 carries a Retry-After header in seconds. Each key has its own budget, so one busy integration cannot use up another’s.

Conventions

  • Money is integer credit-hundredths: 100 = $1.00. Never a float.
  • Timestamps are ISO 8601 strings in UTC.
  • Phone numbers are E.164, without formatting.
  • A value we do not have is null: never an empty string, never a guess.
  • Query parameters that do not parse fall back to their default rather than erroring.