v1

latestOpenAPI 3.0.12026-07-1714724311.1 KB
Authentication

Refresh Token

Refresh a Temporary Access Token.

post/auth/refresh

Request body

refresh_tokenstring

JWT access token you want to refresh. This token can't be expired.

mode'json' | 'cookie' | 'session'

Whether to submit and retrieve the refresh token in the JSON response, or in a httpOnly cookie.

Example request

{
  "refresh_token": "eyJ0eXAiOiJKV..."
}

Response

Successful request

Example response

{
  "data": {
    "access_token": "eyJhbGciOiJI...",
    "expires": 900,
    "refresh_token": "Gy-caJMpmGTA..."
  }
}