---
title: "Get Access Token"
method: POST
path: "/oauth2/token"
tags: ["Authentication"]
---

# Get Access Token

`POST /oauth2/token`

The endpoint activates an access token by exchanging an authorization code.

<Warning>
**Important Notes:**

- Access token duration is 300 seconds
- The IP of the client must be added to WB Allowlist
</Warning>

**Request Headers:**
- Content-Type: application/x-www-form-urlencoded

## Response `200`

Successful token exchange

- object
  - `data` object
    - `access_token` string — The access token for API requests
    - `expires_in` integer — Token expiration time in seconds
    - `refresh_token` string — Token used to refresh the access token
    - `scope` string — Comma-separated list of granted scopes
    - `token_type` string — Type of the token

## Other responses

- `401` — Not authorized
- `422` — Validation errors

---

[API](https://skmtc.net/whitebit/apis/whitebit-private-http-api-v4.md) · [All operations](https://skmtc.net/whitebit/apis/whitebit-private-http-api-v4/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/whitebit/whitebit-private-http-api-v4/revisions/76c9def9942f/schema)
