Account events — notifications about your Netts account
Get a message when something happens to your Netts account: a deposit is credited, a USDT deposit is not credited, a withdrawal is accepted, sent or rejected, or a balance falls below your threshold — your own balance or the balance of any of your sub-users (those alerts come to you).
Account events use the same API, channels and delivery history as Address Watch: a signed POST to your HTTPS webhook URL and/or a message from the Netts bot in Telegram. They are free and need no Address Watch subscription. You can also set them up in the Netts Workspace → Notifications → Notification settings.
A typical setup: link Telegram or add and verify a webhook URL → create a rule for each event you want.
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 creating a rule | 16–64 characters A-Z a-z 0-9 + / = _ -; repeat the same key to retry safely. |
Events
| Event | When it is sent |
|---|---|
netts.deposit.credited | A deposit is credited to your Netts balance: TRX, or USDT converted to TRX |
netts.deposit.not_credited | USDT arrived on your deposit address but was not credited: conversion is off for the account or the amount is below the minimum |
netts.withdraw.created | A withdrawal request is accepted and waits for the check |
netts.withdraw.completed | The withdrawal is approved and sent |
netts.withdraw.failed | The withdrawal is rejected or failed; the reason is included |
netts.balance.low | A balance falls below the threshold of the rule: your own or a sub-user's |
Deposits and withdrawals are sent within a few seconds of the change; netts.balance.low is checked once a minute. Nothing is sent for changes that happened before the rule existed.
Channels
Account events go where your Address Watch notifications go:
- Telegram —
POST /telegram/link, open the link in Telegram and press Start. See Telegram. - Webhook URL —
POST /endpoints, thenPOST /endpoints/{id}/verify. See Webhook URLs. Deliveries are signed and retried exactly like Address Watch deliveries: see Webhook deliveries.
Without a subscription you can still use /endpoints, /telegram, /events, /deliveries and the rules of account events. Addresses, groups and rules of address events need the subscription.
Rules
One rule = one event and its channels. Rules of account events live in the system group Netts account: leave group_id out.
| Method | Path | What it does |
|---|---|---|
| GET | /rules?event_code=netts.balance.low | Your rules of one event |
| POST | /rules | Create → 201 |
| PATCH | /rules/{id} | Change endpoint_id, telegram, 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: 0d6c2f8a-3e1b-4b7a-9c55-7f2e1a9d4b60" \
-H "Content-Type: application/json" \
-d '{"event_code": "netts.deposit.credited", "telegram": true, "endpoint_id": 5}'| Field | Meaning |
|---|---|
event_code | One of the six events above. |
endpoint_id | A verified webhook URL, or null. |
telegram | true — to Telegram. A rule needs a URL, Telegram or both. |
min_amount | netts.deposit.credited only: the smallest deposit that is sent, per token, in the smallest units — TRX (1 TRX = 1000000) and/or TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t for USDT (1 USDT = 1000000). |
params | netts.balance.low only; required there. See below. |
enabled | true by default. |
Low balance. params of netts.balance.low:
| Key | Meaning |
|---|---|
below_trx | Threshold in TRX: more than 0, up to 6 decimals. |
self | true (default) — watch your own balance. |
subusers | "all" — every active sub-user, including ones added later; or a list of sub-user ids; [] (default) — none. |
curl -X POST https://netts.io/apiv2/watch/rules \
-H "X-API-KEY: your_api_key" \
-H "X-Idempotency-Key: 5b9e7d31-8a2c-4f06-b1e4-3c7a9d2f6e18" \
-H "Content-Type: application/json" \
-d '{"event_code": "netts.balance.low", "telegram": true,
"params": {"below_trx": "50", "self": true, "subusers": [6097, 6774]}}'- A message comes once per fall: when a balance goes from the threshold or above to below it. The next one comes only after the balance is back at or above the threshold and falls again. A balance that is already below the threshold when you create the rule is reported once.
- Each account of the rule is followed on its own: one sub-user falling below sends one message about that sub-user.
- The balance is the spendable Netts balance (
balanceofGET /userinfo). - You may have several low-balance rules, e.g. 100 TRX to a URL and 20 TRX to Telegram.
- A sub-user that is not yours (or no longer active) is refused with
400.
What we send
Common fields of every account event:
| Field | Value |
|---|---|
event | Event code, also in the X-Netts-Event header |
event_id | Unique id of the event, e.g. netts.deposit.credited:65263748; use it to process an event once |
kind, state, confirmed | Always event, confirmed, true: account events are final at once |
scope | account |
groups | [{"id": …, "name": "Netts account", "tags": []}] |
source | netts_account |
time | When it happened (UTC) |
netts.deposit.credited (USDT):
{
"event": "netts.deposit.credited",
"event_id": "netts.deposit.credited:65263748",
"kind": "event",
"state": "confirmed",
"confirmed": true,
"scope": "account",
"account_id": 12345,
"deposit_id": 65263748,
"token": {"type": "trc20", "symbol": "USDT", "name": "Tether USD",
"contract": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t", "decimals": 6},
"amount": "10",
"amount_raw": "10000000",
"credited_trx": "34.27",
"conversion_rate": "0.291171",
"balance_trx": "1606.616197",
"from": "TD8ZekX73Hh3ZvcCcNLng2xro9tKJihANU",
"tx": {"id": "477a875f7a6b0c9e8d1f2a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d6e7f"},
"time": "2026-12-01T13:05:12Z",
"groups": [{"id": 11, "name": "Netts account", "tags": []}],
"source": "netts_account"
}amountis in whole tokens,amount_rawin the smallest units.credited_trx— TRX added to the balance; for USDT, after conversion.conversion_rate— USDT per 1 TRX (USDT only).balance_trx— your Netts balance when the notification was created.
netts.deposit.not_credited has the same deposit fields without credited_trx and balance_trx, plus reason: usdt_not_converted or below_minimum.
netts.withdraw.*: account_id, withdrawal_id, amount_trx, address (where the TRX go), status (created, completed or failed), time; netts.withdraw.failed adds reason.
{
"event": "netts.withdraw.failed",
"event_id": "netts.withdraw.failed:2401",
"account_id": 12345,
"withdrawal_id": 2401,
"amount_trx": "15",
"address": "TDRrxdENQCCm8B8YEoy4uayaqeapw4rent",
"status": "failed",
"reason": "REJECTED: insufficient balance",
"time": "2026-12-01T13:20:44Z"
}netts.balance.low: account_id (the account whose balance fell), owner_id (you), subuser (true for a sub-user), balance_trx, below_trx, rule_id, time.
{
"event": "netts.balance.low",
"event_id": "netts.balance.low:55:6097:1796132483",
"account_id": 6097,
"owner_id": 12345,
"subuser": true,
"balance_trx": "49.01",
"below_trx": "50",
"rule_id": 55,
"time": "2026-12-01T13:41:23Z"
}In Telegram each event is a short message in the language of the link, e.g. 🔻 Balance below 50 TRX · Account: sub-user 6097 · Netts balance: 49.01 TRX.
Errors
| HTTP | Code | When |
|---|---|---|
| 400 | 4001 | A bad field: params on another event, below_trx not a positive number, a sub-user that is not yours, min_amount on an event other than netts.deposit.credited, confirmations or balances on an account event, the same rule twice |
| 404 | — | A rule or URL of another account |
| 409 | 4094 | A rule of an address event without an active subscription |
Related
- Address Watch — events of your TRON addresses, channels, signatures and delivery history
- Withdraw — withdrawal requests; its own webhook keeps working
- Webhooks — order notifications — energy, bandwidth and activation orders