---
title: "Microsoft Callback"
method: GET
path: "/auth/microsoft/callback"
tags: ["Auth"]
---

# Microsoft Callback

`GET /auth/microsoft/callback`

## Request

- Base URL: `https://api.openintake.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openintake.ai/auth/microsoft/callback`
- Auth: none declared

OAuth callback endpoint for Microsoft Sign-In.
``app`` names the callback page Microsoft returned to, so the code is
exchanged with the redirect URI it was issued for.
Exchanges authorization code for access token, gets user info, and creates/logs in user.
Returns JSON with user data - frontend will handle navigation.

## Query parameters

- `code` string, required
- `state` string, required
- `app` 'dashboard' | 'portal'

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-19** `e419e063b238`: 1 info
  - added the new optional `query` request parameter `app`

[Operation history](https://skmtc.dev/openintake/apis/openintake-api/changes/auth/microsoft/callback/get.md)

---

[API](https://skmtc.dev/openintake/apis/openintake-api.md) - [All operations](https://skmtc.dev/openintake/apis/openintake-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openintake/apis/openintake-api/revisions/de90a8dcbc07?raw)
