Methods
Register a webhook
Thesecretis only returned onregister. Store it securely — you need it to verify incoming webhook signatures.
List webhooks
Update a webhook
Toggle a webhook
Enable or disable a webhook without deleting it:Delete a webhook
Notifications
List all notifications that have been sent to your webhooks:Signature verification
The SDK exports utilities to verify incoming webhook signatures using HMAC-SHA256 with timing-safe comparison.Signature header format
The webhook signature is sent in theOak-Signature header with the format:
Verify a signature
Verify and parse in one step
parseWebhookPayload combines signature verification with JSON parsing, returning a Result:
Express.js example
Always verify webhook signatures before processing payloads. Useexpress.raw()(notexpress.json()) to preserve the raw body for signature verification.
Webhook data types
RegisterRequest
Webhook data (response)
Notification
Event types
TheWebhook.EventType type includes 75+ events across these namespaces:
customer.*— customer lifecycle eventsprovider_registration.*— provider registration eventspayment.*— payment lifecycle eventstransaction.*— transaction eventsdispute.*— dispute eventskyc.*— KYC verification eventstransfer.*— transfer eventssell.*— sell (off-ramp) eventsbuy.*— buy (on-ramp) events
Event categories
TheWebhook.Category type includes 12 categories:
payment_lifecycle, provider_registration_lifecycle, and others that group related events for filtering and routing.