Skip to main content
POST
/
Agent
/
Account
/
Refresh
Refresh
curl --request POST \
  --url https://{host}/Agent/Account/Refresh \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "seconds": 3600
}
'
{
  "jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "expires": "2024-08-02T12:22:11Z"
}

Overview

Use this endpoint to obtain a new JWT before the current one expires. If refresh fails or the token is expired, log in again.

Authentication

Requires a valid JWT bearer token.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
seconds
integer
required

Response

200 - application/json

Success

jwt
string
required
expires
string
required