List all knowledge base entries
Beta
Returns a list of all knowledge base entries belonging to your organization. This endpoint allows you to view all your training data in one place, with optional filtering by status or type. You can use this to monitor the overall state of your knowledge base, check which entries are still processing, and identify any that might have encountered errors. The response includes detailed information about each entry including its content, status, and metadata.
Query parameters
-
Filter to show only knowledge base entries with a specific processing status (e.g., READY, PROCESSING, ERR_FILE_PROCESSING)
Values are
AWAITING_UPLOAD
,SUPABASE_ONLY
,PROCESSING
,READY
,SYNC_ERROR
,ERR_FILE_PROCESSING
,ERR_TEXT_PROCESSING
,ERR_TEXT_TO_VECTOR
, orBLANK
. -
Filter to show only knowledge base entries of a specific type (e.g., text, file_upload, url, training_history)
Values are
file_upload
,url
,training_history
, ortext
. -
The page number for paginated results (starts at 1). Use this to navigate through large result sets.
Format should match the following pattern:
^\d+$
. Default value is1
. -
The maximum number of knowledge base entries to return per page (up to 100). Use this to control result set size.
Format should match the following pattern:
^\d+$
. Default value is100
.
curl \
--request GET 'https://api.sensay.io/v1/training' \
--header "X-ORGANIZATION-SECRET: $API_KEY" \
--header "X-API-Version: 2025-03-25"
{
"success": true,
"items": [
{
"id": 12345,
"type": "text",
"title": "Company Information",
"status": "READY",
"filename": null,
"raw_text": "Our company was founded in 2020...",
"created_at": "2025-04-15T08:11:00.093761+00:00",
"updated_at": "2025-04-15T08:11:05.299349+00:00",
"description": "Basic company details and policies",
"replica_uuid": "03db5651-cb61-4bdf-9ef0-89561f7c9c53",
"processed_text": "Our company was founded in 2020..."
}
]
}
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b"
}
{
"error": "A text representation of the error",
"success": false,
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"inner_exception": {
"name": "Server overheated",
"cause": "Request too complicated",
"stack": "Error: Server overheated due to an unexpected situation\n at Object.eval (eval at <anonymous>...",
"message": "The server overheated due to an unexpected situation"
}
}