Skip to main content
POST
/
v3
/
ai-sdr
/
knowledge-bases
/
{knowledge_base_id}
/
documents
Upload a document
curl --request POST \
  --url https://api.reply.io/v3/ai-sdr/knowledge-bases/{knowledge_base_id}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "id": "9c1f8a7e-0b3a-4d11-9b9c-2c4f8a7e0b3a",
  "createdAt": "2026-05-10T14:32:11Z",
  "name": "product-launch-deck.pdf"
}

Documentation Index

Fetch the complete documentation index at: https://docs.reply.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Authorization: Bearer <your-api-key>

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