Configuration
Event types
Payloads
settlement.confirmed
Sent when a swap is confirmed on-chain.settlement.failed
Sent when a swap execution fails due to an on-chain revert.quote.expired
Sent when a firm quote reaches itsexpiry_timestamp without being executed.
system.state_change
Sent when a corridor transitions between system states.Signature verification
Every webhook request includes a signature header you must verify before processing the payload:Retry policy
If your endpoint does not return HTTP200 within 5 seconds, Ratio retries with exponential backoff:
After 5 failed attempts the webhook is marked as failed. Query the execution status directly via the API as a fallback.
Best practices
- Make your handler idempotent. The same event may be delivered more than once. Use
execution_idorquote_idto deduplicate. - Return
200immediately, then process asynchronously. Your handler must respond within 5 seconds. Offload any slow processing to a queue or background task. - Log the full payload. Retain raw payloads for debugging and reconciliation.