Skip to main content
POST
/
v1
/
senders
/
{senderId}
/
agent
/
knowledge-bases
/
{kbId}
/
documents
Create document
curl --request POST \
  --url https://api.zavu.dev/v1/senders/{senderId}/agent/knowledge-bases/{kbId}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "title": "Return Policy",
  "content": "Our return policy allows returns within 30 days of purchase..."
}
'
{
  "document": {
    "id": "<string>",
    "knowledgeBaseId": "<string>",
    "title": "<string>",
    "contentLength": 123,
    "chunkCount": 123,
    "isProcessed": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

senderId
string
required
kbId
string
required

Body

application/json
title
string
required
Maximum string length: 200
content
string
required
Maximum string length: 100000

Response

Document created.

document
object
required