---
title: "Teams Oauth Callback"
method: GET
path: "/v1/webhooks/teams/oauth/callback"
tags: ["webhooks"]
---

# Teams Oauth Callback

`GET /v1/webhooks/teams/oauth/callback`

## Request

- Base URL: `https://api.patricia.app` (the document declares no server; this is the origin it was published from)
- URL: `https://api.patricia.app/v1/webhooks/teams/oauth/callback`
- Auth: none declared

Azure AD consent redirect: verify state, redeem the code, persist the install, then
bounce the browser back to the dashboard with a success/error flag (so the admin lands
in-app, not on raw JSON).

The page it bounces to rides in the signed state, narrowed to an exact allowlist, and falls
back to workspace settings.

Azure also sends ``tenant`` / ``admin_consent`` query params; they are intentionally not
consumed: the tenant is taken from the verified code exchange, not the redirect.

## Query parameters

- `code` string, nullable
- `state` string, nullable
- `error` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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