List the events of a set of triggers
const url = 'https://localhost:3000/api/v1/events';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:3000/api/v1/events \ --header 'Authorization: <Authorization>'Returns a page of events from several triggers, in a global order (time, id). Exactly one scope parameter: owner (personal or tenant:{id}, same triggers as GET /triggers?owner=, without triggers shared through access), scope=all (personal, organizations and shared triggers), group_id, or trigger_ids (50 max). No scope parameter, or several: 400. Triggers the caller cannot read are ignored; trigger_ids returns skipped_trigger_ids (nonexistent and forbidden cannot be told apart). An inaccessible owner or group: 404. An API key must carry trigger:stats on every trigger, and tenant:read:{id} for an organization’s triggers. Window bounded to 30 days (an older from is brought back to to - 30 days). Beyond 10000 triggers (scope=all) or 500 (other scopes) the response carries truncated=true and covers the oldest triggers, stably from one call to the next. Public triggers of another owner, read only through their public visibility, are returned without the server-generated metadata keys (_ prefix), as for an anonymous reader; a filter on a _ key is then rejected (400) for the whole call as soon as the scope contains one. With a cursor, the start of the window (asc) or its end (desc) is the cursor: a relative from/to recomputed on each page does not lose any event.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Scope: personal or tenant:{id}
Scope: all
Scope: group ID (UUID)
Scope: comma-separated trigger IDs (50 max)
Start (default: now-1h). Supports relative time: now-1h, now-24h
End (default: now). Supports relative time
JSON filter on metadata
Sort order: asc or desc (default: desc)
Max number of events (default: 100, max: 200)
Opaque pagination cursor: next_cursor value of the previous page
Responses
Section titled “Responses”Page of events
object
Events carry their trigger_id, in global (time, id) order.
object
object
NextCursor is opaque: pass it back as the cursor query parameter.
SkippedTriggerIDs lists the requested trigger_ids that do not exist or that the caller may not read (the two cases are not told apart). Empty for the other scopes.
Truncated is true when the scope holds more readable triggers than the cap (10000 for scope=all, 500 otherwise): only the oldest ones are read.
Example
{ "events": [ { "time": "2024-01-15T10:30:00Z", "trigger_id": "550e8400-e29b-41d4-a716-446655440000" } ], "has_more": true, "next_cursor": "2024-01-15T10:29:00Z|48213", "skipped_trigger_ids": [ "550e8400-e29b-41d4-a716-446655440000" ], "truncated": false}Invalid request
object
Example
{ "error": "invalid_request", "message": "Invalid request body"}Unauthorized
object
Example
{ "error": "invalid_request", "message": "Invalid request body"}Owner or group not found
object
Example
{ "error": "invalid_request", "message": "Invalid request body"}Too many concurrent listings
object
Example
{ "error": "invalid_request", "message": "Invalid request body"}Erreur interne
object
Example
{ "error": "invalid_request", "message": "Invalid request body"}Timeout
object
Example
{ "error": "invalid_request", "message": "Invalid request body"}