---
title: "Create Upstream Oauth Test Connection Url"
method: POST
path: "/api/mcp/servers/{server_id}/upstream-oauth/test-connection/connect"
tags: ["MCP Servers"]
---

# Create Upstream Oauth Test Connection Url

`POST /api/mcp/servers/{server_id}/upstream-oauth/test-connection/connect`

## Request

- Base URL: `https://api.apitomcp.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.apitomcp.ai/api/mcp/servers/{server_id}/upstream-oauth/test-connection/connect`
- Auth: none declared

Create an OAuth provider authorization URL for dashboard tool testing.

## Path parameters

- `server_id` string, required

## Request body

- UpstreamOAuthConnectRequest
  - `return_url` string, nullable: Dashboard URL to return to after the OAuth provider callback.

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/apitomcp/apis/api-to-mcp-platform.md) - [All operations](https://skmtc.dev/apitomcp/apis/api-to-mcp-platform/llms.txt) - [OpenAPI document](https://skmtc.dev/apitomcp/apis/api-to-mcp-platform/revisions/32569c7a994c?raw)
