Documents & content (part 2)
- Upload and ingest a filePOST
/api/v1/documents/upload - Get a specific documentGET
/api/v1/documents/{doc_id} - Update a documentPATCH
/api/v1/documents/{doc_id} - Delete a documentDELETE
/api/v1/documents/{doc_id} - Get auto tags for a documentGET
/api/v1/documents/{doc_id}/auto-tags - Update an applied auto tag valuePUT
/api/v1/documents/{doc_id}/auto-tags/{applied_tag_id} - Download a document's stored fileGET
/api/v1/documents/{doc_id}/content - Retag a documentPOST
/api/v1/documents/{doc_id}/retag - Get AI comparative analysis for executives or companies on a themePOST
/api/v1/insights
Upload and ingest a file
/api/v1/documents/uploadUpload and ingest a file with document enrichment and auto tags
Responses
422Unprocessable Entity
curl https://api.kumkuat.ai/api/v1/documents/upload \
-X POST \
-H 'X-API-Key: <api key>'Get a specific document
/api/v1/documents/{doc_id}Get a document by ID
Path parameters
doc_idstringRequiredDocument id.
Returns200 · object
documentobjectRequired21 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
Other responses
422Unprocessable Entity
Update a document
/api/v1/documents/{doc_id}Only title and extracted_date can be changed.
Path parameters
doc_idstringRequiredDocument id.
Bodyapplication/json · required
- nullable · for example "2026-09-30"
extracted_datestringISO-8601 publication date to set.
- nullable
titlestring
Returns200 · object
documentobjectRequired21 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
Other responses
Delete a document
/api/v1/documents/{doc_id}Delete a document by ID
Path parameters
doc_idstringRequiredDocument id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/documents/{doc_id}' \
-X DELETE \
-H 'X-API-Key: <api key>'Download a document's stored file
/api/v1/documents/{doc_id}/contentStream the stored file for a document, authorized per request.
Path parameters
doc_idstringRequiredDocument id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/documents/{doc_id}/content' \
-H 'X-API-Key: <api key>'Retag a document
/api/v1/documents/{doc_id}/retagRetag a document by rerunning all auto tags
Path parameters
doc_idstringRequiredDocument id.
Responses
422Unprocessable Entity
curl --globoff 'https://api.kumkuat.ai/api/v1/documents/{doc_id}/retag' \
-X POST \
-H 'X-API-Key: <api key>'Get AI comparative analysis for executives or companies on a theme
/api/v1/insightsCompare what executives or companies say on a theme, with an optional audience read from your personas.
Bodyapplication/json · required
- nullable
companiesarray of stringCompanies to compare, for comparison_type=company.
- default "executive"
comparison_typestringexecutive or company.
- nullable
executivesarray of stringExecutives to compare, by name.
- nullable · for example "Who is most credible on margin durability?"
focus_questionstring - nullable
freshbooleanBypass the cache.
- nullable
own_companystringYour company, for the audience layer's 'on you' quotes.
- nullable
personasarray of stringPersona ids whose audience read of the comparison to include.
- nullable
strategic_mapbooleanAlso produce the attack / defend / whitespace map.
- for example "Pricing power"
themestringRequiredThe theme (signal template) to compare on.
- nullable
themesarray of stringCompare across several themes at once.
Returns200 · object
ai_analysisobjectRequiredat_a_glance, similarities, differences, comparison_matrix, unique_perspectives.
- nullable
audience_resonancearray of objectPer persona: scores, verdicts, take and quotes; present when personas were given.
- nullable
companiesarray of string - nullable
company_summariesobject - nullable
executive_summariesobjectPer executive: summary, statements, statement_count.
- nullable
executivesarray of string - nullable
focus_questionstring - nullable
strategic_mapobject themestringRequired- nullable
themesarray of string - default 0
total_signalsinteger
Other responses
422