> For the complete documentation index, see [llms.txt](https://docs.webz.io/llms.txt). Any docs page is also available as markdown at `https://docs.webz.io/markdown/<environment>/<slug>`.

# Response Format

A response is a JSON object: a `records` array plus paging, account, and status fields.

```json
{
  "records": [ ... ],
  "totalResults": 105,
  "moreResultsAvailable": 5,
  "next": "/nhi?token=YOUR_TOKEN&domain=example.com&next=CURSOR",
  "requestsLeft": 989,
  "domainStatus": "active"
}
```

## Root fields

| Field | Type | Description |
| --- | --- | --- |
| `records` | array | Matching records - see [Record Data Fields](https://docs.webz.io/docs/webz/nhi-data-fields). Up to 100 per page. |
| `totalResults` | integer | Total records matching the query. |
| `moreResultsAvailable` | integer | Records still available after this page. |
| `next` | string | Relative URL of the next page, or `null` when there is none. Append it to `https://api.webz.io` - see [Pagination](https://docs.webz.io/docs/webz/nhi-pagination). |
| `requestsLeft` | integer | Contract plans: your remaining Non-Human Identities (NHI) API credit balance. Omitted on pay as you go. |
| `cost` | number | Pay as you go only: what this request cost, in USD. |
| `balance` | number | Pay as you go only: your balance after the charge, in USD. |
| `domainStatus` | string | `pending` while the initial scan of a newly queried domain is running; `active` once it has completed. See below. |

Pay-as-you-go responses replace `requestsLeft` with `cost` and `balance`, and their records are partially masked - see [Errors, Rate Limits & Credits](https://docs.webz.io/docs/webz/nhi-errors-limits).

## `domainStatus`

The first query for a domain starts monitoring it. While `pending`, results may be empty or partial - the request is still valid and still costs a credit. Once `active`, the initial scan is done; records continue to be added as new leaks are discovered, so re-query periodically.

