---
title: "Microsoft Auth Code to Token"
method: POST
path: "/Auth/Code"
tags: ["Auth"]
---

# Microsoft Auth Code to Token

`POST /Auth/Code`

**Auth:** Anonymous - no token required.

Converts a Microsoft Auth Code to a Token for Authentication

## Query parameters

- `page` integer, required
- `pageSize` integer, required
- `includes` string[], nullable
- `sort` string, nullable
- `filter` string, nullable

## Request body

- PostConvertCodeToTokenRequest
  - `code` string, nullable
  - `mobile` boolean
  - `codeVerifier` string, nullable

## Response `200`

Success Message - A Token

- PostConvertCodeToTokenResponse
  - `token` string, nullable
  - `meta` Meta
    - `page` integer
    - `pageSize` integer
    - `total` integer

## Other responses

- `400` — An Error Occurred - Could not convert token

## Changes

- **2026-07-31** `df6d21aeebe7` — 1 info
  - added the new optional request property `codeVerifier`

[Change history](https://skmtc.dev/tonbridge/apis/tonbridge-app-api/changes/Auth/Code/post.md)

---

[API](https://skmtc.dev/tonbridge/apis/tonbridge-app-api.md) · [All operations](https://skmtc.dev/tonbridge/apis/tonbridge-app-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tonbridge/tonbridge-app-api/revisions/223cb0feedeb/schema)
