Orq MCP is live: Use natural language to interrogate traces, spot regressions, and experiment your way to optimal AI configurations. Available in Claude Desktop, Claude Code, Cursor, and more. Start now →
Get the total number of chunks in a datasource. Returns the count of indexed text segments available for retrieval in your knowledge base.
curl --request POST \
--url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks/count \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "",
"enabled": true,
"status": "<string>"
}
'{
"count": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.orq.ai/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The unique identifier of the knowledge base
The unique identifier of the datasource.
Chunks count
Was this page helpful?
curl --request POST \
--url https://api.orq.ai/v2/knowledge/{knowledge_id}/datasources/{datasource_id}/chunks/count \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"q": "",
"enabled": true,
"status": "<string>"
}
'{
"count": 123
}