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

# Token

`POST /oauth/token`

Exchange a PKCE authorization code or rotate a refresh token.

## Response `200`

Successful Response

- OAuthTokenResponse — Successful authorization-code or refresh-token response.
  - `access_token` string, required
  - `token_type` 'Bearer'
  - `expires_in` integer, required
  - `scope` string, required
  - `refresh_token` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/rowansci/apis/eyrie.md) · [All operations](https://skmtc.dev/rowansci/apis/eyrie/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rowansci/eyrie/revisions/f786577eede6/schema)
