Skip to main content
POST
Creates a short-lived API token by exchanging the master key. Useful for granting temporary access without sharing the master key itself. The returned token works with all authenticated endpoints (execution, file I/O, sessions) but not with admin endpoints that require the master key (key management). Requires the master key. DB-backed auth must be enabled.
string
Label for the token. Defaults to login-<ISO timestamp>.
string
Tenant to associate with the token. Defaults to "default".
number
Token lifetime in milliseconds. Defaults to auth.defaultTtlMs from server config.
string
Short-lived API token prefixed with isol8_.
string
ISO 8601 expiration timestamp.
string
UUID of the underlying key record. Can be used with DELETE /auth/keys/:id to revoke early.
Tokens created via login are regular DB-backed keys internally. They appear in GET /auth/keys and can be revoked with DELETE /auth/keys/:id.