Generate JWT token for Vault SDK
POST/v1/vault/token
Generates a JWT token for a specific end user to access Vault SDK endpoints. This endpoint:
- Creates a short-lived JWT token valid for a specific user
- Token expires based on configured expiration time (default 6 minutes)
- Token is intended for use with token-related operations only
Request
- application/json
Body
required
User ID for which to generate the JWT token
userId stringrequired
The unique identifier of the end user
Responses
- 201
- 400
- 403
- 404
JWT token was successfully generated.
- application/json
- Schema
- Example (from schema)
Schema
traceId string
message string
data
object
token stringrequired
The generated JWT token
{
"traceId": "string",
"message": "string",
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}
Invalid request payload. This can happen if required fields are missing or have invalid formats.
- application/json
- Schema
- Example (from schema)
Schema
traceId string
message string
{
"traceId": "string",
"message": "string"
}
The API key is invalid or the client does not have sufficient permissions.
- application/json
- Schema
- Example (from schema)
Schema
traceId string
message string
{
"traceId": "string",
"message": "string"
}
One of the specified resources was not found. Does not apply for empty result set.
- application/json
- Schema
- Example (from schema)
Schema
traceId string
message string
{
"traceId": "string",
"message": "string"
}
Loading...