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>'
  -d '{
        "datasource": "gleantest",
        "objectType": "Article"
      }'

Sample Response

{
  "count": 15
}