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

# Exchange Token

`POST /v1/oauth/token`

Exchange authorization code for access token.

## Query parameters

- `code` string, required — Authorization code from OAuth callback

## Response `200`

Successful Response

- OAuthTokenResponse — Response for token exchange.
  - `access_token` string, required — WorkOS access token
  - `expires_in` integer, required — Token expiration in seconds
  - `refresh_token` string, nullable — Refresh token (if available)
  - `token_type` string — Token type

## Other responses

- `422` — Validation Error

---

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