Skip to content

List the events of a set of triggers

GET
/events
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.

owner
string

Scope: personal or tenant:{id}

scope
string

Scope: all

group_id
string

Scope: group ID (UUID)

trigger_ids
string

Scope: comma-separated trigger IDs (50 max)

from
string

Start (default: now-1h). Supports relative time: now-1h, now-24h

to
string

End (default: now). Supports relative time

filter
string

JSON filter on metadata

sort
string

Sort order: asc or desc (default: desc)

limit
integer

Max number of events (default: 100, max: 200)

cursor
string

Opaque pagination cursor: next_cursor value of the previous page

Page of events

Media typeapplication/json
object
events
required

Events carry their trigger_id, in global (time, id) order.

Array<object>
object
metadata
required
object
time
required
string format: date-time
trigger_id
required
string format: uuid
has_more
required
boolean
next_cursor

NextCursor is opaque: pass it back as the cursor query parameter.

string
skipped_trigger_ids
required

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.

Array<string>
truncated
required

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.

boolean

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

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Unauthorized

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Owner or group not found

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Too many concurrent listings

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Erreur interne

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}

Timeout

Media typeapplication/json
object
error
required
string
message
string

Example

{
"error": "invalid_request",
"message": "Invalid request body"
}