Ingest files (PDF, images, audio, video, text, Office)
POST/v1/default/knowledge-banks/:bank_id/files/ingest
Each file becomes one document, chunked into passages (or pre-processed first by the extension its ingestion strategy maps its type to) and embedded in the background. Poll the operation (GET /v1/default/knowledge-banks/{bank_id}/operations/{operation_id}), or the document's status, to know when it is searchable.
Authentication required — include an
Authorization: Bearer hsk_...header. See Authentication for details.
Request
Responses
- 202
- 422
Successful Response
Validation Error