Skip to content

The webhook flow

The consumer registers a URL, the producer stores it, the event fires, the producer POSTs the payload, the consumer acknowledges.

sequenceDiagram
  participant C as Consumer
  participant P as Producer
  participant U as Consumer URL
  C->>P: POST /webhooks {url, events}
  P-->>C: 201 Created
  Note over P: Event happens
  P->>U: POST /webhooks/stripe {payload, signature}
  U-->>P: 200 OK
  Note over P: If no 2xx, retry with backoff