---
title: "Shorthand token exchange"
method: POST
path: "/auth/token/{grant}/{appId}"
tags: ["auth"]
---

# Shorthand token exchange

`POST /auth/token/{grant}/{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/auth/token/{grant}/{appId}`
- Auth: none declared

Exchange auth code or refresh token using app-specific defaults. Grant is "code" or "refresh".

## Path parameters

- `grant` 'code' | 'refresh', required
- `appId` string, required

## Response `200`

Token exchange successful

## Other responses

- `400`: Invalid grant type

---

[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)
