---
title: "Exchange auth-user device session for platform token"
method: POST
path: "/auth/platform/exchange"
tags: ["OAuth Authentication"]
---

# Exchange auth-user device session for platform token

`POST /auth/platform/exchange`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/auth/platform/exchange`
- Auth: HTTP bearer

Exchanges a verified auth-user device-flow session into a platform token for CLI usage.
The target platform user is derived from authenticated auth-user mapping; client cannot select another user.

## Request body

- object
  - `client_id` string, required

## Response `200`

Platform token minted

- PlatformExchangeResponse
  - `token` string, required
  - `user_id` string, required
  - `token_id` string, uuid, required
  - `expires_at` string, date-time, required

## Other responses

- `403`: Exchange not allowed for this session/client/project, or the account's email domain is not in `allowed_email_domains` while `allowed_email_domains_mode` is `signup_and_signin`. The domain is re-checked here because the minted platform token outlives the session it is exchanged from.

## Changes

- **2026-09-19** `3a6f365f3f35`: 2 breaking, 6 info
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `403`
  - added the optional property `code` to the response with the `403` status
  - added the required property `error` to the response with the `403` status
  - …4 more
- **2026-08-27** `bb44e98aba2e`: 7 breaking, 1 warning
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `403`
  - removed the required property `error` from the response with the `403` status
  - removed the required property `expires_at` from the response with the `200` status
  - …4 more
- **2026-07-27** `bb52784e098a`: 1 info
  - added the optional property `code` to the response with the `403` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/auth/platform/exchange/post.md)

---

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