Endpoint: Prompts
A prompt is the question asked to the AI engines. Both the cost and the scope of a measurement come out of this list: credit counting is simply the number of active prompts times the number of platforms. That is why the prompt endpoints are both read endpoints and careful write endpoints.
The examples on this page come from a Turkish language measurement of Godiva, so the prompt text and the topic key are Turkish. The field names are identical in every language.
Endpoint
Section titled “Endpoint”GET /v1/promptsGET /v1/prompts/{prompt_id}POST /v1/promptsPATCH /v1/prompts/{prompt_id}Parameters
Section titled “Parameters”GET /v1/prompts query parameters
| Name | Type | Required | Description |
|---|---|---|---|
brand_id | UUID | Yes | The brand the prompts belong to |
active | boolean | No | true for active ones only, false for paused ones only. All of them if omitted |
type | string | No | brand, non-brand. Comma separated for several |
topic | string | No | Topic key (topics.key), _other for prompts without a topic |
topic_id | UUID | No | Topic id |
intent | string | No | information, recommendation, comparison, purchase, price, usage, brand, trust |
q | string | No | A phrase appearing in the prompt text |
sort | string | No | position, created_at, gv, aiv. Prefix with - for descending. Default position |
limit | integer | No | Page size, default 50, 200 at most |
cursor | string | No | The meta.next_cursor value from the previous response |
POST /v1/prompts body fields
The body carries a brand_id and a prompts array; at most 100 prompts are added in one call.
| Name | Type | Required | Description |
|---|---|---|---|
brand_id | UUID | Yes | The target brand |
prompts[].text | string | Yes | The question itself, 10 to 300 characters |
prompts[].type | string | No | brand or non-brand, default non-brand |
prompts[].topic_id | UUID | No | The topic to attach to. If left empty the prompt is collected under _other |
prompts[].intent | string | No | Intent label, one of the eight values above |
prompts[].seed | string | No | The keyword the prompt was derived from |
prompts[].position | integer | No | Its place in the list |
PATCH /v1/prompts/{prompt_id} body fields
The text, type, topic_id, intent, seed, position and active fields can be
updated. Only the fields you send are changed.
Request
Section titled “Request”curl -X POST "https://api.zeoradar.com/v1/prompts" \ -H "Authorization: Bearer $ZEO_RADAR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "brand_id": "8f14a0c2-5b7e-4a91-9d33-6c2e10b4f7a5", "prompts": [ { "text": "Yılbaşı için en iyi hediyelik çikolata kutusu hangisi?", "type": "non-brand", "topic_id": "c47b2f81-9e05-4a3d-b6f2-1d84c05e7a39", "intent": "recommendation", "seed": "hediyelik çikolata" }, { "text": "Godiva çikolata fiyatına değer mi?", "type": "brand", "topic_id": "c47b2f81-9e05-4a3d-b6f2-1d84c05e7a39", "intent": "price", "seed": "godiva fiyat" } ] }'Response
Section titled “Response”{ "data": [ { "id": "6b0d5a72-38c1-4e69-9a4f-0e15b7c3d288", "brand_id": "8f14a0c2-5b7e-4a91-9d33-6c2e10b4f7a5", "topic_id": "c47b2f81-9e05-4a3d-b6f2-1d84c05e7a39", "topic_key": "hediyelik", "text": "Yılbaşı için en iyi hediyelik çikolata kutusu hangisi?", "type": "non-brand", "intent": "recommendation", "seed": "hediyelik çikolata", "gv": 4400, "aiv": 260, "active": true, "position": 12, "created_at": "2026-08-27T09:16:41Z" }, { "id": "9c3e18b4-72af-4d50-8163-b2d947e0af5c", "brand_id": "8f14a0c2-5b7e-4a91-9d33-6c2e10b4f7a5", "topic_id": "c47b2f81-9e05-4a3d-b6f2-1d84c05e7a39", "topic_key": "hediyelik", "text": "Godiva çikolata fiyatına değer mi?", "type": "brand", "intent": "price", "seed": "godiva fiyat", "gv": null, "aiv": null, "active": true, "position": 13, "created_at": "2026-08-27T09:16:41Z" } ], "meta": { "request_id": "req_01K3ZAP9R2S7E5UY3H", "generated_at": "2026-08-27T09:16:41Z", "count": 2, "next_cursor": null }, "error": null}Pausing a prompt is not the same as deleting it:
curl -X PATCH "https://api.zeoradar.com/v1/prompts/9c3e18b4-72af-4d50-8163-b2d947e0af5c" \ -H "Authorization: Bearer $ZEO_RADAR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "active": false }'Errors
Section titled “Errors”| HTTP | error.code | When |
|---|---|---|
| 400 | invalid_parameter | type or intent has a value that is not in the list, text is shorter than 10 characters |
| 400 | invalid_request | The prompts array is missing or empty, or more than 100 prompts were sent in one call |
| 401 | invalid_api_key | The key is wrong or has been revoked |
| 403 | insufficient_scope | A write was attempted with a read scoped key |
| 404 | not_found | brand_id, topic_id or prompt_id does not exist, or belongs to another organization |
| 409 | conflict | An active prompt with exactly the same text already exists on the same brand |
| 409 | run_in_progress | The prompt list cannot be changed while the brand is collecting or analyzing |
| 422 | validation_failed | The number of active prompts exceeds the plan’s limit |
- The number of active prompts is your cost. The credit spent in a measurement is the number of active prompts times the number of platforms measured. In a five platform setup, 30 prompts produce 150 answers in one measurement. Check your plan’s credit before adding prompts.
- You do not write the
gvandaivfields. Both are search volume data:gvis Google search volume andaivis the estimated AI search volume. They are refreshed throughseedduring a measurement, and staynullwhen there is noseed. - A prompt without a topic is not lost, but it is hidden. Prompts with no topic attached are
collected under the
_otherkey. That is a repair, not a target: because every screen filters by topic, a prompt without one is measured, paid for, and easily missed in the report. - Changing the prompt text breaks the history. If you update the
textfield the id stays the same, but a different question is being measured from then on and it cannot be read in the same series as older measurements. If you want to ask a new question, add a new prompt and set the old one toactive: false. - Changes are not accepted during a measurement. Adding a prompt in the middle of a running job would make that measurement partly old list and partly new list.
- Topics are a separate resource:
GET /v1/brands/{brand_id}/topics. Every topic carries theid,key,label,label_en,selectedandpositionfields.
feedback.question
feedback.thanks