Create Agent Auth Token
Mint a fresh API key for the calling user. The returned token value is shown once — store it immediately. Equivalent to POST /v1/keys/api but without a description body (the server hardcodes "Regenerated via /auth/token"); intended for the dashboard's "regenerate token" button.
For programmatic use prefer /keys/api — it accepts a description field, IP allowlist, and expiry, all of which this endpoint silently ignores. Note: despite the name, this endpoint mints account-level API keys, not the per-tunnel agent auth tokens — those go through POST /v1/keys/auth.
Account scope: the minted key belongs to your active account. JWT sessions (from /auth/login) instead carry an active_account_id claim and are scoped to a single account — call POST /v1/user/switch-account to receive a new token scoped to a different account.
Request body
None. Any body is ignored. The owner of the new key is the authenticated user.
Response (200 OK)
et_sk_...). Use this for X-API-KEY headers on subsequent requests. Cannot be retrieved later — store immediately.