Core concepts
Responses
The shape every answer shares: the meta block with cost and balance, list fields for paging, request ids for support, and how times and credits are written.
This edition is written for AI agents: complete, explicit and ready to paste. Give it to your agent, or point the agent at its address and it reads the page itself.
# Responses
> The shape every answer shares: the meta block with cost and balance, list fields for paging, request ids for support, and how times and credits are written.
- Human-readable page: https://dashboard.sproutsdata.ai/docs/guides/responses
- This document: https://dashboard.sproutsdata.ai/docs/agents/guides/responses
- Index of every agent document: https://dashboard.sproutsdata.ai/llms.txt
- API base URL: https://api.sproutsdata.ai
## Summary
Common fields of successful answers: the `meta` block, list paging fields, request ids, and value formats. Errors use a separate shape: `https://dashboard.sproutsdata.ai/docs/agents/guides/errors`.
## meta
Present on data answers: search, similar, entity lookups, coverage, filter values, sorts, relationships, org chart, agent runs, enrichment.
| Field | Type | Meaning |
| ----------------- | ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `request_id` | string | This request's id; equals the `X-Request-Id` response header. |
| `as_of` | string | When the answer was made; ISO 8601, UTC. |
| `credential` | `api_key` or `session` | `api_key` for an API key or an MCP OAuth token; `session` for the dashboard. |
| `credits_charged` | number or null | Cost of this request in credits. `0` when nothing was charged (empty answer, or a same-day retry with the same `Idempotency-Key`). `null` when the operation is not metered. |
| `credits_balance` | number or null | Credits available after this request, excluding credits held for running agent runs. `null` when not metered or not known; `GET /v1/credits` always has it. |
| `environment` | string | Deprecated; always `live`. Do not rely on it. |
## List answers
- Items array: `results` on most routes; `items` on `GET /v1/lists/{list_id}/items` and the Tools API lists (`GET /tools/v1/runs` and the catalog lists).
- `next_cursor`: string, or `null` on the last page. Always present on paged lists.
- `has_more`: when present, `true` exactly when `next_cursor` is set.
- `total`: on search-style routes; `total_is_estimate: true` marks an estimate on search.
- Search-style routes (`POST /v1/search`, `/v1/similar`, `/v1/relationships`, `/v1/relationships/reach`, `/v1/org-chart/people`): `results`, `total`, `has_more`, `next_cursor`, `meta`. `POST /v1/relationships/ask` answers with `route` and the envelope of the form it chose (for example `relationships` or `reach`), which carries these fields.
- `GET /v1/agents/runs`, `GET /v1/enrichment/jobs`, `GET /v1/enrichment/jobs/{job_id}/results`: `results`, `has_more`, `next_cursor`, `meta`. `GET /v1/agents/runs/{run_id}/results` adds `total`.
- `GET /v1/usage/history`, `GET /v1/feedback`, `GET /v1/credits/transactions`: `results`, `next_cursor`.
- Entity lookups (`POST /v1/entities/*`): search envelope, one `results` entry per value sent (`id` = value as sent, `found`, `matches[]`); `has_more` always `false`.
- Rule: page until `next_cursor` is `null`. See `https://dashboard.sproutsdata.ai/docs/agents/guides/pagination`.
## Request ids
- Every response (success or error) has the header `X-Request-Id`.
- The same id appears in `meta.request_id` (data answers) and `request_id` (error bodies).
- A client may send `X-Request-Id`: 1 to 128 characters from `[A-Za-z0-9._:-]`. It is used and echoed back. Any other value is replaced with a generated id (32 hex characters).
- Quote the request id when contacting Sprouts Data support.
## Formats
- Timestamps: ISO 8601 strings, UTC.
- Credits: decimal numbers (for example `0.595`). Never parse as integers.
- `Retry-After` and rate-limit reset headers: whole seconds.
- New fields may appear in any answer, and record fields grow with the index. Ignore unknown fields.
## Other content types
- `text/csv`: exports made at once (`POST /v1/search/export`, `POST /v1/lists/{list_id}/export`); headers `X-Credits-Charged`, `X-Export-Field-Tier`, `X-Export-Row-Count`, `X-Export-Skipped`.
- `text/event-stream`: `GET /v1/agents/runs/{run_id}/events`.
- `application/problem+json`: every error.
## See also
- `https://dashboard.sproutsdata.ai/docs/agents/guides/pagination`
- `https://dashboard.sproutsdata.ai/docs/agents/guides/errors`
- `https://dashboard.sproutsdata.ai/docs/agents/guides/credits/balance-and-spend`