Create a knowledge base document from file

Create a new knowledge base document from a file upload

Required scope: convai:write

Body
required
application/json
Responses
  • application/json
  • application/json
  • application/json
Request Example for post/knowledge-base/file
curl https://api.simwood.com/convai/v1/knowledge-base/file \
  --request POST \
  --header 'Content-Type: multipart/form-data' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --form 'name=' \
  --form 'file='
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "string",
  "type": "url",
  "size_bytes": 1,
  "source_url": null,
  "created_at": "2026-07-18T10:26:52.915Z",
  "updated_at": "2026-07-18T10:26:52.915Z"
}