Skip to main content
POST
https://api.trillet.ai
/
v1
/
api
/
knowledgebase
/
{id}
/
text
Add Text to Knowledge Base
curl --request POST \
  --url https://api.trillet.ai/v1/api/knowledgebase/{id}/text \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --header 'x-workspace-id: <x-workspace-id>' \
  --data '
{
  "text": "<string>",
  "name": "<string>"
}
'
{
  "success": true
}

Headers

x-api-key
string
required
API key used for authenticating requests to the API.
x-workspace-id
string
required
Workspace identifier for the API.

Path Parameters

id
string
required
The unique identifier of the knowledge base.

Request Body

text
string
required
The plain text content to add to the knowledge base.
name
string
Optional name for the text entry.

Response Fields

success
boolean
Whether the text was added successfully.
{
  "success": true
}