cURL
curl --request POST \ --url https://whitebit.com/oauth2/token \ --header 'Content-Type: application/x-www-form-urlencoded' \ --data client_id=YOUR_CLIENT_ID \ --data client_secret=YOUR_CLIENT_SECRET \ --data code=AUTHORIZATION_CODE
{ "data": { "access_token": "MZM1MDBMMJYTNWM4MI0ZNTIYLTKXNDATNZY1MZHKM2Y2MJY3", "expires_in": 300, "refresh_token": "ODK5ZTVKZDUTYTI5ZC01NWJHLTGZZDMTYWFKYTNMNJHHMGZM", "scope": "codes.apply,show.userinfo", "token_type": "Bearer" } }
This endpoint activates an access token by exchanging an authorization code.
Important Notes:
Request Headers:
Your application's client ID
"YOUR_CLIENT_ID"
Your application's client secret
"YOUR_CLIENT_SECRET"
The authorization code received from the authorization endpoint
"AUTHORIZATION_CODE"
Successful token exchange
Show child attributes