Retrieve an event
/ events/ {id}Return one event of the environment by its id, the webhook-id it was delivered under, as the thin event a thin endpoint is sent: the same stored bytes.
An event older than 30 days, one that exists nowhere and one belonging to another environment answer the same 404, so a caller cannot learn that another environment's event exists by watching which refusal it gets.
Who may.
A person reads it in the environment
X-Stridge-Environmentnames. A secret key reads it in the key's own environment and sends noX-Stridge-Environment; it needs theevent.readscope, and a key without it answers403permission_deniedwhose message namesevent.read.
Parameters
Path
- idstringrequired
The event's
id.
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 event.
- 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.
- idstringrequired
The object's identifier, as its own family addresses it.
- typestringrequired
The kind of object, in snake_case and singular, as the event type's
x-stridge-related-object-typein the rootwebhooks:section names it:payout,deposit,webhook_endpoint. - urlstringrequired
The object's
/v2path. AGETof it with a credential of the same environment answers the object as it is now, in the schema the event type'sx-stridge-related-objectnames.
- idstringrequired
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
- 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
- 404resource_missingNo such object
- 409environment_provisioningEnvironment provisioning
- 409environment_resettingEnvironment resetting
- 429rate_limitedToo many requests