Skip to content

Events

Requests the gateway stored. Authentication, errors and limits are on the overview.

Revoke event share

DELETE /api/v1/projects/{project_id}/environments/{environment_id}/event-shares/{share_id}

The link stops working at once.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
share_id requiredpathstringshr_ ID

Responses

StatusDescriptionBody
204Revoked
401No API key, or it is invalid or revokedProblem
404No such link, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem

List events

GET /api/v1/projects/{project_id}/environments/{environment_id}/events

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
source_idquerystringOnly this source's events (src_ ID).
statusquerystringreceived, pending, delivered or failed.
event_typequerystringOnly events of this type, exactly.
verificationquerystringverified, not_configured or failed.
afterquerystring (date-time)Received at or after this time.
beforequerystring (date-time)Received before this time.
cursorquerystringFrom a previous page's next_cursor.
had_failed_attemptquerybooleantrue: only events with a failed attempt on an original delivery (no response, or one that was not a 2xx), even when a retry then succeeded.
error_kindquerystringOnly events with a failed attempt of this kind on an original delivery: one of the kinds of AttemptError.
destination_idquerystringOnly events with an original delivery to this destination (dst_ ID). With had_failed_attempt or error_kind, the failed attempt must be one of that delivery's.
searchquerystringEvents found by an ID or a value (P4-09): an evt_ or dlv_ ID, a request ID, the provider's event ID, or the value of one of the source's search fields, exactly.
fieldquerystringWith search, only this search field's value (body.data.customer).
limitqueryinteger (int64)Page size: 1 to 100, default 50.

Responses

StatusDescriptionBody
200One page, newest firstEventPage
401No API key, or it is invalid or revokedProblem
404No such environment, or no accessProblem
422Invalid filter or cursorProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Export events

GET /api/v1/projects/{project_id}/environments/{environment_id}/events/export

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
formatquerystringjsonl (default) or csv.
columnsquerystringFor CSV, extra columns after the event's own, comma separated: body.<key>... (an array item by its number, as in body.items.0.id), body or headers.<name>. At most 50.
source_idquerystringOnly this source's events (src_ ID).
statusquerystringreceived, pending, delivered or failed.
event_typequerystringOnly events of this type, exactly.
verificationquerystringverified, not_configured or failed.
afterquerystring (date-time)Received at or after this time.
beforequerystring (date-time)Received before this time.
had_failed_attemptquerybooleanAs in the events list.
error_kindquerystringAs in the events list.
destination_idquerystringAs in the events list (dst_ ID).
searchquerystringAs in the events list.
fieldquerystringAs in the events list.

Responses

StatusDescriptionBody
200Every matching event, newest first, as a download. JSON Lines: one event per line, its summary with headers, body and body_encoding (json, text or base64). CSV: the event's own columns, then the chosen ones; a cell that a spreadsheet would read as a formula starts with '
401No API key, or it is invalid or revokedProblem
404No such environment, or no accessProblem
422Invalid filter, format or columnProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Get event

GET /api/v1/projects/{project_id}/environments/{environment_id}/events/{event_id}

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
event_id requiredpathstringevt_ ID

Responses

StatusDescriptionBody
200The event, its request and its deliveriesEvent
401No API key, or it is invalid or revokedProblem
404No such event, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Release event

POST /api/v1/projects/{project_id}/environments/{environment_id}/events/{event_id}/release

Routes a quarantined event to its connections as if it had passed verification. It keeps its verification result.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
event_id requiredpathstringevt_ ID

Responses

StatusDescriptionBody
200Released: its deliveries are queuedReleased
401No API key, or it is invalid or revokedProblem
404No such event, or no accessProblem
409The event is not quarantinedProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Resend event

POST /api/v1/projects/{project_id}/environments/{environment_id}/events/{event_id}/resend

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
event_id requiredpathstringevt_ ID of the original

Request body

JSON, SendTestEvent.

FieldTypeDescription
body requiredstringThe raw body, as the provider would send it; at most 60,000 bytes.
headersstring[][] | null[name, value] pairs, in order; at most 100. Ricochet adds the signature unless sign is false.
methodstring | nullOne the source accepts. Default POST.
signboolean | nullSign it with the source's newest secret, as its verification method expects. Default true; false sends it exactly as given.

Responses

StatusDescriptionBody
201The copy, stored and routed unless it was heldTestEvent
401No API key, or it is invalid or revokedProblem
404No such event, or no accessProblem
409The event's source no longer existsProblem
422An invalid request, a method the source refuses, or nothing to sign withProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

List event shares

GET /api/v1/projects/{project_id}/environments/{environment_id}/events/{event_id}/shares

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
event_id requiredpathstringevt_ ID

Responses

StatusDescriptionBody
200The links that still workShareList
401No API key, or it is invalid or revokedProblem
404No such environment, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Share event

POST /api/v1/projects/{project_id}/environments/{environment_id}/events/{event_id}/shares

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
event_id requiredpathstringevt_ ID

Request body

JSON, CreateShare.

FieldTypeDescription
expires_in_hoursinteger (int32) | nullHow long the link works: 1 to 720 hours; 168 (a week) when left out.

Responses

StatusDescriptionBody
201The link, shown onceNewShare
401No API key, or it is invalid or revokedProblem
404No such event, or no accessProblem
422An expiry out of rangeProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Check event signature

POST /api/v1/projects/{project_id}/environments/{environment_id}/events/{event_id}/signature-check

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
event_id requiredpathstringevt_ ID

Request body

JSON, CheckSignature.

FieldTypeDescription
secretstring | nullA secret to check with, as the provider shows it; omitted, the source's current secrets.

Responses

StatusDescriptionBody
200The result and its steps, under the source's current settings, as of when the event arrivedSignatureCheck
401No API key, or it is invalid or revokedProblem
404No such event, or no accessProblem
409The source is gone, or has no current secretProblem
422An empty or too long secretProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

List issues

GET /api/v1/projects/{project_id}/environments/{environment_id}/issues

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
afterquerystring (date-time)Events received at or after, default 7 days before before.
beforequerystring (date-time)Events received before, default now. At most 31 days after after.

Responses

StatusDescriptionBody
200Failed deliveries by destination and causeIssueList
401No API key, or it is invalid or revokedProblem
404No such environment, or no accessProblem
422Invalid rangeProblem
429Over the key's rate limit; Retry-After says when to try againProblem