Create Auth Token
Mint an agent auth token. The agent reads this value from the API_TOKEN environment variable and presents it during handshake with the tunnel-server. The full token is returned only once — store it on the agent's host immediately.
Account scope: the token belongs to your active account and may carry traffic for that account's endpoints per your role's permissions. Use switch account to mint a token in a different account.
Bind the token to a specific endpoint (or tunnel) for least-privilege: a per-tunnel token can only carry traffic for that tunnel, so a leak from one machine doesn't expose your other endpoints. Unbound tokens (no endpoint_id) are convenient for development and one-shot tunnels but are powerful — keep them ephemeral.
The Python SDK calls this endpoint internally on every ngris.connect(), mints a new token, runs the agent with it, and revokes the token via DELETE /v1/keys/auth/{id} on shutdown.
Request body
"ngris-python sdk (http localhost:8080)" so administrators can see "where did this token come from".Response (200 OK)
et_at_ + base32 chars. Set on the agent's host as the API_TOKEN environment variable.