Create an event destination
Creates a new event destination (e.g. a webhook endpoint) to receive platform events.
Authorizations
Secret key (sk_live_...)
Body
Request body for creating a new event destination. Provide name, type, events, and exactly one type-specific configuration object whose property name matches type (for example {"type": "webhook", "webhook": {"url": "..."}}).
Display name for the event destination.
Destination type. Defaults to webhook if omitted. Send the matching configuration object under a property whose name equals this value (for example, when type is aws_sqs, include an aws_sqs object).
webhook, aws_sqs, aws_kinesis, aws_s3, aws_eventbridge, gcp_pubsub, rabbitmq, azure_servicebus, hookdeck Event types to subscribe to (for example task_run.completed, credential.verified). Use ["*"] to subscribe to all event types; * cannot be combined with specific types, and the list must not be empty.
Configuration for a webhook destination. Provide this object under the webhook property when type is webhook.
Configuration for a aws_sqs destination. Provide this object under the aws_sqs property when type is aws_sqs.
Configuration for a aws_kinesis destination. Provide this object under the aws_kinesis property when type is aws_kinesis.
Configuration for a aws_s3 destination. Provide this object under the aws_s3 property when type is aws_s3.
Configuration for a aws_eventbridge destination. Provide this object under the aws_eventbridge property when type is aws_eventbridge.
Configuration for a gcp_pubsub destination. Provide this object under the gcp_pubsub property when type is gcp_pubsub.
Configuration for a rabbitmq destination. Provide this object under the rabbitmq property when type is rabbitmq.
Configuration for a azure_servicebus destination. Provide this object under the azure_servicebus property when type is azure_servicebus.
Configuration for a hookdeck destination. Provide this object under the hookdeck property when type is hookdeck.
Response
Created
An event destination object representing an endpoint that receives platform events.
Unique identifier for the event destination, prefixed with evtd_.
Always event_destination.
Display name for the event destination.
Destination status: pending_verification, active, or inactive.
Destination type. The endpoint configuration is returned under a property whose name equals this value (for example, a webhook destination returns a webhook object).
webhook, aws_sqs, aws_kinesis, aws_s3, aws_eventbridge, gcp_pubsub, rabbitmq, azure_servicebus, hookdeck Event types this destination is subscribed to.
ISO 8601 timestamp of when the resource was created.
ISO 8601 timestamp of when the resource was last updated.
Unique identifier for the API request. Include this when contacting support.
Configuration returned for a webhook destination (credentials are never returned).
Configuration returned for a aws_sqs destination (credentials are never returned).
Configuration returned for a aws_kinesis destination (credentials are never returned).
Configuration returned for a aws_s3 destination (credentials are never returned).
Configuration returned for a aws_eventbridge destination (credentials are never returned).
Configuration returned for a gcp_pubsub destination (credentials are never returned).
Configuration returned for a rabbitmq destination (credentials are never returned).
Configuration returned for a azure_servicebus destination (credentials are never returned).
Configuration returned for a hookdeck destination (credentials are never returned).