Skip to main content
URL: https://xapi.duelduck.com/auth/refresh Refreshes the user’s JWT tokens using the provided refresh token from the Authorization header. Returns a new pair of access and refresh tokens.

Parameters

NameTypeHeaderRequiredDescription
AuthorizationstringBearer
<refresh_token>
yesAuthorization
Bearer token

Responses

Response content type: application / json .

Code 200

Successfully refreshed tokens.
{
  "jwt_info": {
    "access_token": "string",
    "refresh_token": "string"
  }
}

Code 401

Unauthorized - Invalid or expired refresh token.
{
  "message": "string",
  "status": 0
}

Code 500

Internal server error.
{
  "message": "string",
  "status": 0
}