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

# Userportal Microsoft Auth Callback

`GET /userportal/auth/microsoft/callback`

## Request

- Base URL: `https://api.feedback1.ai/api/v1`
- URL: `https://api.feedback1.ai/api/v1/userportal/auth/microsoft/callback`
- Auth: none declared

Microsoft OAuth callback for userportal.

Exchanges code for tokens, gets user info, creates/updates contact,
and redirects back to userportal with session token.

Uses short-lived DB sessions so Microsoft HTTP does not pin a pool slot.

## Query parameters

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

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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