Billing Tools
Wallet and auth for every paid tool: get an API key, get your balance, buy tokens, set auto-reload, list invoices
The Billing category is the auth and wallet layer behind every paid tool. It gets you an API key, tracks your token balance, tops up via card, and lists invoice history. Every paid tool consults this layer to authorize requests and meter usage.
All Billing tools are free: the wallet itself never consumes tokens. New accounts start with 100 free tokens ($1 = 100 tokens).
Tools
get_api_key
Get a new API key. A verification email is sent to the address you provide; calling get_api_key again with the code finalizes the key.
After verification, the key (prefixed sk_) is returned. New accounts receive 100 free tokens.
get_token_balance
Returns the current balance and the cost of every tool, grouped by server.
buy_tokens
Charge a saved card and credit tokens.
set_auto_reload
Configure automatic top-ups when the balance falls below a threshold.
list_invoices
Returns purchase and charge history.
get_billing_portal
Returns a short-lived Stripe billing-portal URL where you can update the saved card, download receipts, and manage payment details in Stripe’s hosted UI.
Managing API keys
list_api_keys shows every key in the workspace with its value obfuscated, so you can audit what exists without exposing secrets. revoke_api_key deletes a specific key by api_key_id, with a belongs-to check so a key can only revoke keys in its own workspace. The CLI wraps these as gtm-tools admin keys list and gtm-tools admin keys revoke <id>.
The wallet model
Every paid tool publishes its cost. When a tool is called, the cost is debited up front, before the tool runs.