cURL
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" } }
This endpoint creates a new access token using a refresh token.
Request Headers:
Important Notes:
Your application's client ID
"YOUR_CLIENT_ID"
Your application's client secret
"YOUR_CLIENT_SECRET"
The refresh token received from the token endpoint
"REFRESH_TOKEN"
Successful token refresh
Show child attributes
The new access token for API requests
"NTBLZJKYNZETNJFIZC0ZNGM1LWJMYTMTODBJYZRKNWE2NMRM"
Token expiration time in seconds
300
New refresh token
"ODZMNMRHM2ETMZQZZI01OTQYLWEWMZATNWQ0NDYZNJBMOWUW"
Comma-separated list of granted scopes
"codes.apply,show.userinfo"
Type of the token
"Bearer"