Agents Platform

Update Mcp Server Approval Policy

Changed on

Update the approval policy configuration for an MCP server. DEPRECATED: Use PATCH /mcp-servers/{id} endpoint instead.

patch/v1/convai/mcp-servers/{mcp_server_id}/approval-policy

Request

  • Base URL
    https://api.elevenlabs.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.elevenlabs.io/v1/convai/mcp-servers/{mcp_server_id}/approval-policy
  • Auth
    none declared

Path parameters

mcp_server_idstring required

ID of the MCP Server.

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Request body

approval_policy'auto_approve_all' | 'require_approval_all' | 'require_approval_per_tool' required

Defines the MCP server-level approval policy for tool execution.

Response

Successful Response

idstring required

Changes

    • breaking

      response property config/tool_config_overrides/items/input_overrides/anyOf[subschema #1]/additionalProperties/oneOf[subschema #1: ConstantSchemaOverride]/constant_value list-of-types was widened by adding types null to media type application/json of response 200

    • info

      added the optional property / to the response with the status