Skip to main content
Indexing API/Debugging

Datasource Document

Gives various information that would help in debugging issues related to a particular document. For example, it gives information about the document's upload and indexing status, the document's permissions, etc.

Sample Request

curl -X POST https://customer-be.glean.com/api/index/v1/debug/{datasource}/document
-H 'Authorization : Bearer <token>' \
-H 'Content-Type : application/json' \
-d '{
"objectType": "Article",
"docId": "art123"
}'

Sample Response

{
"status": {
"uploadStatus": "UPLOADED",
"lastUploadedAt": "2024-02-08T12:00:00.000Z",
"indexingStatus": "INDEXED",
"lastIndexedAt": "2024-02-08T12:05:00.000Z",
"permissionIdentityStatus": "UPLOADED"
},
"uploadedPermissions": {
"allowAnonymousAccess": false,
"allowedUsers": [
{
"email": "user1@example.com"
},
{
"email": "user2@example.com"
}
],
"allowedGroups": [
"group1"
]
}
}