latestOpenAPI 3.0.32026-08-224982,0272.8 MB
e445c15e5bee
Webhook
Add block webhook
Adds a webhook that will result in an HTTP callback at the specified URL from BitGo when events are triggered.
Types of block webhooks:
- Block webhooks will fire when a new block is seen on the coin network.
- Wallet confirmation webhooks will fire when a wallet has been initialized.
post/api/v2/{coin}/webhooks
Path parameters
coinstring required
A cryptocurrency or token ticker symbol.
Example:btc
Request body
Example request
{
"type": "block",
"url": "https://your.server.com/webhook",
"numConfirmations": 6
}Response
OK
Example response
{
"type": "transfer",
"userId": "59cd72485007a239fb00282ed480da1f",
"id": "59cd72485007a239fb00282ed480da1f",
"label": "Test Webhook",
"coin": "btc",
"url": "https://your.server.com/webhook",
"version": 2,
"numConfirmations": 6,
"state": "active"
}