---
title: "Oauth - Token"
method: POST
path: "/oauth/token"
tags: ["oauth"]
---

# Oauth - Token

`POST /oauth/token`

/oauth/token

## Request body

- object
  - `grant_type` string
  - `code` string
  - `client_id` string
  - `client_secret` string
  - `state` string
  - `req` string
  - `res` string

## Response `200`

OK

## Other responses

- `400` — Malformed request. Check that you have the correct parameters and that they are formatted correctly.
- `401` — Unauthorized. Did you forget to include your API key?

## Changes

- **2024-04-22** `08cd9cfa14dd` — 1 breaking, 7 warning, 2 info
  - added required request body
  - deleted the `query` request parameter `client_id`
  - deleted the `query` request parameter `client_secret`
  - deleted the `query` request parameter `code`
  - …6 more
- **2024-04-19** `46ceda528000` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/skulabs/apis/skulabs-api/changes/oauth/token/post.md)

---

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