Skip to main content
POST
/
auth
/
refresh-token
Refresh an auth token
curl --request POST \
  --url http://localhost:3000/auth/refresh-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "refreshToken": "<string>"
}
'
{
  "statusCode": 123,
  "message": "OK",
  "data": {
    "accessToken": "<string>",
    "refreshToken": "<string>"
  }
}

Authorizations

Authorization
string
header
required

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

Body

application/json
refreshToken
string
required

Response

Default Response

statusCode
number
message
string
default:OK
data
object