| 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. CRYPTO_RECEIVED: To receive notifications when crypto has been received during a ramp-off process. RAMPOFF_FINISHED: To receive notifications when the bank transfer has been sent during a ramp-off process. |
{
"status": "ok",
"data": "subscription_created"
}
curl --location --request POST '/api/subscribeToWebhook' \
--header 'auth: b87bsdf8hdsj9fh9sd78fubsdoiufbj' \
--data-urlencode 'type=COINS_SENT' \
--data-urlencode 'url=https://demo.com'{}