---
title: "Approve or cancel MCP OAuth authorization from traxy."
method: POST
path: "/mcp/oauth/authorize/complete"
tags: ["MCP OAuth"]
---

# Approve or cancel MCP OAuth authorization from traxy.

`POST /mcp/oauth/authorize/complete`

## Request

- Base URL: `https://api.traxy.ai/api/v1`
- URL: `https://api.traxy.ai/api/v1/mcp/oauth/authorize/complete`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/windmill-growth/apis/traxy-customer-api-and-mcp-v1/docs/mcp/oauth/authorize/complete/post.ts> (a function with typed inputs; its response is checked against the schema)

Every active member may approve the requested actions permitted by their current role and MCP entitlement in the selected workspaces. Submitted scopes cap consent; each tool call also enforces the current role. Cancellation returns an access_denied callback.

## Request body

- union
  - object
    - `requestToken` string, required
    - `organizationId` string, uuid, required
    - `organizationIds` string[]
    - `scopes` string[]
    - `approved` true, required
  - object
    - `requestToken` string, required
    - `organizationId` string, uuid
    - `approved` false, required

## Response `200`

Redirect URL for the MCP client callback.

- McpOAuthAuthorizeCompleteResponse
  - `redirectUrl` string, uri, required: Client callback URL. Do not log or send to analytics because it may contain an authorization code.

## Other responses

- `401`: Invalid, expired, or revoked API key.
- `403`: Key or OAuth grant lacks the required scope.

## Changes

- **2026-09-24** `3dde15782092`: 1 breaking, 1 info
  - removed `subschema #1, subschema #2` from the request body `oneOf` list
  - added `subschema #1, subschema #2` to the request body `oneOf` list
- **2026-07-04** `467b330a307b`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/windmill-growth/apis/traxy-customer-api-and-mcp-v1/changes/mcp/oauth/authorize/complete/post.md)

---

[API](https://skmtc.dev/windmill-growth/apis/traxy-customer-api-and-mcp-v1.md) - [All operations](https://skmtc.dev/windmill-growth/apis/traxy-customer-api-and-mcp-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/windmill-growth/apis/traxy-customer-api-and-mcp-v1/revisions/765b1a6a3abd?raw)
