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

# Exchange Token

`POST /api/plugin-oauth/token`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/plugin-oauth/token`
- Auth: none declared

Exchanges a code or refresh token for a scoped access token.

## Headers

- `authorization` string, nullable

## Request body `application/x-www-form-urlencoded`

- BodyExchangeTokenApiPluginOauthTokenPost
  - `grant_type` string, required
  - `client_id` string, nullable
  - `code` string, nullable
  - `redirect_uri` string, nullable
  - `code_verifier` string, nullable
  - `refresh_token` string, nullable
  - `resource` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/maritime/apis/maritime-api.md) - [All operations](https://skmtc.dev/maritime/apis/maritime-api/llms.txt) - [OpenAPI document](https://skmtc.dev/maritime/apis/maritime-api/revisions/acd712090ad6?raw)
