Unsubscribe data related to block events and transaction events. You can cancel up to 20 subscriptions at a time. After a successful unsubscription, messages will no longer be pushed through webhook.
POST https://www.okx.com/api/v5/wallet/webhook/unsubscribe
Parameter | Type | Required | Description |
---|---|---|---|
id | String | Yes | Unique identifier of the subscription |
Parameter | Type | Description |
---|---|---|
id | String | Unique identifier of the subscription |
curl --location --request POST 'https://www.okx.com/api/v5/wallet/webhook/unsubscribe' \
--header 'Content-Type: application/json' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z' \
--data-raw '[
{
"id":"1"
}
]'
{
"code":"0",
"data":[
{
"id":"1"
}
],
"msg":""
}