# API Reference: Kumkuat API 1.0.0

REST API for the Kumkuat audience-intelligence platform. Every request carries a workspace-scoped key in the `X-API-Key` header; the key binds the call to one workspace. Base URL: `https://api.kumkuat.ai`.

Each section below has a page of its own with every endpoint in full: its parameters, request body, responses and an example request and response.

## Base URL

- `https://api.kumkuat.ai`: Production

## Authentication

- An API key in the X-API-Key header: API key for authentication

## Sections

- [Workspace](https://product.tech/docs-kumkuat-ai/api-reference/workspace.md)
  - `GET /api/v1/jobs/{job_id}`: Get a background job
  - `GET /api/v1/workspace`: Get the current workspace
  - `GET /api/v1/workspace/company-tags`: List company names extracted by company auto tags
  - `GET /api/v1/workspace/content-type-tags`: List the workspace's content-type tags
  - `GET /api/v1/workspace/pull-through-priorities`: Get the workspace pull-through priorities
  - `PUT /api/v1/workspace/pull-through-priorities`: Replace the workspace pull-through priorities
- [Documents & content](https://product.tech/docs-kumkuat-ai/api-reference/documents-content.md)
  - `GET /api/v1/communications`: Get communications with auto tags
  - `POST /api/v1/content-creation/analyze-pull-through-coverage`: Score each pull-through priority against a draft
  - `POST /api/v1/content-creation/deaiify`: Suggest edits to reduce AI-detection signals in content
  - `GET /api/v1/content-creation/drafts`: List content creation drafts
  - `POST /api/v1/content-creation/drafts`: Create or update content creation draft
  - `GET /api/v1/content-creation/drafts/{draft_id}`: Get content creation draft
  - `DELETE /api/v1/content-creation/drafts/{draft_id}`: Delete a content creation draft
  - `POST /api/v1/content-creation/enhance-pull-through`: Rewrite a draft so unmet pull-through priorities are delivered
  - `POST /api/v1/content-creation/export`: Export content as PDF, DOCX, or TXT
  - `POST /api/v1/content-creation/generate`: Generate content draft text
  - `POST /api/v1/content-creation/rewrite-phrases`: Phrase-level edit suggestions driven by audience feedback
  - `POST /api/v1/content-creation/rewrite-segments`: Rewrite specific draft segments to address audience feedback
  - `GET /api/v1/content-creation/source-documents`: List content source documents
  - `POST /api/v1/content-creation/source-documents/upload`: Upload content source document
  - `POST /api/v1/content-creation/source-documents/{document_id}/attach`: Attach existing document as content source
  - `GET /api/v1/documents`: Get all documents
  - `POST /api/v1/documents`: Create a new document
  - `POST /api/v1/documents/extract-text`: Extract text from an uploaded file without saving
  - `POST /api/v1/documents/ingest`: Ingest a document
  - `POST /api/v1/documents/query`: Query a document
- [Documents & content (part 2)](https://product.tech/docs-kumkuat-ai/api-reference/documents-content-part-2.md)
  - `POST /api/v1/documents/upload`: Upload and ingest a file
  - `GET /api/v1/documents/{doc_id}`: Get a specific document
  - `PATCH /api/v1/documents/{doc_id}`: Update a document
  - `DELETE /api/v1/documents/{doc_id}`: Delete a document
  - `GET /api/v1/documents/{doc_id}/auto-tags`: Get auto tags for a document
  - `PUT /api/v1/documents/{doc_id}/auto-tags/{applied_tag_id}`: Update an applied auto tag value
  - `GET /api/v1/documents/{doc_id}/content`: Download a document's stored file
  - `POST /api/v1/documents/{doc_id}/retag`: Retag a document
  - `POST /api/v1/insights`: Get AI comparative analysis for executives or companies on a theme
- [Personas](https://product.tech/docs-kumkuat-ai/api-reference/personas.md)
  - `GET /api/v1/personas`: Get all personas
  - `POST /api/v1/personas`: Create persona
  - `POST /api/v1/personas/interact`: Interact with persona
  - `POST /api/v1/personas/why-it-matters`: Generate/fetch grounded 'why this matters' for a persona+document
  - `GET /api/v1/personas/{persona_id}`: Get persona by ID
  - `PUT /api/v1/personas/{persona_id}`: Update persona
  - `DELETE /api/v1/personas/{persona_id}`: Delete persona
  - `POST /api/v1/personas/{persona_id}/analyze-voice`: Analyze voice from writing samples
  - `POST /api/v1/personas/{persona_id}/feedback`: Submit persona response feedback
  - `POST /api/v1/personas/{persona_id}/generate`: Generate content in persona voice
  - `POST /api/v1/personas/{persona_id}/link-external-source`: Link external source to persona
  - `POST /api/v1/personas/{persona_id}/link-file`: Link an uploaded file to persona
  - `POST /api/v1/personas/{persona_id}/link-linkedin`: Link LinkedIn profile to persona
  - `GET /api/v1/personas/{persona_id}/refinements`: List persona refinements
  - `POST /api/v1/personas/{persona_id}/refinements`: Add manual persona refinement
  - `PATCH /api/v1/personas/{persona_id}/refinements/{refinement_id}`: Update persona refinement
  - `DELETE /api/v1/personas/{persona_id}/refinements/{refinement_id}`: Delete persona refinement
  - `GET /api/v1/personas/{persona_id}/summary`: Get or generate a persona summary
  - `POST /api/v1/personas/{persona_id}/unlink-file`: Unlink an uploaded file from persona
  - `GET /api/v1/personas/{persona_id}/voice-profiles`: List voice profiles for a persona
- [Personas (part 2)](https://product.tech/docs-kumkuat-ai/api-reference/personas-part-2.md)
  - `GET /api/v1/personas/{persona_id}/voice-profiles/{profile_id}`: Get a single voice profile
  - `PUT /api/v1/personas/{persona_id}/voice-profiles/{profile_id}`: Update a voice profile
  - `DELETE /api/v1/personas/{persona_id}/voice-profiles/{profile_id}`: Delete a voice profile
  - `POST /api/v1/personas/{persona_id}/voice-profiles/{profile_id}/set-default`: Set default voice profile
- [Voices](https://product.tech/docs-kumkuat-ai/api-reference/voices.md)
  - `GET /api/v1/voices`: List voices
  - `POST /api/v1/voices`: Add a voice
  - `GET /api/v1/voices/{persona_id}`: Get a voice
  - `PUT /api/v1/voices/{persona_id}`: Enable or disable a voice
- [Audiences](https://product.tech/docs-kumkuat-ai/api-reference/audiences.md)
  - `GET /api/v1/audiences`: List audiences
  - `POST /api/v1/audiences`: Add an audience
  - `GET /api/v1/audiences/categories`: List audience category names
  - `GET /api/v1/audiences/reactions`: List cached audience reactions
  - `POST /api/v1/audiences/reactions`: Get or generate audience reactions
  - `POST /api/v1/audiences/reactions/async`: Queue audience reactions as a job
  - `GET /api/v1/audiences/reactions/history`: Get reaction history for a persona and document
  - `GET /api/v1/audiences/{category}/summary`: Get or generate an audience summary
- [Signals & themes](https://product.tech/docs-kumkuat-ai/api-reference/signals-themes.md)
  - `GET /api/v1/executives/{executive_name}`: Get detailed information about a specific executive
  - `GET /api/v1/signals`: Get all signals
  - `GET /api/v1/signals/document/{document_id}`: Get signals for a specific document
  - `DELETE /api/v1/signals/document/{document_id}`: Delete signals for a specific document
  - `GET /api/v1/signals/filters`: Get the theme and executive filters
  - `GET /api/v1/signals/runs`: Get all signal runs
  - `GET /api/v1/signals/runs/{run_id}`: Get signal run
  - `GET /api/v1/signals/templates`: Get all signal templates
  - `POST /api/v1/signals/templates`: Create a signal template
  - `GET /api/v1/signals/templates/{template_id}`: Get signal template by ID
  - `PUT /api/v1/signals/templates/{template_id}`: Update a signal template
  - `DELETE /api/v1/signals/templates/{template_id}`: Delete a signal template
  - `GET /api/v1/signals/templates/{template_id}/signals`: Get signals by template
  - `GET /api/v1/signals/themes`: Get themes and extracted signals
  - `POST /api/v1/signals/{signal_id}/feedback`: Submit signal feedback
- [Auto tags](https://product.tech/docs-kumkuat-ai/api-reference/auto-tags.md)
  - `GET /api/v1/auto-tags`: Get all auto tags
  - `POST /api/v1/auto-tags`: Create auto tag
  - `GET /api/v1/auto-tags/aliases`: List auto-tag alias rules
  - `POST /api/v1/auto-tags/aliases`: Create an auto-tag alias rule
  - `PUT /api/v1/auto-tags/aliases/{id}`: Update an auto-tag alias rule
  - `DELETE /api/v1/auto-tags/aliases/{id}`: Delete an auto-tag alias rule
  - `GET /api/v1/auto-tags/{id}`: Get auto tag by ID
  - `PUT /api/v1/auto-tags/{id}`: Update auto tag
  - `DELETE /api/v1/auto-tags/{id}`: Delete auto tag
- [Reports](https://product.tech/docs-kumkuat-ai/api-reference/reports.md)
  - `GET /api/v1/reports`: List custom reports for workspace
  - `POST /api/v1/reports`: Create a custom report
  - `GET /api/v1/reports/{report_id}`: Get custom report with sections
  - `PATCH /api/v1/reports/{report_id}`: Update a custom report
  - `DELETE /api/v1/reports/{report_id}`: Delete a custom report
  - `POST /api/v1/reports/{report_id}/customize-style`: Generate layout\_config from natural language style description
  - `POST /api/v1/reports/{report_id}/generate`: Generate all stale sections
  - `GET /api/v1/reports/{report_id}/pdf`: Download report as PDF
  - `GET /api/v1/reports/{report_id}/schedule`: Get report schedule
  - `POST /api/v1/reports/{report_id}/schedule`: Create report refresh schedule
  - `PATCH /api/v1/reports/{report_id}/schedule`: Update report schedule
  - `DELETE /api/v1/reports/{report_id}/schedule`: Delete report schedule
  - `POST /api/v1/reports/{report_id}/sections`: Add section to a report
  - `PATCH /api/v1/reports/{report_id}/sections/{section_id}`: Update a report section
  - `DELETE /api/v1/reports/{report_id}/sections/{section_id}`: Delete a report section
  - `POST /api/v1/reports/{report_id}/sections/{section_id}/generate`: Generate output for a single section
  - `POST /api/v1/reports/{report_id}/send-email`: Send report via email
- [Audit log](https://product.tech/docs-kumkuat-ai/api-reference/audit-log.md)
  - `GET /api/v1/audit-events`: List audit events (SIEM feed)
  - `GET /api/v1/audit-events/export.csv`: Download audit events as CSV
  - `GET /api/v1/audit-events/types`: List audit event types
