Documents
Not yet available. Plain-text ingestion is not supported yet — this endpoint currently returns 501 Not Implemented. To add content today, upload a PDF with POST /api/ext/document/file. (Planned: submit a knowledge_base_id + text to ingest raw text.)
curl --request POST \
--url 'https://api.nabrah.ai/api/ext/document/text' \
--header 'X-API-Key: <your-api-key>' \
--header 'Content-Type: application/json' \
--data '{
"knowledge_base_id": "00000000-0000-4000-8000-000000000000",
"text": "string"
}'{
"id": "00000000-0000-4000-8000-000000000000",
"knowledge_base_id": "00000000-0000-4000-8000-000000000000",
"type": "file",
"status": "unknown",
"title": "string",
"summary": "string",
"filename": "string",
"created_at": "2026-01-15T12:00:00.000Z",
"updated_at": "2026-01-15T12:00:00.000Z"
}X-API-KeystringheaderrequiredYour workspace API key. Create one in the dashboard under API keys.
{
"knowledge_base_id": "00000000-0000-4000-8000-000000000000",
"text": "string"
}Successful Response
application/json
Validation Error
application/json