# Withdraw invitation

`client_members.withdraw_invitation`

Withdraw the reviewed invitation so it can no longer be accepted. Requires explicit confirmation. Requires a fresh review_token for this exact action. Identical retries use the same client_request_id.

[Client members guide](https://docs.levr.ai/mcp/resources/client_members.md)

Availability depends on live discovery and your access to the record. Do not infer MCP calls from REST paths.

Operation: write. Required OAuth scopes: mcp.

## Client portal input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "client_request_id": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string"
    },
    "organization_slug": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string"
    },
    "provider_slug": {
      "maxLength": 100,
      "minLength": 1,
      "type": "string"
    },
    "review_token": {
      "maxLength": 20000,
      "minLength": 1,
      "type": "string"
    },
    "user_confirmed": {
      "const": true,
      "type": "boolean"
    }
  },
  "required": [
    "organization_slug",
    "provider_slug",
    "review_token",
    "client_request_id"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "oneOf": [
    {
      "not": {
        "required": [
          "error"
        ]
      },
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "data"
      ]
    },
    {
      "not": {
        "required": [
          "data"
        ]
      },
      "properties": {
        "ok": {
          "const": false
        }
      },
      "required": [
        "error"
      ]
    }
  ],
  "properties": {
    "data": {
      "additionalProperties": false,
      "properties": {
        "allowed_role_details": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "description": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "role": {
                "type": "string"
              }
            },
            "required": [
              "role",
              "label",
              "description"
            ],
            "type": "object"
          },
          "maxItems": 5,
          "type": "array"
        },
        "allowed_roles": {
          "items": {
            "maxLength": 100,
            "type": "string"
          },
          "maxItems": 5,
          "type": "array",
          "uniqueItems": true
        },
        "pending_invitations": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "email": {
                "type": "string"
              },
              "roles": {
                "items": {
                  "maxLength": 100,
                  "type": "string"
                },
                "maxItems": 5,
                "type": "array",
                "uniqueItems": true
              },
              "sent_at": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "email",
              "roles",
              "sent_at"
            ],
            "type": "object"
          },
          "maxItems": 100,
          "type": "array"
        },
        "revision": {
          "type": "string"
        },
        "truncated": {
          "type": "boolean"
        },
        "users": {
          "items": {
            "additionalProperties": false,
            "properties": {
              "email": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "roles": {
                "items": {
                  "maxLength": 100,
                  "type": "string"
                },
                "maxItems": 5,
                "type": "array",
                "uniqueItems": true
              }
            },
            "required": [
              "email",
              "name",
              "roles"
            ],
            "type": "object"
          },
          "maxItems": 100,
          "type": "array"
        }
      },
      "required": [
        "users",
        "pending_invitations",
        "allowed_roles",
        "revision",
        "truncated"
      ],
      "type": "object"
    },
    "error": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "type": "string"
        },
        "details": {
          "additionalProperties": true,
          "description": "Optional bounded, agent-safe correction or recovery facts.",
          "type": "object"
        },
        "message": {
          "type": "string"
        },
        "retryable": {
          "type": "boolean"
        }
      },
      "required": [
        "code",
        "message",
        "retryable"
      ],
      "type": "object"
    },
    "meta": {
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ],
      "type": "object"
    },
    "ok": {
      "description": "Whether the tool completed successfully.",
      "type": "boolean"
    }
  },
  "required": [
    "ok",
    "meta"
  ],
  "type": "object"
}
```

Check the result, then read the affected record to confirm your change.
