Creating webhooks
Before creating a webhook, you need to: Now you can go to the Dashboard, select a project, and configure your webhookYou need to be a project admin or owner to create a webhook.
Events
The webhook will be triggered for every status change.Called when the transaction first moves from
AWAITING_FUNDS
status toTRANSFERRING_FIAT
. Then, follows the order of events below:TRANSFERRING_FIAT
→ TRADING
→ TRANSFERRING_STABLECOIN
→ SUCCESS
/FAILED
For a comprehensive guide to On-ramp
transactions, refer to the guide.Webhook payload
Here is an example of the payload delivered to your webhook URL when receiving an on-ramp event:Payload
Security
The API signs the event by adding aX-Hub-Signature
header to the request. This signature can be used to verify the authenticity of the request by following the steps below:
1
First Step
Go to the webhook settings page and copy the secret.
2
Second Step
Compute a
HMAC-SHA256
hash of the payload using the secret as the key
and the stringified payload as the message. The decoding algorithm is
hex
.3
Third Step
Compare the generated signature with the one received in the
X-Hub-Signature
header.