---
title: "Exchange authorization code or refresh token"
method: POST
path: "/api/oauth/token"
---

# Exchange authorization code or refresh token

`POST /api/oauth/token`

## Response `200`

Access and refresh tokens

- object
  - `access_token` string
  - `token_type` string
  - `expires_in` integer
  - `refresh_token` string

## Other responses

- `4XX` — Error
- `5XX` — Server error

---

[API](https://skmtc.net/swiftlynx/apis/swiftlynx-api.md) · [All operations](https://skmtc.net/swiftlynx/apis/swiftlynx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/swiftlynx/swiftlynx-api/versions/26e847abe572/schema)
