v1

latestOpenAPI 3.0.32026-07-1320201.0 MB
Bitcoin Webhooks

Update a Webhook

Updates an existing webhook with the provided data.

put/api/v2/bitcoin/webhooks/{id}

Headers

X-Network'testnet' | 'mainnet'

Specify "testnet" for test network or leave empty for main network. Defaults to "mainnet" if not provided.

Authorizationstring required

Bearer token for authorization. Required for authenticated endpoints.

Content-Type'application/json' | 'application/x-www-form-urlencoded' | 'multipart/form-data' required

The MIME type of the request body.

Request body

fromstring

Sender address (required if not providing type, to, contractaddress, and tokenid). This field is required when none of <code>type</code>, <code>to</code>, <code>contractaddress</code>, and <code>tokenid</code> are present.

tostring

Receiver address (required if not providing type, from, contractaddress, and tokenid). This field is required when none of <code>from</code>, <code>type</code>, <code>contractaddress</code>, and <code>tokenid</code> are present.

urlstring required

URL for webhook notifications (required).

Example request

{
  "url": "http://www.bailey.biz/quos-velit-et-fugiat-sunt-nihil-accusantium-harum.html"
}

Response

statusinteger
okboolean
messagestring

Example response

{
  "status": 200,
  "ok": true,
  "message": "Webhook updated",
  "data": {
    "id": "9b73d6ee-8a8b-44c3-b2c6-0bd1e1d8cd9a",
    "from": "0xe01e45c4d35e596cc2aEFABAe1c08FDa9fAc4241",
    "to": "0xe01e45c4d35e596cc2aEFABAe1c08FDa9fAc4241",
    "contractaddress": "0xe01e45c4d35e596cc2aEFABAe1c08FDa9fAc4241",
    "type": "BEP20",
    "token_id": null,
    "url": "http://blanda.com/debitis-et-id-nisi-qui-id.html",
    "is_active": true,
    "is_invalid": false,
    "old_id": null,
    "created_at": "2024-02-29T14:51:35.000000Z",
    "updated_at": "2024-02-29T14:52:33.000000Z",
    "deleted_at": null
  }
}