Skip to main content

Trigger document processing

POST /api/v1/knowledge-base/process-document — request parameters and responses from the Menace Voice API schema.
2 min read
post/api/v1/knowledge-base/process-document
Request example
Response
post/api/v1/knowledge-base/process-document

See authentication for workspace API access. Public embed and artifact endpoints use their documented session or access tokens.

Headers

authorizationstring · null#
X-API-Keystring · null#

Body

application/json
document_uuidstringrequired#
Document UUID to process
s3_keystringrequired#
S3 key of the uploaded file
retrieval_modestring#
Retrieval mode: 'chunked' for vector search or 'full_document' for full text retrieval

Default: "chunked"

Responses

application/json
Successful Response
idintegerrequired#
document_uuidstringrequired#
filenamestringrequired#
file_size_bytesintegerrequired#
file_hashstringrequired#
mime_typestringrequired#
processing_statusstringrequired#
processing_errorstring · null#
Show child attributes
total_chunksintegerrequired#
retrieval_modestring#

Default: "chunked"

custom_metadataobjectrequired#
docling_metadataobjectrequired#
source_urlstring · null#
Show child attributes
contentstring · null#
Extracted document content for preview when processing is complete
Show child attributes
created_atstringrequired#
updated_atstringrequired#
organization_idintegerrequired#
created_byintegerrequired#
is_activebooleanrequired#