Skip to main content
POST
Upload a document

Authorizations

Authorization
string
header
required

Authenticate every request with a Bearer token. Pass your Reply API key in the Authorization header:

Get your API key from the Reply dashboard: Settings → API Key.

Path Parameters

knowledge_base_id
integer<int64>
required

Parent knowledge base id

Required range: x >= 1

Body

multipart/form-data
file
file
required

The file to upload

Response

Document uploaded successfully

A file document attached to a knowledge base.

id
string<uuid>
read-only

Unique identifier for the document

createdAt
string<date-time>
read-only

Timestamp when the document was uploaded

name
string
read-only

Original name of the uploaded file