POST
/
api
/
index
/
v1
/
getdocumentcount
curl --request POST \
  --url https://{instance}-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

Response

200
application/json

OK

Describes the response body of the /getdocumentcount API call