List events
/ eventsReturn the environment's events of the last 30 days as thin events, {object, data, has_more, url}, newest created first.
Each item is the event a thin endpoint is sent, byte for byte.
It is rendered once, when the event is created, and this list answers those stored bytes; it carries no copy of the object, so a reader fetches
related_object.urlfor it, as a thin endpoint's receiver does. Every event the environment produced is here, whatever any endpoint selected inenabled_events, so an integrator recovers what its endpoint missed during an outage by listing the outage window withcreated[gte]andcreated[lte]and processing each event by itsid, which is thewebhook-idit was delivered under. An event older than 30 days is not listed; legacy full bodies are never served here.The filters are named.
typeandrelated_object_idmatch exactly, andcreated[gte],created[gt],created[lte]andcreated[lt]bound the event'screated; together they are ANDed, and each page lists under the filters its own request sends, so a later page sends them again besidestarting_afterorending_before. Any other query parameter answers400parameter_unknownnaming it, and a value outside its schema, a badlimitor astarting_afterorending_beforenaming no object of this list answers422parameter_invalidnaming it.Who may.
A person lists the environment
X-Stridge-Environmentnames. A secret key lists its own environment and sends noX-Stridge-Environment, so an integration's own server catches up without a person's session; it needs theevent.readscope, and a key without it answers403permission_deniedwhose message namesevent.read.
Parameters
Query
- limitinteger <int32>optionaldefault 20
The page size. A value that is not an integer from 1 to the maximum answers
422parameter_invalidnaminglimit; it is never clamped. - starting_afterstringoptional
A cursor: the id of an object of this list, usually the last one of the page just read. The page answered holds the objects that come right after it in the list's order. The object need not match this request's filters; its place in the order is what counts.
Show full descriptionShow less
An id that names no object of this list in this environment answers
422parameter_invalidnamingstarting_after. It cannot be sent withending_before. - ending_beforestringoptional
A cursor: the id of an object of this list, usually the first one of the page just read. The page answered holds the objects that come right before it, still in the list's order, and
has_moresays whether there are more before them.Show full descriptionShow less
An id that names no object of this list in this environment answers
422parameter_invalidnamingending_before, as does sending it together withstarting_after. - typestringoptional
Only events of this type, one the root
webhooks:section names. - related_object_idstringoptional
Only events about this object, the
related_object.idthey carry. - created[gte]string <date-time>optional
Only objects created at or after this instant (RFC 3339).
- created[gt]string <date-time>optional
Only objects created after this instant (RFC 3339).
- created[lte]string <date-time>optional
Only objects created at or before this instant (RFC 3339).
- created[lt]string <date-time>optional
Only objects created before this instant (RFC 3339).
Headers
- X-Stridge-Environmentstring <uuid>optional
Which environment the request acts inside, on an operation a session and an API key both call. Learn more
Show full descriptionShow less
It is required under a person's session, exactly as
EnvironmentHeaderdescribes: a session request that omits it answers400withenvironment required, and one naming an environment the caller holds no membership of answers404.An API key names its own environment, so a request made with one omits this header. A key request that sends it answers
400withenvironment header not accepted, whatever it names, rather than having the header ignored: a header that is silently ignored hides the integration bug that sent it.
Responses
The page of events.
- objectstringrequiredenum list
The object's type, always
list. - idstring <uuid>required
The event's own identifier, minted once when the event is recorded. It equals the
webhook-idheader, stays the same across every attempt and resend, and is the key a receiver deduplicates on: two deliveries carrying the sameidare the same event, to act on once. - objectstringrequired
What this object is, always
event. - typestringrequired
What happened: one of the event types the root
webhooks:section names, such aspayout.confirmed. A receiver meeting a type it does not know acknowledges it with a2xxand ignores it, because types are only ever added. - createdstring <date-time>required
When the transition the event names happened, which is the object's time and not the time Stridge consumed or delivered it. RFC3339 UTC,
Zsuffixed. Delivery order is not guaranteed; a receiver orders one object's events bycreated. - livemodebooleanrequired
truewhen the event happened in aliveenvironment andfalsein a sandbox. It matches the environment of the endpoint it was delivered to and of any credential that reads it back. The one object the event is about: enough to fetch it, and nothing of its state.
- idstring <uuid>required
- has_morebooleanrequired
Whether the list holds more objects past this page in the direction it was read: after its last object, or before its first for a page read with
ending_before. - urlstringrequired
The path the list is read at.
Errors
The error.code values this operation can return. Each one links to its entry in the error catalogue, which explains the cause and the fix.
- 400environment_requiredEnvironment required
- 400header_invalidInvalid header
- 400422parameter_invalidInvalid parameter
- 400parameter_unknownUnknown parameter
- 401api_key_not_acceptedAPI key not accepted
- 401authentication_requiredAuthentication required
- 401publishable_key_not_acceptedPublishable key not accepted
- 401token_invalidInvalid or expired token
- 403membership_suspendedMembership suspended
- 403permission_deniedPermission denied
- 404environment_not_foundEnvironment not found
- 409environment_provisioningEnvironment provisioning
- 409environment_resettingEnvironment resetting
- 429rate_limitedToo many requests