| PARAM | DESCRIPTION |
|---|---|
| url | The URL to which CryptoPocket will send webhook notifications (POST request). |
| type | The type of event for which the user wishes to receive notifications. Allowed values: - COINS_SENT: To receive notifications when tokens have been successfully sent. - PAY_IN: To receive notifications when a payment has been successfully received |
{
"status": "ok",
"data": "subscription_updated"
}
curl --location --request POST '/api/updateWebhookSubscription' \
--header 'auth: b87bsdf8hdsj9fh9sd78fubsdoiufbj' \
--data-urlencode 'type=PAY_IN' \
--data-urlencode 'url=https://demo.com'{}