curl --request POST \
  --url https://{domain}-be.glean.com/api/index/v1/getdocumentstatus \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "datasource": "<string>",
  "objectType": "<string>",
  "docId": "<string>"
}'
{
  "uploadStatus": "<string>",
  "lastUploadedAt": 123,
  "indexingStatus": "<string>",
  "lastIndexedAt": 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 for /getdocumentstatus API call

datasource
string
required

Datasource to get fetch document status for

objectType
string
required

Object type of the document to get the status for

docId
string
required

Glean Document ID within the datasource to get the status for.

Response

200
application/json
OK

Describes the response body of the /getdocumentstatus API call

uploadStatus
string

Upload status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN

lastUploadedAt
integer

Time of last successful upload, in epoch seconds

indexingStatus
string

Indexing status, enum of NOT_INDEXED, INDEXED, STATUS_UNKNOWN

lastIndexedAt
integer

Time of last successful indexing, in epoch seconds