List the caller's tokens with the scope catalog and the server's token policy
Not available to personal access tokens; call it from a signed-in session.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
Success
curl -X GET 'http://localhost:7091/api/user/tokens'List a user's tokens, revoked ones included GET
Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.
Issue a new secret for a token and reset its expiry POST
Name, scopes and restrictions stay; the old secret stops working at once. `expires_in_days` is optional and defaults to the lifetime the token was last issued with. An expired token can be renewed this way; a revoked one cannot. The plaintext `token` is returned here and never again. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.