Account & security
API keys
Create a key in the Account app, use it with the public API and revoke it when you no longer need it.
Updated
What API keys are for
API keys are personal access tokens for our public REST API, for scripts, CI jobs or your own backend. Most people never need one. The keys page has an "API docs" link with the full reference.
Create a key
- Open the "Account" app, go to the "Security" tab and click "API keys". (The button only appears if API keys are enabled for your account.)
- Under "New key", give it a "Name" you will recognise later, such as "CI bot".
- Under "Scopes", tick only what the key needs: "Supplier — read", "Supplier — write", "Advertiser — read", "Advertiser — write" or "Pricing — read". Each option says what it allows.
- Click "Create key". Copy the key from the "Save this key now." box. It starts with "mtp_" and is shown only once. Then click "I've saved it — dismiss".
Use it
- Send the key in the Authorization: Bearer mtp_… header (or X-API-Key: mtp_…) to https://mtproxy.cloud/api.
- Wallet reads — GET /wallet/balance, /wallet/transactions and /wallet/withdrawals — work with either read scope.
- A key acts as you. Treat it like a password: keep it in an environment variable or a secret store, never in your code.
Manage and revoke
- "Your keys" lists each key by name with its prefix, scopes, creation date and last use ("never used" until its first call).
- "Revoke" disables a key at once and for good. Any script using it stops working immediately.
- To rotate a key: create a new one, switch your scripts to it, then revoke the old one.
Frequently asked questions
- I lost the key.
- It cannot be shown again. Revoke it and create a new one.
- Do keys expire?
- A key works until you revoke it, so revoke the ones you no longer use.
- Is there a request limit?
- Yes. The API docs describe it; when you go over it, requests return an error for a while.