POST
/
getdocumentcount
curl --request POST \
  --url https://{domain}-be.glean.com/api/index/v1/getdocumentcount \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "datasource": "<string>"
}'
{
  "documentCount": 123
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Describes the request body of the /getdocumentcount API call

datasource
string
required

Datasource name for which document count is needed.

Response

200
application/json
OK

Describes the response body of the /getdocumentcount API call

documentCount
integer

Number of documents corresponding to the specified custom datasource.