Subscriptions are scoped per environment and registered with your API key (base URL
https://app.refold.ai, header x-api-key). Register them with both your test and live keys.Handle webhooks in your backend
Expose an HTTPS endpoint
Stand up a route (for example
https://your-app.com/webhooks/refold) that accepts POST and returns 200 OK.Subscribe to the events you need
Register the URL and events with Create Webhook, or in the Console under Developer > Webhooks. The events most Native backends use are
Connection Expired (prompt a reconnect) and Workflow Errored (alert or retry). See the event catalog.Verify the signature
Confirm each delivery came from Refold by checking the
x-cobalt-signature header against an HMAC-SHA256 of the raw body keyed on your API key. See the verification code.See also
- Webhooks: event catalog, subscription, signature verification, and retries
- Connection status: act on a
Connection Expiredevent - Events: send events into Refold to start workflows