CredflareDevelopersOpen dashboard

Application webhooks

Receive application decision updates, then reconcile the latest revision.

Per-request callback fields are a separate mechanism with a different format.

Event and delivery headers

Application updates are queued as verification.updated to active outgoing workspace webhooks associated with the client. The event name is in X-Webhook-Event. The JSON body is the application payload itself, not an event/data wrapper.

HeaderPurpose
X-Webhook-DeliveryDelivery identifier for deduplication.
X-Webhook-IdWebhook configuration identifier.
X-Webhook-TimestampUnix timestamp used for signing.
X-Webhook-SignatureDefault signature header, with a sha256= prefix.

Verify before processing

  1. Keep the raw request body before parsing JSON.
  2. Reject timestamps outside your allowed delivery window.
  3. Compute HMAC-SHA256 over the timestamp, a period, and the raw body, using your webhook secret.
  4. Compare the expected signature with the received signature using a constant-time comparison.
  5. Deduplicate delivery IDs and apply only newer application revisions.

Use GET /client/applications/{reference} to reconcile the current state. Persist the update before returning a successful HTTP response. Delivery may be retried, so processing the same event twice must not repeat a side effect.

The signing header and algorithm are configurable on self-hosted installations. Confirm your deployment settings before implementing the receiver.