Create a knowledge base document from text
Create a new knowledge base document from raw text content
Required scope: convai:write
Body
required
application/json
- Type: stringtextrequired
The text content
- Type: stringname
Responses
- application/json
- application/json
- application/json
Request Example for post/knowledge-base/text
curl https://api.simwood.com/convai/v1/knowledge-base/text \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"name": "",
"text": ""
}'
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"type": "url",
"size_bytes": 1,
"source_url": null,
"created_at": "2026-07-18T10:26:52.852Z",
"updated_at": "2026-07-18T10:26:52.852Z"
}