Create an event destination
Registers an event destination bound to the token's account. List every subscribable event type the URL should receive on event_types; one destination can carry as many as you like, so a URL needs only one signing secret and your handler branches on the envelope's type. Register a second destination to deliver to a different URL, not to separate one event type from another. The secret is returned once, in this response. The target is validated as an https URL and screened by the delivery-time SSRF guard before it is stored. The api_version is pinned from the resolved Ekho-Version, and the creation channel is inferred from the User-Agent (Zapier clients record zapier, everything else api).
Request body
Example request
{
"url": "https://example.com/webhooks/preorder",
"event_types": [
"order.vehicle.placed",
"order.vehicle.updated"
]
}Response
The event destination was created.
Example response
{
"data": {
"id": "whe_a1b2c3d4e5f6",
"api_version": "v1",
"secret": "whsec_4f1d…"
}
}Changes
No recorded changes to this endpoint across all 1 revision of this API.