Documents & content
Upload, ingest, query and tag documents; run the content-writing endpoints.
- Get communications with auto tagsGET
/api/v1/communications - Score each pull-through priority against a draftPOST
/api/v1/content-creation/analyze-pull-through-coverage - Suggest edits to reduce AI-detection signals in contentPOST
/api/v1/content-creation/deaiify - List content creation draftsGET
/api/v1/content-creation/drafts - Create or update content creation draftPOST
/api/v1/content-creation/drafts - Get content creation draftGET
/api/v1/content-creation/drafts/{draft_id} - Delete a content creation draftDELETE
/api/v1/content-creation/drafts/{draft_id} - Rewrite a draft so unmet pull-through priorities are deliveredPOST
/api/v1/content-creation/enhance-pull-through - Export content as PDF, DOCX, or TXTPOST
/api/v1/content-creation/export - Generate content draft textPOST
/api/v1/content-creation/generate - Phrase-level edit suggestions driven by audience feedbackPOST
/api/v1/content-creation/rewrite-phrases - Rewrite specific draft segments to address audience feedbackPOST
/api/v1/content-creation/rewrite-segments - List content source documentsGET
/api/v1/content-creation/source-documents - Upload content source documentPOST
/api/v1/content-creation/source-documents/upload - Attach existing document as content sourcePOST
/api/v1/content-creation/source-documents/{document_id}/attach - Get all documentsGET
/api/v1/documents - Create a new documentPOST
/api/v1/documents - Extract text from an uploaded file without savingPOST
/api/v1/documents/extract-text - Ingest a documentPOST
/api/v1/documents/ingest - Query a documentPOST
/api/v1/documents/query
Get communications with auto tags
/api/v1/communicationsGet documents for communications page with auto tags
Query parameters
- default 1
pageintegerPage number, 1-based.
- default 100
per_pageintegerItems per page.
- default "extracted_date"
sort_bystringField to sort on.
- default "desc"
sort_orderone of "asc", "desc"asc or desc.
searchstringFull-text filter.
tag_filtersstringComma-separated auto-tag values to match.
- default "or"
tag_filter_modeone of "or", "and"or or and.
auto_tag_idstringRestrict tag_filters to one auto tag.
show_filteredstringSet to true to include documents hidden by filters, with
hidden_by.
Returns200 · object
documentsarray of objectRequiredWithout content; tags are a JSON-encoded string on this endpoint.
21 child fields
auto_tagsarray of object5 child fields
- nullable
applied_atstring - nullable
confidence_scorenumber - for example "Jane Doe"
extracted_valuestringRequired - for example "Executives"
namestringRequired - nullable
tag_typestring
- nullable
character_countinteger - nullable
communication_typestring - nullable
companystring - nullable
contentstringFull text; omitted by list endpoints in light mode.
- nullable · for example "transcript"
content_typestring - nullable
created_atstring - nullable
executivestringExecutive the document is attributed to.
- nullable
extracted_atstring - nullable
extracted_datestringWhen the content was published, as extracted.
- for example "c0a8e2f4-1b7d-4e2a-8c9f-5d6e7a8b9c01"
idstringRequired - nullable
is_narrative_testing_uploadboolean - nullable
media_provenancestringowned, earned or paid.
- nullable
processing_statusstringfetching or enhancing while ingestion runs, failed on error, null when done.
- nullable · for example "https://investors.example.com/q3-call"
source_urlstring tagsarray of string- for example "Acme Q3 earnings call transcript"
titlestringRequired - nullable
updated_atstring - nullable
urlstring - nullable · for example 4210
word_countinteger workspace_idstringRequired
hidden_countintegerRequiredDocuments hidden by auto-tag filters.
paginationobjectRequired4 child fields
pageintegerRequiredPage number, 1-based.
per_pageintegerRequiredItems per page.
total_countintegerRequiredItems across all pages.
total_pagesintegerRequired
show_filteredbooleanRequired
Score each pull-through priority against a draft
/api/v1/content-creation/analyze-pull-through-coverageGrade each pull-through priority as covered / partial / missing in the given draft.
Bodyapplication/json · required
contentstringRequired- nullable · default "gemini/gemini-2.5-flash"
modelstring pull_through_prioritiesarray of object3 child fields
- nullable · default false
from_kbboolean - nullable · default "must"
levelstring textstringRequired
Returns200 · object
coveragearray of objectRequiredOne entry per priority: text, level, covered, evidence.
- nullable
modelstring - nullable
parse_errorboolean
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/content-creation/analyze-pull-through-coverage \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"content":"string"}'Suggest edits to reduce AI-detection signals in content
/api/v1/content-creation/deaiifyLLM-powered analysis of AI-detection signals with span-anchored edit suggestions.
Bodyapplication/json · required
- nullable
content_type_labelstring - nullable · default "gemini/gemini-2.5-flash"
modelstring - default false
selection_onlyboolean textstringRequired- nullable
tone_persona_helperstring - nullable
tone_persona_labelstring
Returns200 · object
- nullable
messagestringSet when the text was too short to analyse.
- nullable
modelstring suggestionsarray of objectRequiredEdits as original/replacement pairs with a reason.
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/content-creation/deaiify \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"text":"string"}'List content creation drafts
/api/v1/content-creation/draftsList recent content drafts stored in the content-drafts knowledgebase.
Query parameters
- default 20
limitintegerMost recent N, up to 100.
include_contentstringSet to 1 to include each draft's text.
Returns200 · object
countintegerRequireddraftsarray of objectRequired12 child fields
- default 0
character_countinteger - nullable
contentstringPresent when include_content is set, and on single-draft reads.
- default "text"
content_typestring created_atstringRequired- default ""
excerptstring idstringRequired- default "content-drafts"
knowledgebasestring metadataobject10 child fields
audience_persona_idsarray of string- nullable
content_type_valuestring - default ""
promptstring - Holds 3 fields, not listed here.
pull_through_prioritiesarray of object - nullable
source_document_idstring - nullable
source_modestring test_historyarray of objectthemesarray of string- nullable
tone_persona_idstring - nullable
voice_profile_idstring
- nullable
source_urlstring - for example "Q3 margin story — LinkedIn post"
titlestringRequired updated_atstringRequired- default 0
word_countinteger
- default "content-drafts"
knowledgebasestring
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/content-creation/drafts \
-H 'X-API-Key: <api key>'Create or update content creation draft
/api/v1/content-creation/draftsCreates a draft (201), or updates it when draft_id is given (200).
Bodyapplication/json · required
audience_persona_idsarray of string- nullable
contentstring - nullable · default "text"
content_typestring - nullable
content_type_valuestring - nullable
draft_idstring - nullable
knowledgebase_idstring - nullable
project_idstring - nullable
promptstring pull_through_prioritiesarray of object3 child fields
- nullable · default false
from_kbboolean - nullable · default "must"
levelstring textstringRequired
- nullable
source_document_idstring - nullable · default "freeform"
source_modestring - nullable
source_urlstring - nullable
test_historyarray of object themesarray of string- nullable
titlestring - nullable
tone_persona_idstring - nullable
voice_profile_idstring
Returns200 · object
draftobjectRequired12 child fields
- default 0
character_countinteger - nullable
contentstringPresent when include_content is set, and on single-draft reads.
- default "text"
content_typestring created_atstringRequired- default ""
excerptstring idstringRequired- default "content-drafts"
knowledgebasestring metadataobject10 child fields
audience_persona_idsarray of string- nullable
content_type_valuestring - default ""
promptstring - Holds 3 fields, not listed here.
pull_through_prioritiesarray of object - nullable
source_document_idstring - nullable
source_modestring test_historyarray of objectthemesarray of string- nullable
tone_persona_idstring - nullable
voice_profile_idstring
- nullable
source_urlstring - for example "Q3 margin story — LinkedIn post"
titlestringRequired updated_atstringRequired- default 0
word_countinteger
- nullable
knowledgebase_namestring messagestringRequired- nullable
project_attachedboolean
Get content creation draft
/api/v1/content-creation/drafts/{draft_id}Fetch a single content draft by document ID.
Path parameters
draft_idstringRequiredContent draft id.
Returns200 · object
draftobjectRequired12 child fields
- default 0
character_countinteger - nullable
contentstringPresent when include_content is set, and on single-draft reads.
- default "text"
content_typestring created_atstringRequired- default ""
excerptstring idstringRequired- default "content-drafts"
knowledgebasestring metadataobject10 child fields
audience_persona_idsarray of string- nullable
content_type_valuestring - default ""
promptstring - Holds 3 fields, not listed here.
pull_through_prioritiesarray of object - nullable
source_document_idstring - nullable
source_modestring test_historyarray of objectthemesarray of string- nullable
tone_persona_idstring - nullable
voice_profile_idstring
- nullable
source_urlstring - for example "Q3 margin story — LinkedIn post"
titlestringRequired updated_atstringRequired- default 0
word_countinteger
Other responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/content-creation/drafts/{draft_id}' \
-H 'X-API-Key: <api key>'Delete a content creation draft
/api/v1/content-creation/drafts/{draft_id}Soft-delete a content creation draft by ID.
Path parameters
draft_idstringRequiredContent draft id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/content-creation/drafts/{draft_id}' \
-X DELETE \
-H 'X-API-Key: <api key>'Rewrite a draft so unmet pull-through priorities are delivered
/api/v1/content-creation/enhance-pull-throughRe-prompt the generator with unmet priorities elevated to rewrite the current draft.
Bodyapplication/json · required
audiencesarray of string- nullable · default "auto"
content_typestring - nullable
content_type_labelstring current_draftstringRequired- nullable · default "gemini/gemini-2.5-flash"
modelstring - nullable
promptstring themesarray of string- nullable
tone_persona_helperstring - nullable
tone_persona_labelstring unmet_prioritiesarray of object3 child fields
- nullable · default false
from_kbboolean - nullable · default "must"
levelstring textstringRequired
Returns200 · object
contentstringRequiredThe generated or rewritten draft.
- nullable
modelstring - default false
truncatedbooleanTrue when the model hit its output limit; ask for a shorter piece.
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/content-creation/enhance-pull-through \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"current_draft":"string"}'Export content as PDF, DOCX, or TXT
/api/v1/content-creation/exportExport content creation draft to the requested format (pdf, docx, txt).
Bodyapplication/json · required
- nullable · default ""
content_htmlstring - nullable · default ""
content_textstring - nullable
content_typestring - default "pdf"
formatstring themesarray of string- nullable · default "Untitled"
titlestring - nullable
tone_personastring
Responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/content-creation/export \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"content_html":"","content_text":""}'Generate content draft text
/api/v1/content-creation/generateSet Accept: text/event-stream to stream the draft as it is written.
Bodyapplication/json · required
audiencesarray of string- nullable · default "auto"
content_typestring - nullable
content_type_labelstring - nullable · default "gemini/gemini-2.5-flash"
modelstring - nullable
preferred_title_lengthinteger - nullable
promptstring pull_through_prioritiesarray of object3 child fields
- nullable · default false
from_kbboolean - nullable · default "must"
levelstring textstringRequired
- nullable
source_document_excerptstring - nullable
source_document_idstring - nullable
source_document_titlestring - nullable · default "freeform"
source_modestring - nullable
template_instructionsstring - nullable
template_reference_excerptstring themesarray of string- nullable
tone_persona_helperstring - nullable
tone_persona_idstring - nullable
tone_persona_labelstring - nullable
voice_profile_idstring
Returns200 · object
contentstringRequiredThe generated or rewritten draft.
- nullable
modelstring - default false
truncatedbooleanTrue when the model hit its output limit; ask for a shorter piece.
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/content-creation/generate \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"audiences":["string"],"content_type":"auto"}'Phrase-level edit suggestions driven by audience feedback
/api/v1/content-creation/rewrite-phrasesLLM-powered phrase-level edit suggestions based on audience test feedback.
Bodyapplication/json · required
- nullable
content_type_labelstring full_draftstringRequired- nullable · default "gemini/gemini-2.5-flash"
modelstring segmentsarray of object6 child fields
actionsarray of string- nullable
gradestring - nullable
persona_namestring risksarray of stringsegment_textstringRequired- nullable
summarystring
- nullable
tone_persona_helperstring - nullable
tone_persona_labelstring
Returns200 · object
- nullable
messagestringSet when the text was too short to analyse.
- nullable
modelstring suggestionsarray of objectRequiredEdits as original/replacement pairs with a reason.
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/content-creation/rewrite-phrases \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"full_draft":"string"}'Rewrite specific draft segments to address audience feedback
/api/v1/content-creation/rewrite-segmentsLLM-powered rewrite of individual segments based on audience test feedback.
Bodyapplication/json · required
- nullable
content_type_labelstring full_draftstringRequired- nullable · default "gemini/gemini-2.5-flash"
modelstring segmentsarray of object6 child fields
actionsarray of string- nullable
gradestring - nullable
persona_namestring risksarray of stringsegment_textstringRequired- nullable
summarystring
- nullable
tone_persona_helperstring - nullable
tone_persona_labelstring
Returns200 · object
- nullable
modelstring rewritesarray of objectRequiredOne rewrite per submitted segment.
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/content-creation/rewrite-segments \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"full_draft":"string"}'List content source documents
/api/v1/content-creation/source-documentsList workspace documents tagged for /content source generation.
Responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/content-creation/source-documents \
-H 'X-API-Key: <api key>'Upload content source document
/api/v1/content-creation/source-documents/uploadUpload a source document for /content generation using the standard ingestion pipeline.
Responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/content-creation/source-documents/upload \
-X POST \
-H 'X-API-Key: <api key>'Attach existing document as content source
/api/v1/content-creation/source-documents/{document_id}/attachTag an existing workspace document for /content source generation.
Path parameters
document_idstringRequiredDocument id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/content-creation/source-documents/{document_id}/attach' \
-X POST \
-H 'X-API-Key: <api key>'Get all documents
/api/v1/documentsGet all documents with pagination, filtering, and sorting
Query parameters
- default 1
pageintegerPage number, 1-based.
- default 20
per_pageintegerItems per page.
- default "extracted_at"
sort_bystringField to sort on.
- default "desc"
sort_orderone of "asc", "desc"asc or desc.
searchstringFull-text filter on title and content.
lightstringSet to 1 to omit content and tags.
facetsstringSet to 1 to add executive, company and communication_type.
exclude_persona_kbsstringSet to 1 to leave out persona knowledge-base documents.
Returns200 · object
documentsarray of objectRequired21 child fields
auto_tagsarray of object5 child fields
- nullable
applied_atstring - nullable
confidence_scorenumber - for example "Jane Doe"
extracted_valuestringRequired - for example "Executives"
namestringRequired - nullable
tag_typestring
- nullable
character_countinteger - nullable
communication_typestring - nullable
companystring - nullable
contentstringFull text; omitted by list endpoints in light mode.
- nullable · for example "transcript"
content_typestring - nullable
created_atstring - nullable
executivestringExecutive the document is attributed to.
- nullable
extracted_atstring - nullable
extracted_datestringWhen the content was published, as extracted.
- for example "c0a8e2f4-1b7d-4e2a-8c9f-5d6e7a8b9c01"
idstringRequired - nullable
is_narrative_testing_uploadboolean - nullable
media_provenancestringowned, earned or paid.
- nullable
processing_statusstringfetching or enhancing while ingestion runs, failed on error, null when done.
- nullable · for example "https://investors.example.com/q3-call"
source_urlstring tagsarray of string- for example "Acme Q3 earnings call transcript"
titlestringRequired - nullable
updated_atstring - nullable
urlstring - nullable · for example 4210
word_countinteger workspace_idstringRequired
paginationobjectRequired4 child fields
pageintegerRequiredPage number, 1-based.
per_pageintegerRequiredItems per page.
total_countintegerRequiredItems across all pages.
total_pagesintegerRequired
Create a new document
/api/v1/documentsCreate a new document (admin/owner only)
Bodyapplication/json · required
contentstringRequired- default "text"
content_typestring media_provenancestringsource_urlstringtagsarray of stringtitlestringRequired
Returns201 · object
documentobjectRequired6 child fields
character_countintegerRequiredcontent_typestringRequiredcreated_atstringRequiredidstringRequiredtitlestringRequiredword_countintegerRequired
- default "Document created successfully"
messagestring
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/documents \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"content":"string","title":"string"}'Extract text from an uploaded file without saving
/api/v1/documents/extract-textSend the file as multipart/form-data in a file field: PDF, DOCX, PPTX, TXT, MD, CSV, HTML, RTF, JSON or XML. Nothing is stored.
Returns200 · object
character_countintegerRequiredcontentstringRequiredThe extracted text.
filenamestringRequiredword_countintegerRequired
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/documents/extract-text \
-X POST \
-H 'X-API-Key: <api key>'{
"character_count": 0,
"content"
Ingest a document
/api/v1/documents/ingestFetch a URL into the workspace. Returns at once with processing_status: fetching; poll GET /api/v1/documents/{doc_id} until it clears.
Bodyapplication/json · required
audio_urlstring- default "auto"
content_typestringwebpage, pdf, image, audio, youtube, or auto to detect from the URL.
media_provenancestringsource_urlstringRequiredThe page, PDF, image, audio file or YouTube video to ingest.
Returns200 · object
- default 0
character_countinteger document_idstringRequired- nullable
errorstringSet when the fetch could not be started; the status is still 200.
- default "Document ingested successfully"
messagestring - nullable · default "fetching"
processing_statusstringPoll GET /api/v1/documents/{doc_id} until this is null.
- nullable
scrape_job_idstring - nullable
source_urlstring - default true
successboolean titlestringRequiredA placeholder until the fetch completes.
- nullable
urlstring - default 0
word_countinteger
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/documents/ingest \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"source_url":"string"}'Query a document
/api/v1/documents/queryQuery a document using a template
Bodyapplication/json · required
doc_idstringRequired- default "gpt-3.5-turbo"
modelstring query_templatestringRequired
Returns200 · object
responsestringRequiredThe answer, as text.
Other responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/documents/query \
-H 'X-API-Key: <api key>' \
-H 'Content-Type: application/json' \
-d '{"doc_id":"string","query_template":"string"}'{
"response":