curl --request POST \
--url https://api.dev.kathan.tech/knowledge-bases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form 'name=<string>'{}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.dev.kathan.tech/knowledge-bases \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form 'name=<string>'{}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful Response
The response is of type Response Create Knowledge Base From Pdf Knowledge Bases Post · object.
Was this page helpful?