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.
Headers
-
X-API-Version
string Default value is
2025-03-25
.
Query parameters
-
status
string 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
. -
type
string 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
. -
page
string 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
. -
limit
string 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..."
}
]
}
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
{
"success": true,
"error": "string",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab"
}
{
"success": true,
"error": "string",
"fingerprint": "14fceadd84e74ec499afe9b0f7952d6b",
"request_id": "xyz1::reg1:reg1::ab3c4-1234567890123-0123456789ab",
"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"
}
}