Skip to main content
POST
/
oauth2
/
refresh_token
Refresh Token
curl --request POST \
  --url https://whitebit.com/oauth2/refresh_token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data client_id=YOUR_CLIENT_ID \
  --data client_secret=YOUR_CLIENT_SECRET \
  --data token=REFRESH_TOKEN
{
  "data": {
    "access_token": "NTBLZJKYNZETNJFIZC0ZNGM1LWJMYTMTODBJYZRKNWE2NMRM",
    "expires_in": 300,
    "refresh_token": "ODZMNMRHM2ETMZQZZI01OTQYLWEWMZATNWQ0NDYZNJBMOWUW",
    "scope": "codes.apply,show.userinfo",
    "token_type": "Bearer"
  }
}

Body

application/x-www-form-urlencoded
client_id
string
required

Your application's client ID

Example:

"YOUR_CLIENT_ID"

client_secret
string
required

Your application's client secret

Example:

"YOUR_CLIENT_SECRET"

token
string
required

The refresh token received from the token endpoint

Example:

"REFRESH_TOKEN"

Response

Successful token refresh

data
object