Create a token
Create a new service account token for API authentication
POST
Body parameters
name
type: string
requiredA display name for the token. Used to identify the token in the dashboard and API responses.
scopes
type: string[]
requiredPermissions granted to the token. One or more of `"read"`, `"write"`, `"admin"`.
expires_in_seconds
type: integer
Number of seconds until the token expires. Omit to create a token that never expires.
[Warning] The raw token value is only returned once at creation time. It cannot be retrieved again. Store it securely — if lost, you must delete the token and create a new one.
[Warning] The raw
tokenvalue is only returned once at creation time. It cannot be retrieved again. Store it securely — if lost, you must delete the token and create a new one.
Previous → Set retention policy
Next List tokens →