# Token

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 named type of the API.

## Fields

- `address` (string or null): Client IP address the token is bound to, or null if the token is unbound.
- `created_at` (string)
- `expires_at` (string or null)
- `id` (integer)
- `kind` (string, one of session, api): A session token is issued at login, bound to the client's IP address and invalidated by a password change. An api token is created manually through the web interface or at the shell.
- `label` (string)
- `opened_by` (string or null): Username of the administrator or reseller who opened the session for the user from the user's account page. The value is null for sessions the user opened and for manually created tokens.
- `plugin` (string or null): Plugin associated with a token of kind plugin, whether the token is the daemon's key or a viewer's ticket for the plugin's page. The value is null for other token kinds.
- `scopes` (array of Scope)
- `user` (string)
- `user_agent` (string or null): Client-supplied User-Agent from login, limited to 255 printable characters and suitable only for distinguishing your own sessions. The value is null if the client omitted User-Agent or the token was created manually.

## Used by

- [GET /auth/me](https://urbestack.com/docs/api/get-auth-me.md): Get the authenticated user and token details
- [GET /tokens](https://urbestack.com/docs/api/get-tokens.md): List the caller's sessions and API tokens
- [GET /users/{name}/tokens](https://urbestack.com/docs/api/get-users-name-tokens.md): List a user's sessions and API tokens
