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
The access token for API requests
"MZM1MDBMMJYTNWM4MI0ZNTIYLTKXNDATNZY1MZHKM2Y2MJY3"
Token expiration time in seconds
300
Token used to refresh the access token
"ODK5ZTVKZDUTYTI5ZC01NWJHLTGZZDMTYWFKYTNMNJHHMGZM"
Comma-separated list of granted scopes
"codes.apply,show.userinfo"
Type of the token
"Bearer"