---
title: "Get access token"
method: POST
path: "/token"
---

# Get access token

`POST /token`

Retrieve an access token, see more information about authorization on https://apidocs.aikido.dev/reference/authorization

## Headers

- `Authorization` string, required

## Request body

- object
  - `grant_type` 'client_credentials' | 'authorization_code' | 'refresh_token', required
  - `code` string — The authorization code in case of authorization_code grant type
  - `redirect_uri` string — The redirect uri in case of authorization_code grant type
  - `refresh_token` string — The refresh token in case of refresh_token grant type

## Response `200`

Authorization has been granted

- object
  - `access_token` string — The access token in JWT format
  - `expires_in` integer — The number of seconds the access token is valid for
  - `token_type` 'bearer'

## Other responses

- `400` — One of the provided parameters is missing, unsupported or invalid

---

[API](https://skmtc.net/aikido/apis/authorization.md) · [All operations](https://skmtc.net/aikido/apis/authorization/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aikido/authorization/versions/5445e7c21137/schema)
