Skip to main content
POST
/
api
/
refresh_token
Refresh JWT Token
curl --request POST \
  --url https://id.lunarmc.ai/api/refresh_token/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "refresh": "<string>"
}
'
{
  "access": "<string>"
}

Authorizations

Authorization
string
header
required

JWT token obtained from /api/get_token/

Body

application/json
refresh
string
required

JWT refresh token

Response

200 - application/json

Token refreshed

access
string

New JWT access token