Skip to main content
Replace the signing secret of a webhook subscription without losing a delivery.

Participants


  • Your institution. Your system calls the Streaming Hub API with an Access Manager token. Your HTTPS endpoint receives the deliveries.
  • Streaming Hub. The Lerian platform service that signs each delivery. Lerian sets it up for your institution.
  • Lerian product. The product that publishes the business event, for example Midaz.

Diagram


Rotate a webhook signing secret

Steps


How you know it finished


GET /v1/subscriptions/{id} shows secret_overlap_until as null.
  • The rotate answer is lost. Send the request again with the same X-Idempotency key. When the first request is complete, you get the same secret. While it still runs, you get 409 idempotency_conflict. A new key makes another secret.
  • A second rotation. A second rotation replaces the previous secret at once.