Skip to main content

Document Count

Get the count of documents in a datasource, optionally filtered by object type.

Sample Request

curl -X POST https://customer-be.glean.com/api/index/v1/getdocumentcount
-H 'Authorization : Bearer <token>'
-H 'Content-Type : application/json' \
-d '{
"datasource": "gleantest",
"objectType": "Article"
}'

Sample Response

{
"count": 15
}