ESTAGE Support
IdeasMy tickets

Subscribe an address to events

Permission webhooks:manageRate limit writesIdempotent with Idempotency-Key

Subscribes an https address on a public host to events from GET /webhooks/events. The API key must also hold the read scopes each event needs (listed per event), or the request is refused with 403 forbidden_scope. secret (32–200 characters) is yours: every delivery is a POST of JSON { id, type, api_version, project_id, created_at, events: [ … ] } with the headers X-Estage-Event, X-Estage-Delivery and X-Estage-Signature: t=<unix seconds>,v1=<hex HMAC-SHA256 of "<t>.<raw body>" with the secret>. Answer 2xx to accept; 410 turns the webhook off; anything else is retried after 1 min, 5 min, 30 min, 2 h and 6 h, and after 10 deliveries in a row fail every try the webhook is turned off. Each event carries an id to drop repeats. At most 10 webhooks per project; an address already subscribed is refused — PATCH it instead.

POSThttps://api.estage.com/v1/webhooks

Authorization

ESTAGE-API-Keystringheaderrequired

A project key, est_live_…, from Settings → API keys. Call from server code only.

Body

application/json
urlstringrequireduri≤ 500 chars

https only; the host must resolve to public addresses. Redirects are not followed.

eventsarray of stringrequired≤ 28 items

One of contact.created, contact.updated, contact.suppressed, contact.tag_added, contact.tag_removed, list.subscribed, list.unsubscribed, field.changed, broadcast.sent, email.delivered, email.opened, email.clicked, email.bounced, email.complained, email.unsubscribed, automation.enrolled, automation.completed, order.paid, order.refunded, order.cancelled, order.fulfilled, booking.created, booking.cancelled, booking.rescheduled, booking.no_show, affiliate.joined, affiliate.earning_created, payout.paid

secretstringrequired≥ 32 chars≤ 200 chars
descriptionstringnullable≤ 200 chars

Headers

Idempotency-Keystring≤ 255 chars

Any unique string per attempt. A retry with the same key gets the first answer back instead of doing the work twice.

RequestcURL
curl --request POST \
  --url 'https://api.estage.com/v1/webhooks' \
  --header 'ESTAGE-API-Key: est_live_your-api-key' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: your-unique-key' \
  --data '{
    "url": "https://hooks.example.com/estage",
    "events": [
      "contact.created",
      "order.paid"
    ],
    "secret": "whsec_9f8e7d6c5b4a39281706f5e4d3c2b1a0",
    "description": "CRM sync"
  }'
Created
{
  "data": {
    "id": 7,
    "url": "https://hooks.example.com/estage",
    "events": [
      "contact.created",
      "order.paid"
    ],
    "status": "active",
    "description": "CRM sync",
    "disabled_reason": null,
    "failures": 0,
    "last_success_at": null,
    "last_failure_at": null,
    "last_error": null,
    "created_at": "2026-11-13T10:00:00Z",
    "updated_at": "2026-11-13T10:00:00Z"
  }
}
Example. Errors are { error: { code, message, details } }.