Skip to main content
POST
/
v1
/
console
/
knowledge-base
/
collections
/
{name}
/
documents
Upload Document
curl --request POST \
  --url http://localhost:8000/v1/console/knowledge-base/collections/{name}/documents \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "data": {
    "chunk_count": 123,
    "collection": "<string>",
    "content_type": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "file_size": 123,
    "filename": "<string>",
    "id": "<string>",
    "status": "<string>",
    "error_message": "<string>"
  },
  "message": "<string>",
  "success": true
}

Authorizations

Authorization
string
header
required

Enter your JWT access token

Path Parameters

name
string
required

Body

multipart/form-data
file
file
required

Response

Successful Response

data
KBDocumentResponse · object
message
string | null
success
boolean
default:true