API Key Authentication
All API requests require an API key passed in theX-API-Key header.
Getting an API key
- Sign up at tronrental.com
- Go to Dashboard → API Keys
- Click Create API Key
- Copy and securely store your key — it’s shown only once
IP Whitelist (optional)
You can restrict your API key to specific IP addresses for additional security. Configure this in the dashboard when creating or editing a key.Key permissions
Each API key carries scopes — the operations it is allowed to perform. You choose them in the dashboard when you create or edit a key. A new key gets every read and write scope (buying energy and bandwidth, Smart Mode, reading the balance and history, and more) exceptwithdraw: that scope is
enabled separately and requires 2FA and an IP whitelist. A request outside the key’s scopes is refused
with HTTP 403. The full list: List API Key Scopes.
Node API keys
Node API — access to TRON full nodes atnode.tronrental.com — has keys of its
own. You create them as endpoints in Dashboard → Node API.
A Node API key works only at the node: this API answers it with 403 NODE_API_KEY_ONLY. The API keys
described on this page do not work at the node either. See
Node API → Endpoints and keys.
Key usage & request log
Every request authenticated with an API key is recorded for 7 days: method, path, status code, latency and client IP. Query strings are not stored in this view. Open Dashboard → API Keys and expand a key to see its recent requests; the Last Used column shows the most recent call (the auth-time mark is updated at most once per 5 minutes, the request log is exact). The log is available from the dashboard only — an API key cannot read its own log.Rate Limits
API keys are rate-limited per account, not per key: every key of one account shares a single budget. See Rate Limits for details.Errors
Authentication errors return HTTP401:
403.