---
title: "Microsoft365 Callback"
method: POST
path: "/oauth/microsoft365/callback"
tags: ["OAuth"]
---

# Microsoft365 Callback

`POST /oauth/microsoft365/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/oauth/microsoft365/callback`
- Auth: none declared

Handle the callback from Microsoft after admin consent.
The frontend calls this after being redirected back from Microsoft.

## Request body

- Microsoft365CallbackRequest: Request body for Microsoft 365 admin consent callback
  - `tenant` string, required
  - `admin_consent` string, required
  - `state` string, required

## Response `200`

Successful Response

- Microsoft365Status: Microsoft 365 integration status
  - `connected` boolean, required
  - `tenant_id` string, nullable

## Other responses

- `422`: Validation Error

---

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