---
title: "Get an access token."
method: POST
path: "/api/v2/oauth/token"
tags: ["Authorization"]
---

# Get an access token.

`POST /api/v2/oauth/token`

Get the OAUTH v2 access token in order to access other v2 endpoints. The Black Kite API v2 uses Client Credential grant type. This endpoint is an alternative to the default Authorization method provided specifically for Swagger, which uses Basic Authentication for in order to get an access token. <br/> This same endpoint version, on the other hand, supports POST body for sending client id and client credential values.

## Request body

- object
  - `grant_type` 'client_credentials', required
  - `client_id` string, required
  - `client_secret` string, required

## Response `200`

Success

- object
  - `access_token` string — The JWT token produced as an access token.
  - `token_type` 'bearer' — The type of the token, which should contain only bearer.
  - `expires_in` number — The life time of the access_token in seconds.
  - `tenant_id` number — The identifier of tenant owning the client credentials.

## Other responses

- `400` — BadRequest
- `401` — Unauthorized
- `default` — Failure

---

[API](https://skmtc.net/blackkitetech/apis/black-kite-api.md) · [All operations](https://skmtc.net/blackkitetech/apis/black-kite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/blackkitetech/black-kite-api/revisions/7dadaba760fb/schema)
