Create webhook
curl --request POST \
--url https://api.sand.etherfuse.com/ramp/webhook \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"eventType": "order_updated",
"id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"url": "https://example.com/webhooks/etherfuse"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
eventType: 'order_updated',
id: 'd4e5f6a7-b8c9-0123-defa-234567890123',
url: 'https://example.com/webhooks/etherfuse'
})
};
fetch('https://api.sand.etherfuse.com/ramp/webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sand.etherfuse.com/ramp/webhook"
payload = {
"eventType": "order_updated",
"id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"url": "https://example.com/webhooks/etherfuse"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"createdAt": 1748345400,
"eventType": "order_updated",
"id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"secret": "whsec_aJ8s7Df6Gh5Jk4Lm3Np2Qr1St0Uv9Wx8Yz7Ab6Cd5Ef4",
"updatedAt": 1748345400,
"url": "https://example.com/webhooks/etherfuse"
}Webhooks
Create webhook
The response includes a one-time signing secret used to verify webhook
deliveries; store it securely.
POST
/
ramp
/
webhook
Create webhook
curl --request POST \
--url https://api.sand.etherfuse.com/ramp/webhook \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"eventType": "order_updated",
"id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"url": "https://example.com/webhooks/etherfuse"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
eventType: 'order_updated',
id: 'd4e5f6a7-b8c9-0123-defa-234567890123',
url: 'https://example.com/webhooks/etherfuse'
})
};
fetch('https://api.sand.etherfuse.com/ramp/webhook', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.sand.etherfuse.com/ramp/webhook"
payload = {
"eventType": "order_updated",
"id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"url": "https://example.com/webhooks/etherfuse"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"createdAt": 1748345400,
"eventType": "order_updated",
"id": "d4e5f6a7-b8c9-0123-defa-234567890123",
"secret": "whsec_aJ8s7Df6Gh5Jk4Lm3Np2Qr1St0Uv9Wx8Yz7Ab6Cd5Ef4",
"updatedAt": 1748345400,
"url": "https://example.com/webhooks/etherfuse"
}Authorizations
API key sent in the Authorization header.
Body
application/json
Response
The created webhook
Unix timestamp in seconds.
Available options:
bank_account_updated, customer_updated, order_updated, swap_updated, kyc_updated, kyb_updated Unix timestamp in seconds.