X-API-Key, X-Signature, and X-Timestamp from the request headersapi_secret associated with the X-API-Key from your databasepayload + timestampHMAC-SHA256(payload + timestamp, api_secret)X-Signature header valueX-Timestamp is not too old (maximum 5 minutes difference)| 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: CRYPTO_RECEIVED: To receive notifications when crypto has been received during a ramp-off process. TRANSFER_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'{}