Skip to content

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.

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
}
FieldTypeDescription
dataarray or objectThe result on a successful response, null on a failed one. Always an array on list endpoints, an object on single record endpoints
meta.request_idstringThe id of the request. Quote this value in a support ticket
meta.generated_atstringThe moment the response was produced, ISO 8601, UTC
meta.countintegerThe number of records on this page, not the total
meta.next_cursorstring or nullThe cursor for the next page, null on the last page
errorobject or nullnull on a successful response

Report endpoints add two more fields inside meta:

FieldTypeDescription
meta.filtersobjectThe request as the server resolved it: the date range applied, the time zone and the dimensions
meta.coverageobjectThe 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.

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_id and page_id fields are UUID strings. The single exception is answers.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 Z suffix. 2026-08-27T09:12:44Z.
  • Dates are YYYY-MM-DD. 2026-08-24.
  • Ratios are decimals between 0 and 1, not percentages. 0.412 means 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, the avg_position field is null, not 0.

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.

ParameterTypeDefaultDescription
limitinteger50Records per page, 200 at most
cursorstringnoneThe meta.next_cursor value from the previous response
Terminal window
# first page
curl "https://api.zeoradar.com/v1/prompts?brand_id=8f14a0c2-5b7e-4a91-9d33-6c2e10b4f7a5&limit=200" \
-H "Authorization: Bearer $ZEO_RADAR_API_KEY"
# next page
curl "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_cursor is null. A meta.count smaller than limit does 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.
ParameterTypeDescription
sortstringA field name. Prefix it with - for descending order
Terminal window
?sort=-created_at # newest first
?sort=position # the order from setup
?sort=-citations # most cited first

Every 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.

{
"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/"
}
}
FieldTypeDescription
error.codestringA fixed, machine readable code. Base your decisions on this
error.messagestringA human readable explanation. Do not parse the text, it can change
error.fieldstring or nullThe parameter or body field that caused the error
error.doc_urlstringThe documentation page that covers the subject
HTTPerror.codeWhat it meansWhat to do
400invalid_requestThe body is malformed or is not JSONFix the request and the Content-Type header
400invalid_parameterThe value of a parameter is invalidLook at error.field
400unknown_parameterAn unrecognised parameter was sentFix the typo
400cursor_expiredThe 24 hour life of the cursor ran outPull the list again from the start
400cursor_filter_mismatchThe cursor was produced with a different filter setRepeat the filters from the first call exactly
401missing_api_keyThere is no Authorization headerAdd the header
401invalid_api_keyThe key is wrong or has been revokedCreate a new key
403insufficient_scopeThe key is read scoped and a write was attemptedUse a write scoped key
403plan_requiredThe plan does not include this endpointMove to the Radar Pro or Custom plan
403insufficient_creditsThe remaining credit is not enough for the measurementAdd credit or reduce the number of prompts
404not_foundThe record does not exist or belongs to another organizationCheck the id and the organization of the key
409conflictA record with the same key already exists, for example a brand slug clashChange the value
409run_in_progressA new measurement was requested before the current one finishedWait until the current measurement is done or failed
422validation_failedThe body schema is valid but a business rule is violated, for example exceeding the plan’s prompt limitApply the rule described in error.message
429rate_limitedThe rate limit is used upWait for the Retry-After period
500internal_errorUnexpected server errorOpen a support ticket with the request_id
503service_unavailableThe service is temporarily down, maintenance or overloadBack off and try again
  • Successful write requests return 201 Created (creation) or 200 OK (update) and carry the final state of the record in data. A separate read request is not needed.
  • There are no delete endpoints. Prompts and brands are not “deleted”, their active or status field is changed. This is deliberate, because measurement history would become meaningless if a record disappeared.
  • The X-Request-Id response header carries the same value as meta.request_id. You can read it from the header in cases where you cannot read the error body.

feedback.question