---
title: "Generate auth code from access token"
method: POST
path: "/v1/auth/token/code-from-token/{appId}"
tags: ["auth"]
---

# Generate auth code from access token

`POST /v1/auth/token/code-from-token/{appId}`

## Request

- Base URL: `https://api.thebridge.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thebridge.dev/v1/auth/token/code-from-token/{appId}`
- Auth: none declared

Convert an SDK access token into a short-lived authorization code for OAuth callback.

## Path parameters

- `appId` string, required

## Response `200`

Authorization code generated

## Other responses

- `401`: Invalid access token or mismatched app

---

[API](https://skmtc.dev/thebridge/apis/bridge-api.md) · [All operations](https://skmtc.dev/thebridge/apis/bridge-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebridge/apis/bridge-api/revisions/290fffcb3d80?raw)
