Authentication
Refresh Token
This endpoint creates a new access token using a refresh token.
Request Headers:
- Content-Type: application/x-www-form-urlencoded
- Refresh token duration is 600 seconds
- Rate limit: 1 request per second
- The IP of the client must be added to WB Allowlist </Warning>
post/oauth2/refresh_token
Request
- Base URLhttps://whitebit.com
- AuthAPI key in header X-TXC-APIKEY and API key in header X-TXC-PAYLOAD and API key in header X-TXC-SIGNATURE
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body application/x-www-form-urlencoded
Example request
{
"client_id": "YOUR_CLIENT_ID",
"client_secret": "YOUR_CLIENT_SECRET",
"token": "REFRESH_TOKEN"
}Response
Successful token refresh
Example response
{
"data": {
"access_token": "NTBLZJKYNZETNJFIZC0ZNGM1LWJMYTMTODBJYZRKNWE2NMRM",
"expires_in": 300,
"refresh_token": "ODZMNMRHM2ETMZQZZI01OTQYLWEWMZATNWQ0NDYZNJBMOWUW",
"scope": "codes.apply,show.userinfo",
"token_type": "Bearer"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.