Create Destination

Creates an event destination. Returns destination details and a signing secret for verifying event payloads.

POST/destinations

This endpoint creates an event destination to receive Stedi events at a specific URL. You can create up to 16 event destinations per Stedi account.

  1. Call this endpoint with the destination name, event types you want to receive, and the destination URL where you want to receive events.
  2. Stedi creates the destination.
  3. The endpoint returns the destination details, including a signing secret that you can use to verify the authenticity of event payloads. Store the signing secret securely.

You can review and manage all destinations you create through this endpoint on the Event Destinations page.

Authorization
RequiredHeader

A Stedi API Key for authentication. Supports both test and production API keys.

Headers

Idempotency-Key
StringLength: 1 - 255

A unique string to identify this request to the server. If not set, Stedi generates one automatically.

The key can be up to 255 characters. You can safely retry requests with the same idempotency key within 24 hours of making the first request. This prevents duplicate operations due to network errors or other intermittent failures. Learn more.

Body

application/json
concurrencyLimit
NumberRange: ≥ 1

Maximum concurrent deliveries for this destination. If not set, Stedi applies your account default (typically 5). Stedi rejects requests exceeding your account maximum (typically 20) with a 400 error. Contact Stedi to change your limits.

description
StringMax length: 1024

A description of the destination's purpose, such as "Receives transaction enrollment task notifications."

destinationUrl
StringRequiredRegex pattern: ^https://.+$

The URL where you want Stedi to deliver payloads through HTTP POST.

eventTypes
Array of StringsRequiredMin items: 1

The event types you want Stedi to send to this destination. Visit event types for a complete list.

name
StringRequiredLength: 1 - 255

A human-readable name for the destination. Stedi displays this name in the portal.

status
String

The destination's status upon creation. Default is ENABLED.

Possible values
ENABLED
DISABLED

Response

application/json
concurrencyLimit
NumberRange: ≥ 1

The maximum number of concurrent deliveries for this destination. Contact Stedi to change your account limits.

createdAt
StringRequiredFormat: date-time

Creation timestamp for this destination.

description
StringRequiredMax length: 1024

A description of the destination's purpose, such as "Receives transaction enrollment task notifications."

destinationUrl
StringRequiredRegex pattern: ^https://.+$

The URL where Stedi delivers payloads through HTTP POST.

eventTypes
Array of StringsRequiredMin items: 1

The event types Stedi sends to this destination. Visit event types for a complete list.

id
StringRequiredRegex pattern: ^[a-z]{3,5}_[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

The unique identifier for the destination.

lastDeliveryTime
StringFormat: date-time

The timestamp for Stedi's most recent delivery attempt to this destination. Absent when Stedi hasn't yet attempted a delivery.

name
StringRequiredLength: 1 - 255

A human-readable name for the destination. Stedi displays this name in the portal.

signingSecret
StringRequiredRegex pattern: ^whsec_[A-Za-z0-9+/=]+$Format: passwordLength: 30 - 255

The signing secret for verifying event payloads. Store it securely. Visit verify event signatures for details.

status
StringRequired

The destination's current status. Stedi only sends event payloads to ENABLED destinations.

Possible values
ENABLED
DISABLED
updatedAt
StringRequiredFormat: date-time

Last update timestamp for this destination.