---
title: "POST /intermediate/v1/redeem-microsoft-oauth-code"
method: POST
path: "/intermediate/v1/redeem-microsoft-oauth-code"
tags: ["IntermediateService"]
---

# POST /intermediate/v1/redeem-microsoft-oauth-code

`POST /intermediate/v1/redeem-microsoft-oauth-code`

## Request body

- RedeemMicrosoftOAuthCodeRequest
  - `code` string
  - `state` string
  - `redirectUrl` string

## Response `200`

OK

- RedeemMicrosoftOAuthCodeResponse

## Other responses

- `default` — Default error response

## Changes

- **2024-12-13** `0d632e4d1385` — 1 info
  - added the new optional request property `redirectUrl`
- **2024-12-07** `34242334f9e4` — 1 info
  - endpoint added
- **2024-12-03** `b75276e17ae2` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tesseral-labs/apis/intermediateservice-api/changes/intermediate/v1/redeem-microsoft-oauth-code/post.md)

---

[API](https://skmtc.dev/tesseral-labs/apis/intermediateservice-api.md) · [All operations](https://skmtc.dev/tesseral-labs/apis/intermediateservice-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tesseral-labs/intermediateservice-api/revisions/367432db5a64/schema)
