API tokens
There are two kinds of token, they look identical, and they are not the same thing at all:
| Personal API token | Control-plane token | |
|---|---|---|
| For | calling your applications through the gateway | calling the gateway's admin API, or connecting an agent |
| Works on | the data plane port | the admin port only |
| Minted by | anybody signed in, from their profile | anybody who administers a domain (root, infra-admin, app-admin), from the console, for themselves |
| Managed in | /profile/tokens on the data plane; seen and revoked by application administrators on Access tokens |
Access tokens, under Infra or Application |
| Carries | the tenant and group of the session that minted it | a perimeter: how far, over what, from where |
Both are presented the same way, and only that way:
curl -H 'Authorization: Bearer mk_...' https://apps.acme.io/orders
No query parameter, no alternative header. The string starts with mk_ so it is greppable in a log and recognisable to a secret scanner. A request that also carries a session cookie uses the cookie: the token is read only when there is no cookie.
Both kinds live in the same table and look the same to the eye. Only the port they open tells them apart.
Personal API tokens
Meant for a script, a cron job or a service that has to reach an application behind the gateway as a real person.
They are allowed by default; the switch is Allow personal API tokens in Application > Security. With it off, the page does not exist - and existing tokens stop working.
Minting a personal token
The token captures the tenant your session works in, so pick that tenant first.
- Sign in on the data plane, for instance
https://apps.acme.io/login. - Work in the tenant the token is for: choose it at sign-in, or switch to it from the user button's tenant menu.
- Open your profile (
/profile), Security, API tokens. The page is/profile/tokens, and it says New tokens act in this context: followed by the tenant. - Type a Name (
CI pipeline), choose a Validity - thirty, sixty, ninety (pre-selected) or three hundred and sixty-five days, or never - and click Create a token. - Copy the token now: it is shown once. Afterwards the list shows only its first twelve characters and the date it was last used (stamped at most once a minute).
Then check it with a call to an application behind the gateway, as the account:
curl -i -H 'Authorization: Bearer mk_...' https://apps.acme.io/orders
The application answers as it would to the person signed in. A 401 means a token mistyped, revoked or expired; a 403 names the access rule that refused the account.
What it carries is the context of the session that created it: the active tenant and, in exclusive-group mode, the active group. There is no picker. If you need a token for another tenant, switch to it first and then mint one - the page tells you which context it is about to capture, and says so when there is none.
What it does not carry is roles. Roles are recomputed on every request from the account, the tenant and the group, so a role granted tomorrow applies to a token minted today, and a role withdrawn stops applying at once.
The application never sees it. A token the gateway signed the caller in with is removed from the request before it leaves: the application receives the identity its route forwards, not a credential it could replay. A Bearer value the gateway does not accept as one of its tokens is the application's own and goes through untouched.
Revoking is on the same page: disable to park it, revoke to destroy it. Either takes effect across every instance within seconds. A token also stops the moment its owner is disabled, falls outside their access window, or is deleted.
Those who administer the applications (root, app-admin) also see everyone's application tokens on the console's Access tokens screen, with their owner, tenant and last use, and revoke one from its drawer: the token a departed colleague's script still carries, or the one that leaked. They never create one there - a credential is only minted by its owner. The revocation is a token.revoke line of the audit trail, on the owner.
Control-plane tokens
These open the administration API and the agent endpoint. Anybody who administers a domain mints their own, and sees only their own: a token acts with its owner's capabilities, read again on every call, and its perimeter only ever takes away - so it never hands out more than its owner holds.
The screen is Access tokens (under Infra or Application, the same one): one table for every kind, filtered by Console, Application and Internal, the details and the actions in the drawer of a row. Tokens that belong to a connected agent do not appear there: an agent's connection is managed in the MCP section, which mints the same kind of token through a consent flow instead of a copied secret.

Minting a control-plane token
- In the console, open Infra > Access tokens (or Application > Access tokens).
- Click New console token.
- Give it a Token name (
ci-deploy), a Perimeter (Read only or Full access), the ranges it may be Used from (empty: anywhere) and its Expiry. Click Create. - Copy the token from the dialog: it is shown once.
Check it with a call to the admin API, on the console's address:
curl -H 'Authorization: Bearer mk_...' https://admin.acme.io/api/routes
The answer is the list of routes, as JSON. The token of a service that manages its scheduled calls or notifications is made under the Internal filter, with New internal token, and called on the internal plane (port 7070): see Scheduled calls and Notifying your users.
The perimeter, on two axes
A perimeter only ever takes away. It never grants what the owner does not already have.
How far - the perimeter, its API value in parentheses:
| Perimeter | What it opens |
|---|---|
Scheduled calls only (schedules) |
/api/schedules and nothing else, used on the internal plane (port 7070): the credential of a service managing its scheduled calls, when the scheduler's access asks for one. Listed under Internal |
Notifications only (notifications) |
/api/notifications and nothing else, on the internal plane: the credential of a service notifying its users, when the notifications' access asks for one. Listed under Internal. Enterprise |
Read only (readonly) |
reads, and the testers. What counts as a read is decided per endpoint, not by the HTTP verb |
Full access (full) |
everything its owner may do |
An empty perimeter reads as readonly: the safe value when nothing was said.
The two narrow perimeters exist for the same reason: those tokens live in a configuration file or a deployment manifest, often in another team's repository, and they are the ones nobody remembers to rotate. What they open when they leak has to fit on one line.
A token on this plane is an administrator's token: it acts with the powers of whoever minted it, and it is minted for oneself. To give an account fine-grained access to the applications, this is not the place: that is a data-plane token, minted from that account's own profile, with that account's own rights.
From where - a list of CIDR ranges, empty meaning anywhere. It is judged on the TCP peer address, never on a forwarded header.
Living with them
A token's name, perimeter, ranges and expiry can all be edited (Edit, in its drawer) without changing the secret. New secret does the opposite: it rotates the secret and keeps everything else, and the old secret stops working at once.
Every mutation made with a token is audited with the token's name beside the account - admin, via claude-desktop, not admin - so a change an agent made is attributable after the fact.
Neither the Allow personal API tokens switch nor anything else on the application's Security screen affects them: a control-plane token is an administrator's credential, not part of that policy.