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.
Step by step
- You send a request. A standard HTTPS call to a path under
https://api.naut.so/v1, with your key in theAuthorizationheader. - 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. - 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. - Scope is checked. The key's scopes decide whether it may read what the endpoint returns. A key without the right scope gets a
403instead of data. - 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. - 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.
- 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. - You get JSON. A
200with the data, or a clear status code and anerrorobject (code,message,docs) if something went wrong. Every response carries aNAUT-API-Versionheader.
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
429by its code.RATE_LIMITEDis a throttle: the per-minute allowance clears within a minute and the reveal ceiling within the hour, and themessagesays which. Back off and retry.TRIAL_DAILY_LIMITcarriesnextAt: 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/mereports your live credit balance, and on a paid plan a call with too few credits returns402. See Pricing & Quotas.