Docs
Open the app

Request Lifecycle

Here is what happens to a single request, from the moment you send it to the moment you get JSON back. This is the same path for every endpoint.

How a request moves through the API: key check (401), per-account throttle (429 RATE_LIMITED), scope (403 FORBIDDEN), plan and balance (403 UNPAID_PLAN, or a free-plan sample), data read, billing (402, or 429 TRIAL_DAILY_LIMIT), then a 200 response

Step by step

  1. You send a request. A standard HTTPS call to a path under https://api.naut.so/v1, with your key in the Authorization header.
  2. Your key is verified. The server hashes the bearer token and looks up the account. A missing, malformed or revoked key stops here with 401.
  3. Your account is throttled. The call counts against your account's per-minute allowance (all keys share it). Normal traffic flows straight through. Past it: 429.
  4. Scope is checked. The key's scopes decide whether it may read what the endpoint returns. A key without the right scope gets a 403 instead of data.
  5. Plan and balance are checked. On the free plan you get marked sample data at 0 credits, whatever your balance. A private reveal on a trial or other unpaid plan stops with 403 UNPAID_PLAN.
  6. Data is fetched and shaped. The API reads from the same database as the app, then serializes the result into the people-first shape, removing internal fields. The API and the app share 1 field list per record type, so a field the website shows is a field the API returns.
  7. The call is charged. 5 credits a data call, 10 a first private reveal, 0 for /v1/me. The charge comes after the read, so a read that fails costs nothing. On a paid plan with too few credits: 402, nothing charged. On a trial past today's share: 429 TRIAL_DAILY_LIMIT.
  8. You get JSON. A 200 with the data, or a clear status code and an error object (code, message, docs) if something went wrong. Every response carries a NAUT-API-Version header.

What this means for you

  • Send the key on every call. There is no session to keep alive. Each request stands on its own.
  • Handle 429 by its code. RATE_LIMITED is a throttle: the per-minute allowance clears within a minute and the reveal ceiling within the hour, and the message says which. Back off and retry. TRIAL_DAILY_LIMIT carries nextAt: wait until then, or start the plan to open all its credits. See Access & Rate Limits.
  • Read the status code first. It tells you whether to read data or an error. See Errors & Status Codes.
  • Watch your balance. /v1/me reports your live credit balance, and on a paid plan a call with too few credits returns 402. See Pricing & Quotas.