Triggers
Search events for a trigger
Changed onSearch recent content events an existing trigger matches. Read-only — no webhook delivery is made. Covers the last seven days.
post/api/triggers/{trigger_id}/events/search
Request
- Base URL: https://instance-name-be.glean.com
- URL: https://instance-name-be.glean.com/api/triggers/{trigger_id}/events/search
- Auth: HTTP bearer
Path parameters
trigger_idstring required
ID of the trigger whose events to search.
Request body
Example request
{
"page_size": 10
}Response
Successful response.
Example response
{
"results": [
{
"event_type": "DOCUMENT_CHANGE",
"datasource": "GITHUB",
"reason": "REVIEW_REQUESTED",
"doc_type": "pull"
}
]
}Changes
- warning
added the new
WEBHOOK_CREATEDenum value to the//response property for the response status
- warning
- info
endpoint added
- info