---
title: "Exchange Auth Code"
method: POST
path: "/api/v1/auth/exchange"
tags: ["auth"]
---

# Exchange Auth Code

`POST /api/v1/auth/exchange`

Exchange a short-lived authorization code for JWT tokens.

The code is issued during the OAuth callback redirect and is valid for 60 seconds.

## Request body

- CodeExchangeRequest
  - `code` string, required

## Response `200`

Successful Response

- EnvelopeDict
  - `data` object, required
  - `meta` Meta
    - `request_id` string
    - `timestamp` string, date-time
    - `total` integer, nullable
    - `truncated` boolean, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-02** `6bd3ca9033ae` — 2 info
  - the `meta` response's property default value changed from `{"request_id":"","timestamp":"2026-09-01T18:59:27.102736"}` to `{"request_id":"","timestamp":"2026-09-02T16:58:28.431377"}` for the status `200`
  - the `timestamp` response's property default value changed from `2026-09-01T18:59:27.102736` to `2026-09-02T16:58:28.431377` for the status `200`

[Change history](https://skmtc.dev/minro/apis/minro-cs-platform/changes/api/v1/auth/exchange/post.md)

---

[API](https://skmtc.dev/minro/apis/minro-cs-platform.md) · [All operations](https://skmtc.dev/minro/apis/minro-cs-platform/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/minro/minro-cs-platform/revisions/eb854265cf29/schema)
