POST/api/v1/personas/why-it-matters
Generate/fetch grounded 'why this matters' for a persona+document
Why this document matters to one persona: a web-grounded note with sources, cached for 7 days. POST /api/v1/audiences/reactions returns the same note on every reaction when its include lists why_it_matters; call this route to fetch one on its own or to regenerate it with force_refresh.
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"document": {
"document_type": "press_release",
"title": "Q3 pricing announcement"
},
"force_refresh": false
}
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/personas/why-it-matters" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"document": {
"document_type": "press_release",
"title": "Q3 pricing announcement"
},
"force_refresh": false
}'
import requests
r = requests.post("https://gateway.kumkuat.ai/api/v1/personas/why-it-matters", headers={"X-API-Key": "YOUR_KEY"}, json={
"document": {
"document_type": "press_release",
"title": "Q3 pricing announcement"
},
"force_refresh": False
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/personas/why-it-matters", {
method: "POST",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"document": {
"document_type": "press_release",
"title": "Q3 pricing announcement"
},
"force_refresh": false
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"answer": "string",
"cache_hit": false,
"grounded": true,
"sources": [
{}
]
}
