List Prompt Suggestions
Changed onList the prompt suggestions of a project
Request
- Base URLhttps://api.peec.ai/customer/v1
- URLhttps://api.peec.ai/customer/v1/prompts/suggestions
- Auth
- API key in header X-API-Key
- or API key in query parameter api_key
- or HTTP bearer
Query parameters
Required if using a company api key
Which suggestions to return. true (the default) returns the project's standard prompt suggestions. false returns Prompt discovery suggestions — the generated set awaiting review, which is accepted through the Prompt discovery rather than the accept/reject endpoints below, and whose ids are prefixed pr_ rather than ps_.
Response
Success
Example response
{
"data": [
{
"id": "ps_93f790de-5b7a-45ee-b782-61103c81f20d",
"messages": [
{
"content": "What is the best SEO tool?"
}
],
"tags": [
{
"id": "tg_23abec5b-100a-4261-9ee7-1effe68f0149"
}
],
"topic": {
"id": "to_e6b8cdd3-a51b-4d94-a866-28dbe6b830a6"
}
}
]
}Changes
- breaking
for the
queryrequest parameterlimit, the type changed fromnumbertointeger - breaking
for the
queryrequest parameteroffset, the type changed fromnumbertointeger - warning
for the
queryrequest parameteroffset, the max was set to9007199254740991.00 - warning
added the new
MNenum value to the///response property for the response status - info
added the new optional
queryrequest parameterlegacy
- breaking