content/operate/rs/references/rest-api/requests/users/refresh_jwt.md
| Method | Path | Description |
|---|---|---|
| POST | /v1/users/refresh_jwt | Get a new authentication token |
POST /v1/users/refresh_jwt
Generate a new JSON Web Token (JWT) for authentication.
Takes a valid token and returns the new token generated by the request.
POST /v1/users/refresh_jwt
| Key | Value | Description |
|---|---|---|
| Host | cnm.cluster.fqdn | Domain name |
| Authorization | JWT eyJ5bGciOiKIUzI1NiIsInR5cCI6IkpXVCJ9. | |
| </br>eyJpYXViOjE0NjU0NzU0ODYsInVpZFI1IjEiLCJ | ||
| </br>leHAiOjE0NjU0Nz30OTZ9.2xYXumd1rDoE0e | ||
| </br>dFzcLElMOHsshaqQk2HUNgdsUKxMU | Valid JSON Web Token (JWT) |
| Field | Type | Description |
|---|---|---|
| ttl | integer | Time to live - The amount of time in seconds the token will be valid (optional) |
Returns a JSON object that contains the generated access token.
{
"access_token": "eyJ5bGciOiKIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpYXViOjE0NjU0NzU0ODYsInVpZFI1IjEiLCJleHAiOjE0NjU0Nz30OTZ9.2xYXumd1rDoE0edFzcLElMOHsshaqQk2HUNgdsUKxMU"
}
| Code | Description |
|---|---|
| 200 OK | A new token is given. |
| 401 Unauthorized | The token is invalid or password has expired. |