Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request PATCH \
--url https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"approval_policy": "require_approval_all"
}
'import requests
url = "https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy"
payload = { "approval_policy": "require_approval_all" }
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({approval_policy: 'require_approval_all'})
};
fetch('https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'approval_policy' => 'require_approval_all'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-API-SECRET: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy"
payload := strings.NewReader("{\n \"approval_policy\": \"require_approval_all\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-API-SECRET", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"approval_policy\": \"require_approval_all\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"approval_policy\": \"require_approval_all\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Approval policy updated successfully",
"status": "success",
"error": null,
"data": {
"id": "mcp_016e64b3-7782-45ca-87be-3fc343b8242e",
"organization_id": "org_2zC2v0GqxbrfKq1rKazb3gFcPEq",
"name": "Test MCP Server",
"approval_policy": "require_approval_all",
"updated_at": 1751401459476
}
}{
"message": "Validation failed",
"status": "error",
"error": "Invalid approval policy",
"data": null
}{
"message": "MCP server not found",
"status": "error",
"error": "MCP server with ID 'mcp_invalid_id' does not exist in organization",
"data": null
}{
"message": "Internal server error",
"status": "error",
"error": "Server error",
"data": null
}Updates the approval policy for an MCP server (current behavior).
curl --request PATCH \
--url https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"approval_policy": "require_approval_all"
}
'import requests
url = "https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy"
payload = { "approval_policy": "require_approval_all" }
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({approval_policy: 'require_approval_all'})
};
fetch('https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'approval_policy' => 'require_approval_all'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-KEY: <api-key>",
"X-API-SECRET: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy"
payload := strings.NewReader("{\n \"approval_policy\": \"require_approval_all\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("X-API-SECRET", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"approval_policy\": \"require_approval_all\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/mcp-servers/{mcpServerId}/approval-policy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"approval_policy\": \"require_approval_all\"\n}"
response = http.request(request)
puts response.read_body{
"message": "Approval policy updated successfully",
"status": "success",
"error": null,
"data": {
"id": "mcp_016e64b3-7782-45ca-87be-3fc343b8242e",
"organization_id": "org_2zC2v0GqxbrfKq1rKazb3gFcPEq",
"name": "Test MCP Server",
"approval_policy": "require_approval_all",
"updated_at": 1751401459476
}
}{
"message": "Validation failed",
"status": "error",
"error": "Invalid approval policy",
"data": null
}{
"message": "MCP server not found",
"status": "error",
"error": "MCP server with ID 'mcp_invalid_id' does not exist in organization",
"data": null
}{
"message": "Internal server error",
"status": "error",
"error": "Server error",
"data": null
}API Key for MCP server and external service authentication
API Secret for MCP server and external service authentication
MCP server ID
"mcp_016e64b3-7782-45ca-87be-3fc343b8242e"
auto_approve_all | require_approval_all | auto_approve_read_only