KumkuatKumkuat
API reference › Audiences

Get or generate audience reactions

POST/api/v1/audiences/reactions

POST/api/v1/audiences/reactions

Get or generate audience reactions

Each persona reacts to the document with a letter grade, judgments, evidence and actions. Reactions are cached per persona and document; pass force_refresh to regenerate. include: ["why_it_matters"] adds a grounded note on why the document matters to each persona.

REQUEST BODY · APPLICATION/JSON · REQUIRED
{
  "document": {
    "document_type": "press_release",
    "title": "Q3 pricing announcement"
  },
  "force_refresh": false,
  "generation_source": "api",
  "include": [
    "why_it_matters"
  ],
  "personas": [
    {
      "id": "d4e9b2a1-6c3f-4b8e-9f21-0a7c5e3d1b60"
    }
  ],
  "skip_save": false
}
In the full reference
REQUEST
curl -X POST "https://gateway.kumkuat.ai/api/v1/audiences/reactions" \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "document": {
    "document_type": "press_release",
    "title": "Q3 pricing announcement"
  },
  "force_refresh": false,
  "generation_source": "api",
  "include": [
    "why_it_matters"
  ],
  "personas": [
    {
      "id": "d4e9b2a1-6c3f-4b8e-9f21-0a7c5e3d1b60"
    }
  ],
  "skip_save": false
}'
RESPONSE
200OK
{
  "cache_hits": 1,
  "document": {},
  "failed": 1,
  "generated": 1,
  "insights": [
    {
      "cache_hit": false,
      "document": {},
      "grade": "B",
      "output_content": "string",
      "output_json": {},
      "persona": {
        "description": "",
        "id": "string",
        "name": "string"
      },
      "status": "completed",
      "status_counts": {
        "bad": 0,
        "good": 0,
        "warn": 0
      }
    }
  ],
  "message": "Persona reaction insights ready",
  "project_attached": false,
  "prompt_version": "string",
  "timed_out": 1,
  "workspace_id": "string"
}
Try it — sign in first
Runs on a sandbox key: 2000 requests a month. Your real key is for production.