post https://api.demo.getontop.com/webhooks/clients
curl --location 'https://api.demo.getontop.com/webhooks/clients' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxxxxxxxxxxxxxxx' \
--data '{
"url": "http://localhost/events",
"headers": [{
"name": "X-CUSTOM-HEADER-1",
"value": "CUSTOM-VALUE"
}],
"event_types": [
"KYC", "CLIENT_WALLET_TOP_UP", "PAYMENT",
]
}'
{
"client_id": 999,
"url": "https://api.demo.getontop.com/webhooks/events",
"enabled": true,
"headers": [{
"name": "X-CUSTOM-HEADER-1",
"value": "CUSTOM-VALUE"
}],
"event_types": [
"KYC",
"CLIENT_WALLET_TOP_UP",
"PAYMENT"
],
"created_at": "2023-10-25T14:41:14.574712103Z",
"updated_at": "2023-10-25T14:41:14.574713670Z"
}