Skip to main content
POST
/
oauth2
/
token
Get Access Token
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"
  }
}

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"

code
string
required

The authorization code received from the authorization endpoint

Example:

"AUTHORIZATION_CODE"

Response

Successful token exchange

data
object