Response format and errors
The Zeo Radar API has a single response envelope. The endpoint changes, the envelope does not. A client that implements this page once can read every endpoint.
The shared envelope
Section titled “The shared envelope”Every response carries three top level fields, and all three are always present.
{ "data": [], "meta": { "request_id": "req_01K3Z8Q4M7VN0R2XW9", "generated_at": "2026-08-27T09:12:44Z", "count": 0, "next_cursor": null }, "error": null}| Field | Type | Description |
|---|---|---|
data | array or object | The result on a successful response, null on a failed one. Always an array on list endpoints, an object on single record endpoints |
meta.request_id | string | The id of the request. Quote this value in a support ticket |
meta.generated_at | string | The moment the response was produced, ISO 8601, UTC |
meta.count | integer | The number of records on this page, not the total |
meta.next_cursor | string or null | The cursor for the next page, null on the last page |
error | object or null | null on a successful response |
Report endpoints add two more fields inside meta:
| Field | Type | Description |
|---|---|---|
meta.filters | object | The request as the server resolved it: the date range applied, the time zone and the dimensions |
meta.coverage | object | The platforms that actually answered in the measurement, and the ones that are missing |
meta.filters is the answer to “what did I ask for”. You never have to guess which dates a
range that came from a default actually landed on.
Field naming
Section titled “Field naming”One convention holds across the whole API:
- Field names are
snake_case.share_of_voice,next_run_at,answers_count. - Ids are UUIDs. The
id,brand_id,run_id,prompt_id,topic_idandpage_idfields are UUID strings. The single exception isanswers.id: in the database it is an incrementing integer (bigint) and it is returned as a number in the API too. - Timestamps are ISO 8601, UTC, with a
Zsuffix.2026-08-27T09:12:44Z. - Dates are
YYYY-MM-DD.2026-08-24. - Ratios are decimals between 0 and 1, not percentages.
0.412means 41.2 percent. Converting to a percentage is the client’s job; this avoids rounding twice. - The currency is US dollars and the field name carries the unit:
cost_usd. - An unknown value returns
null, not an empty string and not zero. If average position cannot be computed, theavg_positionfield isnull, not0.
Pagination
Section titled “Pagination”Pagination is cursor based. There is no page number and no offset, because measurement
data keeps being appended and records shift under you while you page with an offset.
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 50 | Records per page, 200 at most |
cursor | string | none | The meta.next_cursor value from the previous response |
# first pagecurl "https://api.zeoradar.com/v1/prompts?brand_id=8f14a0c2-5b7e-4a91-9d33-6c2e10b4f7a5&limit=200" \ -H "Authorization: Bearer $ZEO_RADAR_API_KEY"
# next pagecurl "https://api.zeoradar.com/v1/prompts?brand_id=8f14a0c2-5b7e-4a91-9d33-6c2e10b4f7a5&limit=200&cursor=eyJwIjoxMjAsImkiOiI5YTQifQ" \ -H "Authorization: Bearer $ZEO_RADAR_API_KEY"Rules:
- The cursor is opaque. Do not decode or interpret it, its format can change without notice.
- There is exactly one loop condition: keep going until
meta.next_cursorisnull. Ameta.countsmaller thanlimitdoes not mean this was the last page. - A cursor is bound to the filter set it was produced with. If you change the filters between
pages you get
400 cursor_filter_mismatch. - Cursors live for 24 hours. An expired cursor returns
400 cursor_expired.
Sorting
Section titled “Sorting”| Parameter | Type | Description |
|---|---|---|
sort | string | A field name. Prefix it with - for descending order |
?sort=-created_at # newest first?sort=position # the order from setup?sort=-citations # most cited firstEvery endpoint can only be sorted by the fields listed in its own reference page. An
unsupported field returns 400 invalid_parameter. When the sort field ties, the secondary sort
is always id, which keeps pagination stable.
Error format
Section titled “Error format”{ "data": null, "meta": { "request_id": "req_01K3ZA7X0N5D2B8QF4", "generated_at": "2026-08-27T09:14:11Z" }, "error": { "code": "invalid_parameter", "message": "Unrecognised platform value: copilot", "field": "platform", "doc_url": "/docs/api/filters/" }}| Field | Type | Description |
|---|---|---|
error.code | string | A fixed, machine readable code. Base your decisions on this |
error.message | string | A human readable explanation. Do not parse the text, it can change |
error.field | string or null | The parameter or body field that caused the error |
error.doc_url | string | The documentation page that covers the subject |
Error codes
Section titled “Error codes”| HTTP | error.code | What it means | What to do |
|---|---|---|---|
| 400 | invalid_request | The body is malformed or is not JSON | Fix the request and the Content-Type header |
| 400 | invalid_parameter | The value of a parameter is invalid | Look at error.field |
| 400 | unknown_parameter | An unrecognised parameter was sent | Fix the typo |
| 400 | cursor_expired | The 24 hour life of the cursor ran out | Pull the list again from the start |
| 400 | cursor_filter_mismatch | The cursor was produced with a different filter set | Repeat the filters from the first call exactly |
| 401 | missing_api_key | There is no Authorization header | Add the header |
| 401 | invalid_api_key | The key is wrong or has been revoked | Create a new key |
| 403 | insufficient_scope | The key is read scoped and a write was attempted | Use a write scoped key |
| 403 | plan_required | The plan does not include this endpoint | Move to the Radar Pro or Custom plan |
| 403 | insufficient_credits | The remaining credit is not enough for the measurement | Add credit or reduce the number of prompts |
| 404 | not_found | The record does not exist or belongs to another organization | Check the id and the organization of the key |
| 409 | conflict | A record with the same key already exists, for example a brand slug clash | Change the value |
| 409 | run_in_progress | A new measurement was requested before the current one finished | Wait until the current measurement is done or failed |
| 422 | validation_failed | The body schema is valid but a business rule is violated, for example exceeding the plan’s prompt limit | Apply the rule described in error.message |
| 429 | rate_limited | The rate limit is used up | Wait for the Retry-After period |
| 500 | internal_error | Unexpected server error | Open a support ticket with the request_id |
| 503 | service_unavailable | The service is temporarily down, maintenance or overload | Back off and try again |
- Successful write requests return
201 Created(creation) or200 OK(update) and carry the final state of the record indata. A separate read request is not needed. - There are no delete endpoints. Prompts and brands are not “deleted”, their
activeorstatusfield is changed. This is deliberate, because measurement history would become meaningless if a record disappeared. - The
X-Request-Idresponse header carries the same value asmeta.request_id. You can read it from the header in cases where you cannot read the error body.
feedback.question
feedback.thanks