Create Destination
Creates an event destination. Returns destination details and a signing secret for verifying event payloads.
/destinationsThis endpoint creates an event destination to receive Stedi events at a specific URL. You can create up to 16 event destinations per Stedi account.
- Call this endpoint with the destination name, event types you want to receive, and the destination URL where you want to receive events.
- Stedi creates the destination.
- 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.
A Stedi API Key for authentication. Supports both test and production API keys.
Headers
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
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.
A description of the destination's purpose, such as "Receives transaction enrollment task notifications."
^https://.+$The URL where you want Stedi to deliver payloads through HTTP POST.
The event types you want Stedi to send to this destination. Visit event types for a complete list.
A human-readable name for the destination. Stedi displays this name in the portal.
The destination's status upon creation. Default is ENABLED.
ENABLEDDISABLEDResponse
The maximum number of concurrent deliveries for this destination. Contact Stedi to change your account limits.
Creation timestamp for this destination.
A description of the destination's purpose, such as "Receives transaction enrollment task notifications."
^https://.+$The URL where Stedi delivers payloads through HTTP POST.
The event types Stedi sends to this destination. Visit event types for a complete list.
^[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.
The timestamp for Stedi's most recent delivery attempt to this destination. Absent when Stedi hasn't yet attempted a delivery.
A human-readable name for the destination. Stedi displays this name in the portal.
^whsec_[A-Za-z0-9+/=]+$Format: passwordLength: 30 - 255The signing secret for verifying event payloads. Store it securely. Visit verify event signatures for details.
The destination's current status. Stedi only sends event payloads to ENABLED destinations.
ENABLEDDISABLEDLast update timestamp for this destination.
curl --request POST \ --url "https://events.us.stedi.com/2026-02-01/destinations" \ --header "Idempotency-Key: a1b2c3d4-e5f6-7890-abcd-ef1234567890" \ --header "Authorization: <api_key>" \ --header "Content-Type: application/json" \ --data '{ "destinationUrl": "https://example.com/webhooks", "eventTypes": [ "enrollment.activated" ], "name": "My Destination", "status": "ENABLED" }'{
"createdAt": "2026-02-01T12:00:00Z",
"description": "Receives enrollment notifications",
"destinationUrl": "https://example.com/webhooks",
"eventTypes": [
"enrollment.activated"
],
"id": "dst_550e8400-e29b-41d4-a716-446655440000",
"name": "My Destination",
"signingSecret": "whsec_YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY=",
"status": "ENABLED",
"updatedAt": "2026-02-01T12:00:00Z"
}