Skip to main content
POST
/
webhooks
/
{webhook_id}
/
account-tx
/
subscribe
Subscribe to account transactions
curl --request POST \
  --url https://rt.tonapi.io/webhooks/{webhook_id}/account-tx/subscribe \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "accounts": [
    {
      "account_id": "0:6ccd325a858c379693fae2bcaab1c2906831a4e10a6c3bb44ee8b615bca1d220"
    }
  ]
}
'
{
  "message": "unauthorized",
  "status_code": 401
}

Authorizations

Authorization
string
header
required

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

Path Parameters

webhook_id
integer
required

Webhook identifier.

Body

application/json
accounts
object[]
required

Response

Subscribed