curl --request POST \
--url https://rt.tonapi.io/webhooks/{webhook_id}/subscribe-new-contracts \
--header 'Authorization: Bearer <token>'{
"message": "unauthorized",
"status_code": 401
}Subscribe to events about new contract deployments. When a new contract is deployed to the blockchain, TONAPI sends a POST request to the webhook URL.
curl --request POST \
--url https://rt.tonapi.io/webhooks/{webhook_id}/subscribe-new-contracts \
--header 'Authorization: Bearer <token>'{
"message": "unauthorized",
"status_code": 401
}API key from tonconsole.com. Can also be passed as a token query parameter.
Webhook identifier.
Subscribed
Was this page helpful?