latestOpenAPI 3.0.32026-08-224982,0272.8 MB
e445c15e5bee
Webhook
Add wallet webhook
Add a webhook to a wallet that sends an HTTP callback from BitGo to a specified URL when specific conditions occur. A wallet can have up to 10 webhooks of each wallet-webhook type. Learn more about webhooks on the Developer Portal.
Note: Before you process webhook notifications, BitGo strongly recommends that you verify response details by fetching the transfer or block data from BitGo. For example, if you create a transfer webhook and you receive a transfer ID, pass that ID to the Get Transfer endpoint to verify the transfer details.
post/api/v2/{coin}/wallet/{walletId}/webhooks
Path parameters
coinstring required
A cryptocurrency symbol or token ticker symbol
Example:btc
walletIdstring required
Example:59cd72485007a239fb00282ed480da1f
Request body
Example request
{
"url": "https://your.server.com/webhook",
"numConfirmations": 6
}Response
OK
Example response
{
"id": "59cd72485007a239fb00282ed480da1f",
"created": "2021-01-01T00:00:00.000Z",
"coin": "btc",
"url": "https://your.server.com/webhook",
"version": 2,
"state": "active",
"organizationId": "59cd72485007a239fb00282ed480da1f",
"numConfirmations": 6,
"lastAttempt": "2021-01-01T00:00:00.000Z",
"failingSince": "2021-01-01T00:00:00.000Z"
}