Get the count of documents in a datasource, optionally filtered by object type.
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" }'
{ "count": 15 }
Was this page helpful?