Skip to main content
POST
cURL
Send the file as multipart/form-data. Supported formats are PDF, DOC, DOCX, ODT and MD, with a maximum size of 30MB.
  • title is optional and defaults to the file name.
  • The document is chunked and embedded directly — no FAQ conversion.
  • Embeddings are built in the background; poll GET /knowledgeBase/build-status until the build is ready.

Authorizations

x-api-key
string
header
required

Body

multipart/form-data

Multipart form with the document file, an optional title and a language code

file
file
required

The document file (PDF, DOC, DOCX, ODT or MD, max 30MB)

title
string

Optional title, defaults to the file name

language
string

Language code (e.g. en)

Response

Document uploaded; embedding is building in the background

success
boolean

Whether the request succeeded

message
string

Response message