# TonAPI API

**Canonical:** https://apis.io/apis/tonapi/tonapi-api/  
**Provider:** TonAPI — https://apis.io/providers/tonapi/  
**Base URL:** https://rt.tonapi.io  
**Documentation:** https://docs.tonapi.io/tonapi/webhooks-api

TonAPI API is published by [TonAPI](https://apis.io/providers/tonapi/) on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. This API exposes 6 JSON Schema definitions. The published artifact set on APIs.io includes an OpenAPI specification and 6 JSON Schemas.

TonAPI API as documented publicly: 22 operations. Contract generated from the documentation by API Evangelist (2026-11-16); not the provider's own document.

## Operations (22)

| Method | Path | Summary |
|---|---|---|
| GET | `/usage-stats` | Get usage statistics |
| GET | `/v2/sse/accounts/traces` | Real-time notifications about traces |
| GET | `/v2/sse/accounts/transactions` | Real-time notifications about finalized transactions |
| GET | `/v2/sse/blocks` | Real-time notifications about new blocks |
| GET | `/webhooks` | List webhooks |
| POST | `/webhooks` | Create webhook |
| DELETE | `/webhooks/{webhookId}` | Delete a webhook |
| PATCH | `/webhooks/{webhookId}` | Update a webhook |
| POST | `/webhooks/{webhookId}/account-tx/bulk-subscribe` | Bulk subscribe to account transactions |
| POST | `/webhooks/{webhookId}/account-tx/subscribe` | Subscribe to account transactions |
| GET | `/webhooks/{webhookId}/account-tx/subscriptions` | Get a webhook's subscriptions |
| POST | `/webhooks/{webhookId}/account-tx/unsubscribe` | Unsubscribe from account transactions |
| POST | `/webhooks/{webhookId}/back-online` | Mark a webhook back online |
| POST | `/webhooks/{webhookId}/generate-new-token` | Generate a new webhook token |
| GET | `/webhooks/{webhookId}/logs` | Get webhook logs |
| POST | `/webhooks/{webhookId}/mempool/subscribe` | Subscribe to mempool events |
| POST | `/webhooks/{webhookId}/mempool/unsubscribe` | Unsubscribe from mempool events |
| GET | `/webhooks/{webhookId}/msg-opcode/subscriptions` | Get a webhook's opcode subscriptions |
| POST | `/webhooks/{webhookId}/subscribe-msg-opcode/0x{opcode}` | Subscribe to messages with a specific opcode in a message body |
| POST | `/webhooks/{webhookId}/subscribe-new-contracts` | Subscribe to events about new contract deployments |
| POST | `/webhooks/{webhookId}/unsubscribe-msg-opcode/0x{opcode}` | Unsubscribe from messages with a specific opcode in a message body |
| POST | `/webhooks/{webhookId}/unsubscribe-new-contracts` | Unsubscribe from events about new contract deployments |

## Machine-readable artifacts (8)

- **OpenAPI** — https://artifacts.apis.io/tonapi/openapi/_ae-authored/tonapi-openapi-generated.yml
- **JSONSchema** — https://artifacts.apis.io/tonapi/json-schema/tonapi-get-webhooks-webhookid-account-tx-subscriptions-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/tonapi/json-schema/tonapi-get-v2-sse-blocks-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/tonapi/json-schema/tonapi-get-v2-sse-accounts-traces-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/tonapi/json-schema/tonapi-get-v2-sse-accounts-transactions-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/tonapi/json-schema/tonapi-get-webhooks-response-schema.json
- **JSONSchema** — https://artifacts.apis.io/tonapi/json-schema/tonapi-get-usage-stats-response-schema.json
- **APIsJSON** — https://artifacts.apis.io/tonapi/apis.yml

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/tonapi` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/tonapi/tonapi-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/tonapi/.
