---
title: "Exchange CLI authorization code for token"
method: POST
path: "/auth/cli/token"
tags: ["auth"]
---

# Exchange CLI authorization code for token

`POST /auth/cli/token`

## 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/cli/token`
- Auth: none declared

PKCE-bound exchange. SHA256(code_verifier) must equal the challenge committed at /authorize.

## Response `200`

CliToken issued

## Other responses

- `400`: invalid_request | invalid_grant | expired_grant

---

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