Knowledge Bases
Knowledge Bases

Upload Document

Changed on

Upload a document to a knowledge base.

The document will be processed asynchronously. Check the status field to monitor processing progress.

post/api/v1/knowledge-bases/{kb_id}/documents

Request

  • Base URL: https://api.getanana.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.getanana.com/api/v1/knowledge-bases/{kb_id}/documents
  • Auth: none declared

Path parameters

kb_idstring uuid required

Request body multipart/form-data

filestring binary required
titlestring nullable

Response

Successful Response

idstring uuid required
tenant_idstring uuid required
knowledge_base_idstring uuid required
document_idstring uuid required
titlestring required
source_typestring required
status'WAITING' | 'PROCESSING' | 'COMPLETED' | 'FAILED' | 'CANCELLED' required
error_messagestring nullable required
chunk_countinteger required
created_atstring date-time required
updated_atstring date-time required

Changes

    • breaking

      the request property contentMediaType changed from to application/octet-stream

    • info

      the request property format was generalized from binary to no format

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status