---
title: "Get/refresh access token"
method: POST
path: "/oauth2/access_token"
---

# Get/refresh access token

`POST /oauth2/access_token`

The method allows you to exchange an authorization code to access token and refresh token

## Request body

- object
  - `client_id` string — client_id
  - `client_secret` string — Secret key
  - `grant_type` 'authorization_code' | 'refresh_token' — Type of authorization data (for Authorization code: authorization_code, for refresh token: refresh_token)
  - `code` string — Your authorization code
  - `refresh_token` string — Refresh token
  - `redirect_uri` string — Redirect URI indicated in the integration settings

## Response `200`

200

- object
  - `token_type` string
  - `expires_in` integer
  - `access_token` string
  - `refresh_token` string
  - `server_time` integer

## Other responses

- `400` — 400

---

[API](https://skmtc.net/kommo/apis/kommo-api-references.md) · [All operations](https://skmtc.net/kommo/apis/kommo-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/kommo-api-references/versions/f17af4d23c7c/schema)
