Skip to main content
POST
/
refresh
Refresh token.
curl --request POST \
  --url https://lab.trustos.telefonicatech.com/id/v2/refresh \
  --header 'Authorization: Bearer <token>'
{
  "statusCode": 200,
  "message": "Sucessful refresh",
  "data": {
    "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.e"
  }
}
Over time, a JWT may expire, which means that the user will need to log in again to obtain a new JWT. However, the “/refresh” method provides a way for the user to refresh their existing login session without having to log in again.

Authorizations

Authorization
string
header
required

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

Response

Successful token refresh.

statusCode
number

Request status code.

Example:

200

message
string

Message returned by the request.

Example:

"Sucessful refresh"

data
object

Data returned by the request.

I