---
title: "Start browser OAuth consent"
method: GET
path: "/auth/mcp/authorize"
tags: ["MCP"]
---

# Start browser OAuth consent

`GET /auth/mcp/authorize`

## Request

- Base URL: `https://api.pyai.com`
- URL: `https://api.pyai.com/auth/mcp/authorize`
- Auth: none required

Authorization code with S256 PKCE, exact registered redirect URI and resource=https://api.pyai.com/mcp. Returns to the approved client with state and issuer identification.

## Query parameters

- `client_id` string, required
- `redirect_uri` string, required
- `response_type` string, required
- `code_challenge` string, required
- `code_challenge_method` string, required
- `resource` string, required

## Other responses

- `302`: Continue in the PyAI console.
- `400`: Invalid authorization request.

---

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