---
title: "OAuth callback for an External MCP Connection"
method: GET
path: "/v1/mcp-connections/{connectionId}/connect/callback"
tags: ["Authentication"]
---

# OAuth callback for an External MCP Connection

`GET /v1/mcp-connections/{connectionId}/connect/callback`

The external MCP server redirects here with code+state after the admin consents. Serves a small static HTML page — the admin's Den tab in the background polls connection status and never needs this response body.

## Path parameters

- `connectionId` string, typeid, required

## Response `200`

Connected — a static success page.

## Other responses

- `400` — Missing or invalid code/state.

## Changes

- **2026-08-20** `93df40e2efd5` — 1 info
  - removed the pattern `^emc_.*` from the `path` request parameter `connectionId`

[Change history](https://skmtc.dev/openworklabs/apis/den-api/changes/v1/mcp-connections/:connectionId/connect/callback/get.md)

---

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