---
title: "Oauth Callback"
method: GET
path: "/v1/mcp-oauth/callback"
tags: ["v1", "public", "mcp-oauth-connect"]
---

# Oauth Callback

`GET /v1/mcp-oauth/callback`

OAuth callback — exchange code for token and store in MCPAuthConfig.

This endpoint does NOT require auth (the user is mid-redirect from the
remote AS). The state token proves the flow was initiated by our /authorize.

## Query parameters

- `code` string
- `state` string
- `error` string
- `error_description` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-04-29** `e1a530c0a2d5` — 1 info
  - endpoint added
- **2026-03-30** `e9c153221160` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/agentarea/apis/agentarea-api/changes/v1/mcp-oauth/callback/get.md)

---

[API](https://skmtc.dev/agentarea/apis/agentarea-api.md) · [All operations](https://skmtc.dev/agentarea/apis/agentarea-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/agentarea/agentarea-api/revisions/d29cbb0c8cc9/schema)
