---
title: "Native Exchange"
method: POST
path: "/auth/native/exchange"
---

# Native Exchange

`POST /auth/native/exchange`

## Request

- Base URL: `https://app.wunel.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.wunel.com/auth/native/exchange`
- Auth: none declared

Trade a native sign-in code for a real session cookie on THIS connection.
Only the client that started the flow can redeem it: the code carries the
PKCE challenge and the caller must present the matching verifier.

## Request body

- NativeExchangeRequest
  - `code` string, required
  - `verifier` string, required

## Response `200`

Successful Response

- UserOut
  - `id` string, required
  - `email` string, required
  - `display_name` string, required
  - `color` string, required
  - `email_verified` boolean
  - `is_internal` boolean
  - `is_test` boolean
  - `ask_name` boolean
  - `share_nudge` boolean

## Other responses

- `422`: Validation Error

---

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