Skip to main content
POST
/
v1
/
knowledge-base
/
text
Create Knowledge Base From Text Endpoint
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>"
}

Headers

x-api-key
string | null

API key for authentication

Body

application/json

Model for creating a knowledge base document from text

text
string
required

Text content for the document

Minimum string length: 1
name
string | null

Optional document name (auto-generated if not provided)

Maximum string length: 500

Response

Successful Response

Response after creating a knowledge base document

id
string
required
name
string
required