Skip to main content
POST
/
v2
/
knowledge
/
{knowledge_id}
/
datasources
/
{datasource_id}
/
chunks
/
count
Get chunks total count
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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

knowledge_id
string
required

The unique identifier of the knowledge base

datasource_id
string
required

The unique identifier of the datasource.

Body

application/json
q
string
default:""

Search query to find chunks by text content

enabled
boolean

Filter chunks by enabled status

status
string

Filter chunks by processing status

Response

200 - application/json

Chunks count

count
number
required