cURL
curl --request POST \ --url https://api.example.com/v1/knowledge-base/text \ --header 'Content-Type: application/json' \ --data ' { "text": "<string>", "name": "<string>" } '
{ "id": "<string>", "name": "<string>" }
Create a knowledge base document from raw text input.
Request body:
Returns:
The endpoint will:
Error cases:
API key for authentication
Model for creating a knowledge base document from text
Text content for the document
1
Optional document name (auto-generated if not provided)
500
Successful Response
Response after creating a knowledge base document