List detection events
Lists each verdict a monitor recorded on a test: active when it detected the condition it watches for, inactive when the test recovered or the monitor was disabled or deleted. An active event whose deactivationReason is classifyActionChanged records a change to the monitor’s classify action, not a detection. By default it reads every test collection in your organization; pass testCollectionId to narrow to one.
The window is detectedAfter to detectedBefore, at most 30 days. detectedBefore defaults to now and detectedAfter to 30 days before it. A wider window is a 400 OUT_OF_RANGE.
An unknown monitorId or testId returns an empty page. The ‘flag as flaky’ mark is not listed here: see a test’s status history.
Authorizations
An API key, sent as Authorization: Bearer <key>. An organization admin creates one in the Trunk app under Settings → Developer → API Keys and chooses the permissions it holds. A key with none can read merge queues but change nothing in them. Permissions cover merge queues and test-result uploads, including the quarantine lookups a CI run makes before it uploads; any key can call the other Flaky Tests and Dynamic CI endpoints, including their writes.
Query Parameters
Response
A page of detection events