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

# Microsoft365 Callback

`POST /oauth/microsoft365/callback`

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/fastapi.md) · [All operations](https://skmtc.dev/openintake/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintake/fastapi/revisions/4a81645b59f6/schema)
