---
title: "Outlook OAuth callback"
method: GET
path: "/apps/outlook/oauth-callback"
tags: ["Integrations"]
---

# Outlook OAuth callback

`GET /apps/outlook/oauth-callback`

Handles OAuth callback from Microsoft after user authorization. Exchanges authorization code for access token and creates inbox account.

## Query parameters

- `code` string — OAuth authorization code from Microsoft
- `state` string, required — Encrypted OAuth state parameter
- `error` string — OAuth error code if authorization failed

## Other responses

- `302` — Redirect to dashboard
- `400` — Invalid request parameters
- `500` — Failed to process OAuth callback

---

[API](https://skmtc.net/midday-ai/apis/midday-api.md) · [All operations](https://skmtc.net/midday-ai/apis/midday-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/midday-ai/midday-api/versions/c0df9243c1b0/schema)
