Skip to content
OpenPostDocs
OpenPostDocs
Auth

Create or deny an MCP OAuth authorization response

POST/mcp/oauth/authorize

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/mcp/oauth/authorize" \  -H "Content-Type: application/json" \  -d '{    "approved": true,    "client_id": "string",    "redirect_uri": "string",    "response_type": "string"  }'
{  "$schema": "https://example.com/api/v1/schemas/CreateMCPOAuthAuthorizationOutputBody.json",  "redirect_url": "string"}