Generate user API token
Generates a new API token (JWT) for a specific user.
Generates a new API token (JWT) for a specific user.
AuthorizationBearer <token>
Preferred API authentication. Use a JWT with the api audience.
In: header
Path Parameters
id*string
The unique identifier (UUID) of the user to generate a token for. Cannot be the ID of the requesting user (cannot generate token for self via this method). Cannot be the root user ID (00000000-0000-0000-0000-000000000000).
Format
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X POST "http://127.0.0.1:38765/v1/users/p0/tokens/api:generate"{ "token": "string"}{ "code": 0, "grpc-code": "string", "message": "string", "stack-trace": "string", "details": [ {} ]}{ "code": 0, "grpc-code": "string", "message": "string", "stack-trace": "string", "details": [ {} ]}{ "code": 0, "grpc-code": "string", "message": "string", "stack-trace": "string", "details": [ {} ]}How is this page?