For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Connect
BlogHelp CenterAPI PricingSign up
OverviewElevenCreativeElevenAgentsElevenAPIReception AIAPI referenceChangelog
OverviewElevenCreativeElevenAgentsElevenAPIReception AIAPI referenceChangelog
  • Get started
    • Overview
    • Quickstart
  • Configure
    • Overview
    • Voice & language
    • Knowledge base
    • Tools
    • Personalization
    • Authentication
  • Deploy
    • Overview
    • Environment variables
    • WhatsApp
    • Batch calls
  • Monitor
    • Overview
    • Users
    • Testing
    • Experiments
    • Versioning
    • Conversation Analysis
    • Analytics
    • Real-time monitoring
    • OpenTelemetry traces
    • Privacy
    • Cost optimization
    • CLI
  • Advanced
    • Events
    • Custom models
    • LLM cascading
    • Post-call webhooks
  • Resources
    • UI components
  • Guides
    • Chat Mode
    • Burst pricing
    • ElevenLabs' docs agent
    • Scaling user interviews
    • Simulate Conversations
        • WSSAgent WebSockets
          • POSTCreate MCP server
          • DELDelete MCP server
          • GETList MCP servers
          • GETGet MCP server
          • GETList MCP server tools
          • PATCHUpdate MCP server configuration
            • PATCHUpdate MCP server approval policy
            • POSTCreate MCP server tool approval
            • DELDelete MCP server tool approval
LogoLogo
Login
Login
Connect
BlogHelp CenterAPI PricingSign up
API referenceMCPApproval Policies

Update MCP server approval policy

Deprecated
PATCH
/v1/convai/mcp-servers/:mcp_server_id/approval-policy
PATCH
/v1/convai/mcp-servers/:mcp_server_id/approval-policy
$curl -X PATCH https://api.elevenlabs.io/v1/convai/mcp-servers/mcp_server_id/approval-policy \
> -H "Content-Type: application/json" \
> -d '{
> "approval_policy": "auto_approve_all"
>}'
1{
2 "id": "id",
3 "config": {
4 "url": "url",
5 "name": "name",
6 "approval_policy": "auto_approve_all",
7 "tool_approval_hashes": [
8 {
9 "tool_name": "tool_name",
10 "tool_hash": "tool_hash"
11 }
12 ],
13 "transport": "SSE",
14 "secret_token": {
15 "secret_id": "secret_id"
16 },
17 "request_headers": {
18 "key": "value"
19 },
20 "auth_connection": {
21 "auth_connection_id": "auth_connection_id"
22 },
23 "description": "description",
24 "pre_tool_speech": "auto",
25 "disable_interruptions": true,
26 "tool_call_sound": "typing",
27 "tool_call_sound_behavior": "auto",
28 "execution_mode": "immediate",
29 "response_timeout_secs": 1,
30 "tool_config_overrides": [
31 {
32 "tool_name": "tool_name",
33 "assignments": [
34 {
35 "dynamic_variable": "user_name",
36 "value_path": "user.name",
37 "source": "response",
38 "sanitize": false,
39 "preserve_native_type": false
40 }
41 ]
42 }
43 ],
44 "disable_compression": true
45 },
46 "metadata": {
47 "created_at": 1,
48 "owner_user_id": "owner_user_id"
49 },
50 "access_info": {
51 "is_creator": true,
52 "creator_name": "John Doe",
53 "creator_email": "john.doe@example.com",
54 "role": "admin",
55 "anonymous_access_level_override": "admin",
56 "access_source": "creator"
57 },
58 "dependent_agents": [
59 {
60 "type": "available",
61 "access_level": "admin",
62 "created_at_unix_secs": 1,
63 "id": "id",
64 "name": "name",
65 "referenced_resource_ids": [
66 "referenced_resource_ids"
67 ]
68 }
69 ]
70}

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

Was this page helpful?
Previous

Create MCP server tool approval

Next
Built with

Path parameters

mcp_server_idstringRequired
ID of the MCP Server.

Headers

xi-api-keystringOptional

Request

This endpoint expects an object.
approval_policyenumRequiredDefaults to require_approval_all
The approval mode to set for the MCP server
Allowed values:

Response

Successful Response
idstring
configobject
metadataobject
The metadata of the MCP Server
access_infoobject
The access information of the MCP Server
dependent_agentslist of objects
List of agents that depend on this MCP Server.

Errors

422
Approval Policy Update Request Unprocessable Entity Error