---
title: "Get an access token"
method: POST
path: "/oauth/accessToken"
tags: ["OAuth"]
---

# Get an access token

`POST /oauth/accessToken`

## Request body

- object
  - `client_id` string, required
  - `client_secret` string, required
  - `redirect_uri` string, required
  - `grant_type` 'authorization_code' | 'refresh_token', required
  - `code` string — Required if grant_type is authorization_code
  - `refresh_token` string — Required if grant_type is refresh_token

## Response `200`

The access token

- object
  - `access_token` string
  - `expires_at` integer
  - `refresh_token` string

## Other responses

- `401` — Unauthorized
- `422` — Insufficient credits or missing license
- `500` — Unexpected error

---

[API](https://skmtc.dev/seamless/apis/seamless-api.md) · [All operations](https://skmtc.dev/seamless/apis/seamless-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/seamless/seamless-api/revisions/447164d1d713/schema)
