curl --request POST \
--url https://api.staging.kathan.tech/knowledge-bases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--header 'X-User-ID: <api-key>' \
--form file='@example-file' \
--form 'name=<string>' \
--form depth=mid{}Upload a PDF as a knowledge base (simple public API: file only).
Attaching/detaching is done via Assistants API using knowledge_base_id.
curl --request POST \
--url https://api.staging.kathan.tech/knowledge-bases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--header 'X-User-ID: <api-key>' \
--form file='@example-file' \
--form 'name=<string>' \
--form depth=mid{}API key authentication.
Required user id for API key requests.
Successful Response
The response is of type Response Create Knowledge Base From Pdf Knowledge Bases Post · object.
Was this page helpful?