Create token
CreateToken
Creates a new token for the authenticated account. This can be used in various scenarios:
- Creating short-lived tokens with an existing long-lived token for improved security.
- Creating a token that is scoped to a subset of resources that are normally accessible to the account. This is useful for temporary tokens that are used in specific contexts (e.g. CI/CD systems or AI tooling).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Token expiration in seconds. Minimum is 300 seconds (5 minutes), maximum is 86400*365 seconds (1 year). To create a non-expiring token, set the value to 0.
This property restricts the created token's access only to resources that sit within the hierarchy/hierarchies
defined by resource_scope_keys.
Important: this does not give access to the resources by itself; it is a filter that is applied on top of the existing access
rights of the account for which the token is being created.
Response
OK
Created token

