Address Watch — notifications about your TRON addresses
Address Watch follows your TRON addresses and tells you about what happens to them: incoming and outgoing TRX, USDT and other tokens, resource delegation, staking, votes, permission changes, Tether blacklisting — and, separately, network-wide events such as protocol changes and chain parameter proposals.
Notifications go to your HTTPS webhook URL (a signed POST) and/or to Telegram (the Netts bot). Everything can be managed with this API or in the Netts Workspace.
How it fits together:
| Object | What it is |
|---|---|
| Subscription | Free for up to 10 addresses while your Netts balance is at least 50 TRX; for more addresses, paid monthly in advance from your balance, per slot of addresses. Watching works only while it is active. |
| Address | A TRON address you watch, with an optional label and tags. |
| Group | A set of addresses. Three system groups always exist: Default (every active address), Network events (events not tied to an address) and Netts account (account events). |
| Webhook URL | Your HTTPS endpoint; up to 20. Each has its own signing secret. |
| Rule | Which event of which group goes where (a webhook URL, Telegram or both). One rule = one event. |
A typical setup: keep at least 50 TRX on the balance (free plan) or activate the paid subscription → add addresses → add and verify a webhook URL or link Telegram → create rules.
Endpoint base URL
https://netts.io/apiv2/watchRequest Headers
| Header | Required | Description |
|---|---|---|
| X-API-KEY | Yes | Your API key from the Netts dashboard. Requests are accepted only from IP addresses in your whitelist, as for every NETTS API. |
| Content-Type | Yes (with a body) | application/json |
| X-Idempotency-Key | For 8 operations | See Idempotency. 16–64 characters A-Z a-z 0-9 + / = _ -. |
Your account is taken from the API key; you never pass a user id. You can see and change only your own objects — an id of another account answers 404, the same as a missing one.
Limits
| Limit | Value |
|---|---|
| Requests | 5 per second and 150 per minute per API key, for all /apiv2/watch/* together |
| Request body | up to 1 MB |
| Response time | up to 5 s; verify and test of a webhook URL up to 20 s |
| Addresses per request | 1–500 |
| Webhook URLs | 20 per account |
| Groups | 1,000 per account |
| Free plan | 10 active addresses, while the balance is at least 50 TRX |
| Addresses per slot | 100,000 active addresses |
| Delivery history | the last 3 days |
| Verify / test of a URL | once a minute per URL |
Subscription
| Method | Path | What it does |
|---|---|---|
| GET | /subscription | Current state |
| POST | /subscription/activate | Start watching: the free plan, or the paid one (charges the first month) |
| POST | /subscription/deactivate | Stop watching |
| PUT | /subscription/auto-renew | Turn auto-renewal on or off |
| POST | /subscription/slots | Buy more slots for the current period |
Plans:
| Plan | Addresses | Price | Condition |
|---|---|---|---|
free | up to 10 active | free | at least 50 TRX on the balance; nothing is charged or held |
paid | 100,000 active per slot | 100 TRX per slot per month | — |
Free plan. With at least 50 TRX on the balance, your first request switches the free plan on by itself — no activation call is needed. If the balance falls below 50 TRX, the subscription becomes suspended: requests answer 402 (1004) and notifications stop; addresses and settings stay. After a top-up watching resumes by itself within about a minute. An 11th address answers 409 (4095): switch to the paid plan with POST /subscription/activate and {"plan": "paid"}. When a paid period ends and you watch 10 addresses or fewer with at least 50 TRX on the balance, the subscription moves to the free plan instead of being charged.
Without an active subscription only GET /subscription, POST /subscription/activate, webhook URLs, Telegram, the event catalog, delivery history and the rules of account events are available. A subscription you stopped yourself answers 409 (4094) until you activate it again; with less than 50 TRX on the balance the answer is 402 (1004) and nothing is charged. Addresses stay saved while the subscription is not active, but they are not watched.
- Activate takes an optional body
{"plan": "free"}or{"plan": "paid"}. Without it, the free plan is used when it is allowed (at least 50 TRX, at most 10 active addresses), otherwise the paid one. The paid plan charges the first month for as many slots as your active addresses need (at least one) and returnscharged: truewithamount_trx,slots,paid_untilandorder_id; the free plan returnsplan: "free"andcharged: false. Activating again while the paid period is still running charges nothing (charged: false). - Deactivate stops watching at once; the paid period is kept, so activating again before
paid_untilis free. - Auto-renew charges the next month from your balance when the period ends. It is checked about once a minute, so there may be a short gap between
paid_untiland the renewal. - Slots adds slots until
paid_until; the price is proportional to the rest of the period, at least 1 TRX. Paid plan only: on the free plan the answer is409(4095).
curl https://netts.io/apiv2/watch/subscription -H "X-API-KEY: your_api_key"{
"status": "active",
"plan": "paid",
"period_no": 1,
"period_start": "2026-11-29T10:00:00Z",
"paid_until": "2026-12-29T10:00:00Z",
"slots": 1,
"limit": 100000,
"active_addresses": 12,
"auto_renew": true,
"price_per_slot_trx": "100",
"free_address_limit": 10,
"free_min_balance_trx": "50",
"applied": true,
"effective_from": "2026-11-29T10:00:05Z"
}status is active, inactive (never activated or stopped), expired (the period ended without renewal) or suspended (free plan, the balance is below 50 TRX). plan is free or paid; on the free plan paid_until is null, slots is 0 and limit is 10. Not enough balance answers 402 (1004); buying slots without an active subscription answers 409 (4094). All four changes need an X-Idempotency-Key.
curl -X POST https://netts.io/apiv2/watch/subscription/activate \
-H "X-API-KEY: your_api_key" \
-H "X-Idempotency-Key: 9b2f1c4e-7a1d-4c2e-9f3b-5d8a6e0c1b2a"curl -X POST https://netts.io/apiv2/watch/subscription/slots \
-H "X-API-KEY: your_api_key" \
-H "X-Idempotency-Key: 3c8d7e21-5b4a-4f19-8e0d-2a6b9c1f7e43" \
-H "Content-Type: application/json" \
-d '{"slots": 1}'Addresses
| Method | Path | What it does |
|---|---|---|
| GET | /addresses | List; filters address, tag, group_id, active (true / false) |
| POST | /addresses | Add 1–500 addresses |
| GET | /addresses/{id} | One address |
| PATCH | /addresses/{id} | Change label and/or tags |
| POST | /addresses/{id}/enable | Turn watching of the address on |
| POST | /addresses/{id}/disable | Turn it off (the address stays in your list) |
| DELETE | /addresses/{id} | Delete one address (204) |
| POST | /addresses/delete | Delete several: {"ids": [1, 2, 3]} → {"deleted": n} |
curl -X POST https://netts.io/apiv2/watch/addresses \
-H "X-API-KEY: your_api_key" \
-H "Content-Type: application/json" \
-d '{
"addresses": [
{"address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE", "label": "Hot wallet", "tags": ["hot"]},
{"address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"}
],
"group_ids": [4]
}'{
"created": [{"id": 17, "address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE"}],
"existing": [{"id": 3}]
}- Every address is checked first (Base58Check, 34 characters); one bad address rejects the whole request with the field that failed, e.g.
addresses[1].address. - A repeated address in one request is counted once; an address you already watch is returned in
existingand is not changed. label: up to 64 characters ornull.tags: up to 20, each 1–32 characters.group_ids: your own groups to put the new addresses into.- When the subscription has no free room, the answer is
409(4095,limit-reached) withslots_needed— buy slots and repeat. On the free plan (info.plan: "free", 10 addresses) switch to the paid plan first.
An address object:
{
"id": 17,
"address": "TQn9Y2khEsLJW1ChVWFMSMeRDow5KcbLSE",
"active": true,
"label": "Hot wallet",
"tags": ["hot"],
"group_ids": [4],
"disabled_reason": null,
"disabled_at": null,
"created_at": "2026-11-29T10:00:00Z",
"updated_at": "2026-11-29T10:00:00Z",
"applied": true,
"effective_from": "2026-11-29T10:00:03Z"
}Groups
| Method | Path | What it does |
|---|---|---|
| GET | /groups | List; counts=false leaves out address_count (null), faster for long lists |
| POST | /groups | Create: {"name": "...", "tags": [...]} → 201 |
| GET | /groups/{id} | One group |
| PATCH | /groups/{id} | Change name, enabled, tags |
| DELETE | /groups/{id} | Delete an empty group with its rules (204); a group with addresses is refused (400) — remove its addresses first |
| GET | /groups/{id}/addresses | Addresses of the group |
| POST | /groups/{id}/addresses | Add your addresses: {"ids": [...]} → {"added": n} |
| POST | /groups/{id}/addresses/remove | Remove them: {"ids": [...]} → {"removed": n} |
- Default contains every active address automatically; you cannot add or remove members.
- Network events holds no addresses; it is where rules for network-wide events live.
- Netts account holds no addresses; it is where rules for account events live.
- The names of the system groups cannot be changed and they cannot be deleted; they can be turned off (
enabled: false). Your own groups can be renamed, turned off and deleted. - System groups appear with your first change (for example, the first address or the activation).
- Creating a group needs an
X-Idempotency-Key.
{
"id": 4,
"is_system": false,
"system_kind": null,
"name": "Exchange wallets",
"enabled": true,
"tags": [],
"address_count": 12,
"created_at": "2026-11-29T10:00:00Z",
"updated_at": "2026-11-29T10:00:00Z",
"applied": true,
"effective_from": "2026-11-29T10:00:02Z"
}system_kind is addresses for Default, feed for Network events, account for Netts account and null for your own groups.
Rules
| Method | Path | What it does |
|---|---|---|
| GET | /rules | List; filters group_id, event_code, endpoint_id |
| POST | /rules | Create → 201 |
| GET | /rules/{id} | One rule |
| PATCH | /rules/{id} | Change endpoint_id, telegram, confirmations, balances, min_amount, params, enabled |
| DELETE | /rules/{id} | Delete (204) |
curl -X POST https://netts.io/apiv2/watch/rules \
-H "X-API-KEY: your_api_key" \
-H "X-Idempotency-Key: 6a1e0b9c-4d2f-4e8a-b7c3-1f5d9e2a8c40" \
-H "Content-Type: application/json" \
-d '{
"group_id": 1,
"event_code": "usdt.in",
"endpoint_id": 5,
"telegram": true,
"confirmations": false,
"min_amount": {"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t": "100000000"}
}'| Field | Meaning |
|---|---|
group_id | Your group. Not needed for network events (scope: feed): they always go to Network events. |
event_code | One event from GET /events. To watch several events, create a rule for each. |
endpoint_id | A verified webhook URL, or null. |
telegram | true — also to Telegram. A rule needs a URL, Telegram or both. |
confirmations | true — also send <event>.confirmed when the block is final (about a minute later). |
balances | true — add the current balances of the address (TRX, USDT and the transferred token) to the notification. Transfer events only: trx.*, usdt.*, trc20.*, trc10.*. Off by default: with it, each event asks the node. See Address balance below. |
min_amount | Thresholds, one per token: a transfer below its token's threshold is not sent. See below. |
enabled | true by default. |
min_amount maps a token to the smallest amount that is sent, in the token's smallest units, as a string of digits. Keys: TRX (1 TRX = 1000000), trc10:<token id>, or a TRC20 contract address (USDT is TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t, 1 USDT = 1000000). Each token has its own threshold, so one map can hold TRX and USDT at once. Left out, the event's default is used: 1 TRX for trx.in, 1 USDT for usdt.in, none for other events.
Balance below a threshold. The event balance.below sends a message when the balance of an address falls below the threshold of the rule: "params": {"token": "USDT", "below": "100"} — TRX or USDT, the threshold in whole tokens. The balance is read when the address is taken into work and then only after a movement of the address, at most once per 30 seconds per address, so a busy wallet does not load the node. One message per fall; the next one comes after the balance is back at or above the threshold. The body carries balance (amount, amount_raw), below, token and at (when the balance was read). min_amount, confirmations and balances do not apply to it.
- The same rule twice (same group, event and channels) is refused with
400— such a rule already exists. group_idandevent_codecannot be changed; create another rule instead.- Creating a rule needs an
X-Idempotency-Key.
Webhook URLs
| Method | Path | What it does |
|---|---|---|
| GET | /endpoints | List (secrets are never returned) |
| POST | /endpoints | Add: {"url": "https://..."} → 201 with the secret, shown once |
| GET | /endpoints/{id} | One URL |
| PATCH | /endpoints/{id} | Change the URL: {"url": "https://..."} |
| POST | /endpoints/{id}/verify | Prove that the URL is yours |
| POST | /endpoints/{id}/test | Send a test delivery |
| POST | /endpoints/{id}/rotate-secret | New secret (the old one stops working) |
| POST | /endpoints/{id}/enable · /disable | Turn deliveries on / off |
| POST | /endpoints/{id}/resume | Resume a URL paused after failures |
| DELETE | /endpoints/{id} | Delete (204) |
URL rules: https only; port 443 or 8443; a domain name (not an IP address); no user:password@ and no #fragment; up to 2048 characters. The address the name resolves to must be public.
Verification. A new URL receives events only after it is verified. verify sends a signed POST with {"event": "endpoint.verify", "endpoint_id": 5, "code": "..."}; your server must answer 2xx and put the same code in the response body. The answer is {"verified": true} or false with http_status and error_category. Changing the URL resets verification; the secret stays the same; the same URL again changes nothing.
Test. test sends {"event": "endpoint.test", "endpoint_id": 5, "test": true, "sent_at": "..."} to a verified, enabled URL and answers delivered, http_status, error_category and latency_ms. Verify and test share the limit of once a minute per URL (429, 4291, with Retry-After).
Adding a URL and creating a new secret need an X-Idempotency-Key; repeating with the same key returns the same secret.
{
"id": 5,
"url": "https://hooks.example.com/netts",
"url_revision": 1,
"active": true,
"verified": true,
"verified_at": "2026-11-29T10:05:00Z",
"paused_until": null,
"fail_streak": 0,
"last_success_at": "2026-11-29T11:00:00Z",
"created_at": "2026-11-29T10:00:00Z",
"updated_at": "2026-11-29T10:05:00Z",
"applied": true,
"effective_from": "2026-11-29T10:05:02Z"
}Webhook deliveries
Every notification is an HTTPS POST of JSON to your URL with these headers:
| Header | Value |
|---|---|
X-Netts-Event | Event code, e.g. usdt.in or usdt.in.confirmed |
X-Netts-Delivery | Delivery number; the same on every retry of this delivery |
X-Netts-Timestamp | Unix time in seconds when this attempt was signed |
X-Netts-Signature | sha256=<hex> — HMAC-SHA256 of "<timestamp>." + raw body, key = the URL's secret |
User-Agent | netts-address-watch/1 |
Check the signature on the raw request body, before parsing JSON:
import hashlib, hmac, time
def valid(secret: str, headers: dict, raw_body: bytes) -> bool:
ts = headers["X-Netts-Timestamp"]
if abs(time.time() - int(ts)) > 300: # reject old replays
return False
expected = "sha256=" + hmac.new(secret.encode(), ts.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, headers["X-Netts-Signature"])Answer 2xx within 8 seconds. Any other answer or a timeout is retried after 1 s, 5 s, 30 s, 2 min, 10 min, 30 min and 1 h; after that the delivery is marked dead. After 20 failures in a row the URL is paused (from 1 hour, up to 24 hours); POST /endpoints/{id}/resume resumes it. Redirects are not followed.
Process each notification once. A retry has the same body and X-Netts-Delivery; only the timestamp and the signature change. Use these fields:
| Field | Use |
|---|---|
delivery_id | Ignore a delivery you have already processed |
event_id | The same logical event across event, .confirmed, .reverted and a repeated appearance |
event_seq | Grows with every change of the event; apply only a larger event_seq than the one you have — notifications may arrive out of order |
kind | event, confirmed or reverted |
Lifecycle. The first notification (kind: event, confirmed: false) comes about half a second after the block. If the rule has confirmations: true, <event>.confirmed follows when the block is final (about a minute). If the transaction drops out of the chain, <event>.reverted comes with the data of the dropped appearance, so you can undo it. If it appears again in another block, a new event comes with the new block data.
A delivery of usdt.in (keys arrive sorted alphabetically; shown grouped here):
{
"delivery_id": 123456,
"event": "usdt.in",
"kind": "event",
"state": "observed",
"confirmed": false,
"event_id": "24ca3d0b868a7c5d480174297aaaa4b3482c01bece72a96b3f4db84ee0aab4fe:log0:usdt.in:TSQoagQTDTiXzRn5sEZUiz3rtAsHhnw4cc",
"event_seq": 1,
"occurrence_id": "7ea13a0088378a11e3d95b89ddbcc54c7e55711dce2a75dcc9f0e8f9bd489fe2",
"scope": "address",
"address": "TSQoagQTDTiXzRn5sEZUiz3rtAsHhnw4cc",
"label": null,
"tags": [],
"groups": [{"id": 1, "name": "Default", "tags": []}],
"direction": "in",
"counterparty": "TAr7qDkrT7KVD5SBo25qcvhJWNLZ3Hpcnq",
"from": "TAr7qDkrT7KVD5SBo25qcvhJWNLZ3Hpcnq",
"to": "TSQoagQTDTiXzRn5sEZUiz3rtAsHhnw4cc",
"token": {"type": "trc20", "contract": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "symbol": "USDT",
"name": "Tether USD", "decimals": 6, "verified": true},
"amount_raw": "792000000",
"amount": "792",
"amount_usd": "792",
"usd_rate": {"quote": "USDT", "price": "1", "source": "usdt_1to1", "fx_snapshot_id": null, "valuation_at": null},
"details": {"source_kind": "log", "log_index": 0},
"block": {"number": 88419709, "hash": "0000000005452d7de6008d3a0de35bf0d71745d516ec60d8e0f0d7f7aaed967b",
"witness": "TBsyKdNsCKNXLgvneeUJ3rbXgWSgk6paTM", "time": "2026-11-29T06:24:15Z"},
"tx": {"id": "24ca3d0b868a7c5d480174297aaaa4b3482c01bece72a96b3f4db84ee0aab4fe", "index_in_block": 0,
"contract_type": "TriggerSmartContract", "result": "SUCCESS", "receipt_result": "SUCCESS",
"permission_id": 0, "signers": ["TAr7qDkrT7KVD5SBo25qcvhJWNLZ3Hpcnq"], "memo_text": null, "memo_hex": null,
"fee_limit_sun": 100000000, "expiration": "2026-11-29T06:24:39Z", "timestamp": "2026-11-29T06:23:40.386000Z"},
"cost": {"fee_sun": 345000, "energy_usage_total": 130285, "energy_from_stake_or_rent": 130284,
"energy_burned_sun": 0, "origin_energy_usage": 1, "energy_penalty_total": 100635,
"bandwidth_used": 0, "bandwidth_burned_sun": 345000},
"explorer_url": "https://tronscan.org/#/transaction/24ca3d0b868a7c5d480174297aaaa4b3482c01bece72a96b3f4db84ee0aab4fe",
"source": "scanner",
"confirmations": false
}amountis in whole tokens,amount_rawin the smallest units.amount_usdis the dollar equivalent at the time of processing (USDT 1:1);nullwhen no fresh rate exists.detailscarries the fields of the specific event (for delegation,resource; for blacklisting, the request and its signatures).- All times are UTC.
Address balance. A rule with balances: true adds one field to the notification:
"balances": {
"at": "2026-11-29T06:24:16Z",
"items": [
{"token": {"type": "trx", "symbol": "TRX", "name": "Tronix", "decimals": 6, "verified": true},
"amount_raw": "1520400000", "amount": "1520.4"},
{"token": {"type": "trc20", "contract": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "symbol": "USDT",
"name": "Tether USD", "decimals": 6, "verified": true},
"amount_raw": "8150000000", "amount": "8150"}
]
}items— always TRX and USDT; for a TRC10 or another TRC20 transfer, also that token. When the token's decimals are unknown,amountisnull: useamount_raw.at— when the balance was read (UTC).- In Telegram the message gets one more line, e.g.
💰 Balance: 1520.4 TRX · 8150 USDT. - The node is asked for every such event, so the notification may come a little later: usually tens of milliseconds, at most 1 second. If the node does not answer in time,
balancesisnulland the notification goes out without waiting longer.
The balance may differ from the balance right after this transaction
The balance is read from the node when the block is processed: the blockchain gives only the current balance, not the balance after a given transaction. If the address has several transactions in the same block or in the next blocks, the balance may already include them. For outgoing transfers the TRX balance also reflects the fee burned. For exact accounting use amount and the history of the address.
Blacklist events. Every usdt.blacklist.* and blacklist_feed.* notification carries balances of the blacklisted address, without the rule option: TRX, USDT and USDD (TXDk8mbtRbXeYuMNS83CfKPaYYT8XWv9Hz), plus the old USDD 1.0 (TPYmHEhy5n8TCEfYGqW2rPxsghSfzghPDn) when it is not zero. After usdt.blacklist.added the USDT is still on the address but frozen; after usdt.blacklist.funds_destroyed it is 0. In Telegram: 💰 Balance: 35.202599 TRX · 311769.092106 USDT · 0 USDD.
Telegram
| Method | Path | What it does |
|---|---|---|
| GET | /telegram | Link state: linked, enabled, lang, blocked, linked_at |
| POST | /telegram/link | One-time link to the Netts bot: {"url": "https://t.me/...", "expires_in_s": 600} |
| PATCH | /telegram | enabled and/or lang (two letters) |
| DELETE | /telegram | Unlink |
| GET | /telegram/service-prefs | Service messages and whether each is on |
| PUT | /telegram/service-prefs | Turn them on / off: {"subscription.charged": false} |
Service messages: subscription.charged, subscription.expiring, subscription.expired, subscription.renew_failed, subscription.free_started, subscription.free_suspended, subscription.free_resumed, endpoint.paused, endpoint.verify_failed, queue.backlog, address.overload_warning, address.auto_disabled, addresses.limit_reached; all are on by default.
Open the link from POST /telegram/link in Telegram within 10 minutes and press Start: the bot answers that Telegram is linked. After unlinking, only a new link links again. Messages come in the language of the link (lang): English, Russian, Ukrainian, Chinese, Korean, Spanish, Portuguese, Turkish, Vietnamese or Indonesian; any other language gets English.
Events and delivery history
| Method | Path | What it does |
|---|---|---|
| GET | /events | Catalog of event types: code, scope, title, enabled |
| GET | /events/{event_id} | One of your events, with its first deliveries |
| GET | /deliveries | Delivery history, newest first; filters endpoint_id, channel (webhook / telegram), status, event_id |
The catalog is the source of truth — new event types appear there without a new API version. Events of addresses have scope: address; network events have scope: feed and go to the Network events group; events of your Netts account have scope: account and go to the Netts account group (Account events).
| Group | Codes |
|---|---|
| Transfers | trx.in, trx.out, usdt.in, usdt.out, trc10.in, trc10.out, trc20.in, trc20.out (verified tokens) |
| Resources | delegate.in, delegate.out, undelegate.in, undelegate.out |
| Staking and votes | stake.freeze, stake.unfreeze, stake.withdraw, stake.unfreeze_cancelled, vote.cast, vote.reward_claimed |
| Account | account.permission_changed, account.activated |
| Tether blacklist of your address | usdt.blacklist.submitted, .added, .revoked, .failed, .removal_submitted, .removed, .destroy_submitted, .funds_destroyed |
Network events (feed) | blacklist_feed.submitted, .added, .removed, .funds_destroyed; network.proposal.created, .approved, .deleted; tron.protocol.changed |
| Address balance | balance.below |
Your Netts account (account) | netts.deposit.credited, .not_credited; netts.withdraw.created, .completed, .failed; netts.balance.low — see Account events |
A delivery: delivery_id, event_id, kind, event_seq, channel, endpoint_id, status, attempts, http_status, error_category, created_at, finished_at. status is one of pending, deferred, sending, delivered, dead, cancelled, unknown, retention_expired. The body of your server's response is never stored or shown.
Lists and pages
Lists answer {"items": [...], "next_cursor": "...", "limit": 100}. Pass next_cursor as cursor to get the next page; null means the end. limit is 1–500 (100 by default). A cursor belongs to its list and filters: using it with other filters or another list answers 400.
Saved and applied
A 200 / 201 of a change means saved. The change starts working within seconds. Objects show it with applied and effective_from: applied: true — the current settings are in force since effective_from; false — not yet.
Idempotency
These operations need X-Idempotency-Key: activate, deactivate, auto-renew, slots, create group, create rule, add webhook URL, new secret. Use a new key for every new operation; repeat the same key when you are not sure the first request was done (a timeout, 503 with 5041): you get the result of the first request, and nothing is done or charged twice. The same key with other parameters answers 409 (4093); an expired key answers 409 (4096). After a refusal such as 402, top up and use a new key.
Errors
Errors are RFC 9457 application/problem+json with a numeric code:
{
"type": "https://doc.netts.io/api/v2/errors/limit-reached",
"title": "Subscription limit reached",
"status": 409,
"detail": "address limit reached",
"instance": "/apiv2/watch/addresses",
"code": 4095,
"request_id": "0f5b6c1e-3d2a-4b8e-9a7c-2e1d4f6a8b90",
"info": {"slots": 1, "limit": 100000, "active": 100000, "adding": 10, "slots_needed": 2}
}| HTTP | code | Meaning |
|---|---|---|
| 400 | 4000 | Invalid JSON |
| 400 | 4001 | Validation failed; errors lists the fields |
| 401 | 4010 / 4011 | No API key / key or IP not allowed |
| 402 | 1004 | Not enough balance (the free plan needs at least 50 TRX) |
| 404 | 4042 | Not found (or belongs to another account) |
| 409 | 4093 | Idempotency key reused for another request |
| 409 | 4094 | The subscription is not active |
| 409 | 4095 | Address limit reached (info.slots_needed; info.plan is free on the free plan) |
| 409 | 4096 | Idempotency key expired |
| 413 | 4131 | Request body too large |
| 429 | 4291 | Verify / test too often (Retry-After) |
| 500 | 5000 | Internal error (with request_id) |
| 503 | 5038 / 5039 | Temporarily unavailable — repeat in a second (Retry-After) |
| 503 | 5041 | The result of a change is unknown — repeat with the same X-Idempotency-Key, or check with GET |
Requests over the rate limit get 429 and a missing or unknown API key gets 401 from the API gateway, in its own short JSON format.