Open MCP Portaldocs
ReferenceOAuth consent and connected apps

Allow or deny an authorization request; returns where to send the browser

POST/v1/oauth/consent

Allow records the caller's consent for the client and gateway (audited as oauth.consent) and issues a single-use authorization code valid for 60 seconds. Deny sends the client access_denied.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/oauth/consent" \  -H "Content-Type: application/json" \  -d '{    "query": "string",    "decision": "allow"  }'
{  "data": {    "redirectUrl": "string"  }}