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 knowledge base entries by their processing status. Use this to find entries in specific states like READY or those with errors.
Values are
AWAITING_UPLOAD
,SUPABASE_ONLY
,PROCESSING
,READY
,SYNC_ERROR
,ERR_FILE_PROCESSING
,ERR_TEXT_PROCESSING
,ERR_TEXT_TO_VECTOR
, orBLANK
. -
Filter knowledge base entries by their content type. Use this to find specific types of training data like text or file uploads.
Values are
file_upload
,url
,training_history
, ortext
. -
Page number for pagination. Use this to navigate through large result sets.
Format should match the following pattern:
^\d+$
. Default value is1
. -
Maximum number of 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"
}
}