Skip to main content
POST
Start Knowledge Base Upload Session

Authorizations

x-public-key
string
header
required
x-private-key
string
header
required

Headers

x-public-key
string
required
x-private-key
string
required
workspace
string
required

Body

application/json
fileName
string
required

Original filename including extension.

Maximum string length: 255
Example:

"product-catalog.pdf"

totalChunks
integer
required

Total number of chunks the file will be split into. Use 10 MB per chunk as the target size.

Required range: 1 <= x <= 1000
Example:

1

fileSize
integer
required

Total file size in bytes. Maximum: 104857600 (100 MB).

Required range: x >= 1
Example:

524288

mimeType
string

MIME type of the file. Supported values: application/pdf, text/plain, application/vnd.openxmlformats-officedocument.wordprocessingml.document, text/markdown.

Example:

"application/pdf"

Response

Upload session created

message
string
Example:

"Upload session created successfully."

sessionId
string
Example:

"sess_abc123xyz"