Skip to main content
POST
Create webhook

Authorizations

Authorization
string
header
required

API key from tonconsole.com. Can also be passed as a token query parameter.

Body

application/json
endpoint
string
required

Callback URL for receiving events.

Example:

"https://your-server.com/webhook"

Response

Webhook created

webhook_id
integer
required

Webhook identifier.

Example:

5

token
string
required

Secret token sent as Authorization header with every webhook request.

Example:

"eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9"