v72

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-0744101120.8 KB
Troubleshooting

Beta: Get document lifecycle events

Retrieves lifecycle events for a specific document including upload time, index times and deletions. Rate limited to 1 request per minute per datasource. Currently in beta, might undergo breaking changes without prior notice.

post/api/index/v1/debug/{datasource}/document/events

Path parameters

datasourcestring required

The datasource to which the document belongs

Request body

objectTypestring required

Object type of the document to get lifecycle events for.

docIdstring required

Glean Document ID within the datasource to get lifecycle events for.

startDatestring

The start date for events to be fetched. Cannot be more than 30 days (default 7 days) in the past.

maxEventsinteger

Max number of events to be fetched. Cannot be more than 100 (default 20).

Example request

{
  "objectType": "Article",
  "docId": "art123",
  "startDate": "2025-05-01",
  "maxEvents": 50
}

Response

OK

Example response

{
  "lifeCycleEvents": [
    {
      "event": "INDEXED",
      "timestamp": "2021-08-06T17:58:01.000Z"
    }
  ]
}