Destinations are the endpoints where events are sent. Each destination is associated with a tenant and can be configured to receive specific event topics.
{ "id": "des_12345", // Control plane generated ID or user provided ID "type": "webhooks", // Type of the destination "topics": ["user.created", "user.updated"], // Topics of events this destination is eligible for "config": { // Destination type specific configuration. Schema of depends on type "url": "https://example.com/webhooks/user" }, "credentials": { // Destination type specific credentials. AES encrypted. Schema depends on type "secret": "some***********" }, "disabled_at": null, // null or ISO date if disabled "created_at": "2024-01-01T00:00:00Z" // Date the destination was created }json
The topics
array can contain either a list of topics or a wildcard *
implying that all topics are supported. If you do not wish to implement topics for your application, you set all destination topics to *
.
By default all destination credentials
are obfuscated and the values cannot be read. This does not apply to the webhook
type destination secret and each destination can expose their own obfuscation logic.
List Destinations
Return a list of the destinations for the tenant. The endpoint is not paged.
path Parameters
tenant_id
string · requiredThe ID of the tenant. Required when using AdminApiKey authentication.
query Parameters
type
Filter destinations by type(s).
topics
Filter destinations by supported topic(s).
Responses
id
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:webhooktopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:aws_sqstopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:rabbitmqtopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · required
Create Destination
Creates a new destination for the tenant. The request body structure depends on the type
.
path Parameters
tenant_id
string · requiredThe ID of the tenant. Required when using AdminApiKey authentication.
Request Body
type
string · enum · requiredType of the destination. Must be 'webhook'.
Enum values:webhooktopics
required"*" or an array of enabled topics.
config
object · required
id
stringOptional user-provided ID. A UUID will be generated if empty.
credentials
object
type
string · enum · requiredType of the destination. Must be 'aws_sqs'.
Enum values:aws_sqstopics
required"*" or an array of enabled topics.
config
object · requiredcredentials
object · required
id
stringOptional user-provided ID. A UUID will be generated if empty.
type
string · enum · requiredType of the destination. Must be 'rabbitmq'.
Enum values:rabbitmqtopics
required"*" or an array of enabled topics.
config
object · requiredcredentials
object · required
id
stringOptional user-provided ID. A UUID will be generated if empty.
Responses
id
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:webhooktopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:aws_sqstopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:rabbitmqtopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · required
Get Destination
Retrieves details for a specific destination.
path Parameters
tenant_id
string · requiredThe ID of the tenant. Required when using AdminApiKey authentication.
destination_id
string · requiredThe ID of the destination.
Responses
id
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:webhooktopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:aws_sqstopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:rabbitmqtopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · required
Delete Destination
Update Destination
Updates the configuration of an existing destination. The request body structure depends on the destination's type
. Type itself cannot be updated. May return an OAuth redirect URL for certain types.
path Parameters
tenant_id
string · requiredThe ID of the tenant. Required when using AdminApiKey authentication.
destination_id
string · requiredThe ID of the destination.
Request Body
topics
"*" or an array of enabled topics.
config
objectcredentials
object
topics
"*" or an array of enabled topics.
config
objectcredentials
object
topics
"*" or an array of enabled topics.
config
objectcredentials
object
Responses
id
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:webhooktopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:aws_sqstopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:rabbitmqtopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredredirect_url
string · urlRedirect URL for OAuth flow if applicable during destination update.
Enable Destination
Enables a previously disabled destination.
path Parameters
tenant_id
string · requiredThe ID of the tenant. Required when using AdminApiKey authentication.
destination_id
string · requiredThe ID of the destination.
Responses
id
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:webhooktopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:aws_sqstopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:rabbitmqtopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · required
Disable Destination
Disables a previously enabled destination.
path Parameters
tenant_id
string · requiredThe ID of the tenant. Required when using AdminApiKey authentication.
destination_id
string · requiredThe ID of the destination.
Responses
id
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:webhooktopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:aws_sqstopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · requiredid
string · requiredControl plane generated ID or user provided ID for the destination.
type
string · enum · requiredType of the destination.
Enum values:rabbitmqtopics
required"*" or an array of enabled topics.
disabled_at
string · date-time · requiredISO Date when the destination was disabled, or null if enabled.
created_at
string · date-time · requiredISO Date when the destination was created.
config
object · requiredcredentials
object · required