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

# Token

`POST /oauth/token`

RFC 6749 token endpoint. Dispatches on ``grant_type`` and returns a
``TokenResponse`` on success or an RFC 6749 JSON error envelope on failure.

## Response `200`

Successful Response

- TokenResponse — RFC 6749 token endpoint success response.
  - `access_token` string, required
  - `refresh_token` string, nullable
  - `token_type` string
  - `expires_in` integer, required
  - `scope` string, required
  - `org` string, nullable
  - `tier` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/compresr/apis/compresr-platform-api.md) · [All operations](https://skmtc.net/compresr/apis/compresr-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/compresr/compresr-platform-api/revisions/93ee959dfa51/schema)
