Skip to main content
POST
/
api
/
v1
/
orgs
/
{org_id}
/
knowledge-bases
/
{kb_id}
/
documents
Upload Document
curl --request POST \
  --url https://api.example.com/api/v1/orgs/{org_id}/knowledge-bases/{kb_id}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

org_id
string
required
kb_id
string
required

Body

multipart/form-data
file
file
required

Response

Successful Response