Skip to main content

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

{
"documentStatus": {
"uploadStatus": "UPLOADED",
"indexStatus": "INDEXED",
"uploadTime": "2024-02-08T12:00:00.000Z",
"indexTime": "2024-02-08T12:05:00.000Z"
},
"permissions": {
"allowAnonymousAccess": false,
"allowedUsers": [
{
"email": "user1@example.com"
},
{
"email": "user2@example.com"
}
],
"allowedGroups": [
{
"id": "group1"
}
],
"deniedUsers": [],
"deniedGroups": []
}
}