Skip to content

Destinations

Where events are delivered. Authentication, errors and limits are on the overview.

List destinations

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

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID

Responses

StatusDescriptionBody
200Oldest firstDestination[]
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

Create destination

POST /api/v1/projects/{project_id}/environments/{environment_id}/destinations

A new HTTP destination, or the caller's CLI destination.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID

Request body

JSON, CreateDestination.

FieldTypeDescription
name requiredstring
settingsDestinationSettings | nullThe gateway's defaults when left out.
typeDestinationType | nullhttp when left out. A cli destination belongs to the caller (for an API key, the person who made it) and has no URL.
urlstring | nullFor an http destination: a public http or https URL.

Responses

StatusDescriptionBody
201Created, with its signing secretCreatedDestination
401No API key, or it is invalid or revokedProblem
404No such environment, or no accessProblem
409The caller already has a CLI destination hereProblem
422Invalid name, URL or settingsProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Delete destination

DELETE /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}

Deletes it with its connections. Its past deliveries stay with their events until retention removes them.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Responses

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

Get destination

GET /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Responses

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

Update destination

PATCH /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}

Rename, move, pause and resume it, or change its settings.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Request body

JSON, UpdateDestination.

FieldTypeDescription
namestring | null
pausedboolean | null
settingsDestinationSettings | null
urlstring | null

Responses

StatusDescriptionBody
200UpdatedDestination
401No API key, or it is invalid or revokedProblem
404No such destination, or no accessProblem
422Invalid name, URL or settings, or an http:// URL for a destination with a credentialProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Check destination

POST /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/check

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Request body

JSON, CheckDestination.

FieldTypeDescription
methodCheckRequest

Responses

StatusDescriptionBody
200How far the request got, step by stepDestinationCheck
401No API key, or it is invalid or revokedProblem
404No such destination, or no accessProblem
422Not an HTTP destinationProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Get destination circuit

GET /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/circuit

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Responses

StatusDescriptionBody
200The circuit; closed for a destination not delivered to latelyCircuit
401No API key, or it is invalid or revokedProblem
404No such destination, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Delete destination credential

DELETE /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/credential

Deliveries go without it from now on.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Responses

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

Set destination credential

PUT /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/credential

Sets the credential sent with every delivery, replacing any it had.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Request body

JSON, SetCredential.

Responses

StatusDescriptionBody
200Stored; its secret is not returnedDestinationCredential
401No API key, or it is invalid or revokedProblem
404No such destination, or no accessProblem
422Invalid credential, or the destination is not https://Problem
429Over the key's rate limit; Retry-After says when to try againProblem
503The API has no MASTER_KEYS to seal it withProblem

Get destination health

GET /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/health

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID
afterquerystring (date-time)From this time (attempts started at or after), default a day before before.
beforequerystring (date-time)Up to this time, default now. At most 31 days after after.

Responses

StatusDescriptionBody
200Its failures in the range, and its last success and failureDestinationHealth
401No API key, or it is invalid or revokedProblem
404No such destination, or no accessProblem
422Invalid rangeProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Get destination listeners

GET /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/listeners

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Responses

StatusDescriptionBody
200How many ricochet listen sessions are connectedListeners
401No API key, or it is invalid or revokedProblem
404No such destination, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

List destination secrets

GET /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/secrets

Newest first, expired ones too.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Responses

StatusDescriptionBody
200Newest first, without their valuesSigningSecret[]
401No API key, or it is invalid or revokedProblem
404No such destination, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem

Rotate destination secret

POST /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/secrets

Makes the next secret and shows it once. The one before keeps signing for overlap_seconds; older ones stop now.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Request body

JSON, RotateSigningSecret.

FieldTypeDescription
overlap_secondsinteger (int32) | nullHow long the previous secret keeps signing, 0 to 2592000 seconds; a day when left out.

Responses

StatusDescriptionBody
201Made; its value is shown only nowNewSigningSecret
401No API key, or it is invalid or revokedProblem
404No such destination, or no accessProblem
422Invalid overlapProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The API has no MASTER_KEYS to seal it withProblem

Delete destination secret

DELETE /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/secrets/{secret_id}

It stops signing now, e.g. to end an overlap early. Without any secret, deliveries go out unsigned.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID
secret_id requiredpathstringsec_ ID

Responses

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

Stop failure simulation

DELETE /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/simulation

The next deliveries reach the destination again.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Responses

StatusDescriptionBody
204Stopped (or there was none)
401No API key, or it is invalid or revokedProblem
403A production environmentProblem
404No such destination, or no accessProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Get failure simulation

GET /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/simulation

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Responses

StatusDescriptionBody
200The simulation in progress, if anySimulationState
401No API key, or it is invalid or revokedProblem
403A production environmentProblem
404No such destination, or no accessProblem
422Not an HTTP destinationProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

Simulate failures

PUT /api/v1/projects/{project_id}/environments/{environment_id}/destinations/{destination_id}/simulation

The next count deliveries fail without reaching the destination. Replaces any earlier one.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_id requiredpathstringdst_ ID

Request body

JSON, SimulateFailures.

FieldTypeDescription
countinteger (int32) | nullHow many of the next deliveries: 1 to 100, default 1.
mode requiredSimulationMode | nullRequired; checked after access, so another tenant's ID is a 404.
status_codeinteger (int32) | nullWith status: 200 to 599.

Responses

StatusDescriptionBody
200Set: each simulated attempt is recorded with simulated in its errorSimulationState
401No API key, or it is invalid or revokedProblem
403A production environmentProblem
404No such destination, or no accessProblem
422An invalid status or count, or not an HTTP destinationProblem
429Over the key's rate limit; Retry-After says when to try againProblem
503The gateway is not answeringProblem

List held deliveries

GET /api/v1/projects/{project_id}/environments/{environment_id}/held-deliveries

Deliveries a paused destination or connection holds, counted by destination and connection.

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
destination_idquerystringOnly this destination's (dst_ ID).

Responses

StatusDescriptionBody
200The held deliveries, oldest firstHeldDeliveriesList
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
503The gateway is not answeringProblem