Skip to content

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.

GET /v1/prompts
GET /v1/prompts/{prompt_id}
POST /v1/prompts
PATCH /v1/prompts/{prompt_id}

GET /v1/prompts query parameters

NameTypeRequiredDescription
brand_idUUIDYesThe brand the prompts belong to
activebooleanNotrue for active ones only, false for paused ones only. All of them if omitted
typestringNobrand, non-brand. Comma separated for several
topicstringNoTopic key (topics.key), _other for prompts without a topic
topic_idUUIDNoTopic id
intentstringNoinformation, recommendation, comparison, purchase, price, usage, brand, trust
qstringNoA phrase appearing in the prompt text
sortstringNoposition, created_at, gv, aiv. Prefix with - for descending. Default position
limitintegerNoPage size, default 50, 200 at most
cursorstringNoThe 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.

NameTypeRequiredDescription
brand_idUUIDYesThe target brand
prompts[].textstringYesThe question itself, 10 to 300 characters
prompts[].typestringNobrand or non-brand, default non-brand
prompts[].topic_idUUIDNoThe topic to attach to. If left empty the prompt is collected under _other
prompts[].intentstringNoIntent label, one of the eight values above
prompts[].seedstringNoThe keyword the prompt was derived from
prompts[].positionintegerNoIts 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.

Terminal window
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"
}
]
}'
{
"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:

Terminal window
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 }'
HTTPerror.codeWhen
400invalid_parametertype or intent has a value that is not in the list, text is shorter than 10 characters
400invalid_requestThe prompts array is missing or empty, or more than 100 prompts were sent in one call
401invalid_api_keyThe key is wrong or has been revoked
403insufficient_scopeA write was attempted with a read scoped key
404not_foundbrand_id, topic_id or prompt_id does not exist, or belongs to another organization
409conflictAn active prompt with exactly the same text already exists on the same brand
409run_in_progressThe prompt list cannot be changed while the brand is collecting or analyzing
422validation_failedThe 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 gv and aiv fields. Both are search volume data: gv is Google search volume and aiv is the estimated AI search volume. They are refreshed through seed during a measurement, and stay null when there is no seed.
  • A prompt without a topic is not lost, but it is hidden. Prompts with no topic attached are collected under the _other key. 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 text field 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 to active: 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 the id, key, label, label_en, selected and position fields.

feedback.question