DaffodilAPI
Sandbox

Add a webhook Destination

Adds a webhook Destination, as an Admin would on the Destinations settings page, so an automated test can receive Events at a URL it controls. The response is the only time its signing secret is shown. A reset keeps Destinations, so delete yours when your test finishes. Sandbox only: exists on sandbox.api.getdaffodil.com and answers 404 not_found everywhere else.

POST
/v1/sandbox/webhook_destinations
AuthorizationBearer <token>

Your secret API key: dfl_live_… in production, dfl_test_… in the Sandbox.

In: header

Header Parameters

idempotency-keystring

Required on every write. A unique value you generate per intended write, such as a UUID. A retry with the same key and the same body returns the original response; the same key with a different body returns 422 idempotency_key_reused. Keys are kept for 24 hours, per Account and environment.

Length1 <= length <= 255
urlstring

An https URL on the public internet.

events?array<EventType>

The Events to subscribe to. Every Event when omitted.

Items1 <= items
label?string

A name for the Destination in Mission Control. Defaults to the URL’s host.

Lengthlength <= 120

Response Body

curl -X POST "https://sandbox.api.getdaffodil.com/v1/sandbox/webhook_destinations" \  -H "idempotency-key: 8e03978e-40d5-43e8-bc93-6894a57f9324" \  -H "Content-Type: application/json" \  -d '{    "url": "https://partner.example.com/daffodil/webhooks"  }'
{
  "object": "webhook_destination",
  "id": "wh_56TFFconQbqixIDRorZEa5",
  "url": "http://example.com",
  "events": [
    "checkout_session.completed"
  ],
  "status": "active",
  "secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw",
  "created_at": "2026-11-11T21:42:00Z"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "param": "string",
  "request_id": "string"
}