v1
latestOpenAPI 3.0.32026-07-1320201.0 MBTron Webhooks
Create webhook
Creates a new webhook for real-time communication and event notification.
post/api/v2/tron/webhooks
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
Example request
{
"from": "TWrTTVizHkF3LxTiWE9vCnhWC7CBpNXe22",
"to": "TWrTTVizHkF3LxTiWE9vCnhWC7CBpNXe22",
"url": "http://vonrueden.com/",
"contractaddress": "TWrTTVizHkF3LxTiWE9vCnhWC7CBpNXe22",
"type": "TRC20",
"reference": "n"
}Response
Example response
{
"status": 201,
"ok": true,
"message": "Webhook created",
"data": {
"webhook": "9b2b4dcc-1479-4bcd-9b8a-015673e80f46"
}
}