---
title: "Exchange a Keycloak authorization code (from Google/Apple broker) for tokens"
method: POST
path: "/auth/oauth-exchange"
tags: ["Auth"]
---

# Exchange a Keycloak authorization code (from Google/Apple broker) for tokens

`POST /auth/oauth-exchange`

## Request

- Base URL: `http://localhost:3000`
- URL: `http://localhost:3000/auth/oauth-exchange`
- Auth: HTTP bearer

## Request body

- object
  - `code` string, required
  - `redirectUri` string, required
  - `codeVerifier` string
  - `clientId` string

## Response `200`

Default Response

---

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