Key and place

One active key per account, used from one place at a time.

The key

Format: tgm_live_<prefix>_<secret> (8-character prefix, 43-character secret). The secret is shown only once, at creation; the prefix identifies the key in your panel.

  • Keep it in an environment variable (TGM_API_KEY) or a secret manager, never in committed code.
  • Send it only in the Authorization: Bearer header; a key in a URL gets 400 KEY_IN_QUERY and must be replaced.
  • Never use it in a browser or in an app you give to others.

Replacing the key

Replace it in your panel up to 5 times a day, even while it is locked. The old key stops within seconds (401 KEY_REVOKED); your plan does not change.

One place at a time

A place is one address: an IPv4, or an IPv6 /64 block. One family at a time.

  • The first data call made with the key defines the place. Your panel shows it.
  • Calls from any other address, including the other IP family of the same machine, get 403 IP_NOT_ALLOWED; seen_ip is the address we saw. A refused call never locks the key.
  • To move, release the place in your panel (up to 3 times a day): the next data call defines the new one.
Machine with both IPv4 and IPv6? The place takes one of them; if a call goes out through the other, the refusal shows that address in seen_ip. Force one family (for example curl -4) to keep the place stable.

Proxies and shared addresses

Shared egress networks, such as proxy services and serverless platforms, get 403 PROXY_NOT_SUPPORTED. Call from your own server or connection.

Locked keys

403 KEY_LOCKED says why in reason:

reasonWhyUntil when
rate_abuseKept calling after 429 instead of waiting.locked_until and Retry-After say when.
region_jumpUsed from places far apart in a short time, as when a key leaks.Until you replace the key (locked_until is null).
manualWe locked it.Until we release it.

Plan and account

Your panel shows the key prefix, the place, the modules in force with their end date and today’s units. Every answer also carries X-Quota-Remaining (units left today).

  • Plan ended: data calls get 403 PLAN_EXPIRED. Order again on the plan page; the key stays the same.
  • Suspended account: 403 ACCOUNT_SUSPENDED. Contact us through the feedback chat on the site.