Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url https://api.zudu.ai/api/mcp-servers/{mcpServerId}/tool-approvals \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"tool_name": "file_read",
"approval_hash": "abc123def456",
"auto_approve": true,
"approval_conditions": {
"file_extensions": [
".txt",
".md",
".json"
],
"max_file_size": 1048576
}
}
'import requests
url = "https://api.zudu.ai/api/mcp-servers/{mcpServerId}/tool-approvals"
payload = {
"tool_name": "file_read",
"approval_hash": "abc123def456",
"auto_approve": True,
"approval_conditions": {
"file_extensions": [".txt", ".md", ".json"],
"max_file_size": 1048576
}
}
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
tool_name: 'file_read',
approval_hash: 'abc123def456',
auto_approve: true,
approval_conditions: {file_extensions: ['.txt', '.md', '.json'], max_file_size: 1048576}
})
};
fetch('https://api.zudu.ai/api/mcp-servers/{mcpServerId}/tool-approvals', 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}/tool-approvals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tool_name' => 'file_read',
'approval_hash' => 'abc123def456',
'auto_approve' => true,
'approval_conditions' => [
'file_extensions' => [
'.txt',
'.md',
'.json'
],
'max_file_size' => 1048576
]
]),
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}/tool-approvals"
payload := strings.NewReader("{\n \"tool_name\": \"file_read\",\n \"approval_hash\": \"abc123def456\",\n \"auto_approve\": true,\n \"approval_conditions\": {\n \"file_extensions\": [\n \".txt\",\n \".md\",\n \".json\"\n ],\n \"max_file_size\": 1048576\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.zudu.ai/api/mcp-servers/{mcpServerId}/tool-approvals")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tool_name\": \"file_read\",\n \"approval_hash\": \"abc123def456\",\n \"auto_approve\": true,\n \"approval_conditions\": {\n \"file_extensions\": [\n \".txt\",\n \".md\",\n \".json\"\n ],\n \"max_file_size\": 1048576\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/mcp-servers/{mcpServerId}/tool-approvals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tool_name\": \"file_read\",\n \"approval_hash\": \"abc123def456\",\n \"auto_approve\": true,\n \"approval_conditions\": {\n \"file_extensions\": [\n \".txt\",\n \".md\",\n \".json\"\n ],\n \"max_file_size\": 1048576\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Tool approval added successfully",
"status": "success",
"error": null,
"data": {
"server_id": "mcp_8c180796-e6d7-4343-88b5-5df0846fef69",
"tool_name": "file_read",
"approval_hash": "abc123def456",
"auto_approve": true,
"created_at": 1751401500000
}
}{
"message": "Validation failed",
"status": "error",
"error": "MCP server name is required",
"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
}Adds a tool approval to an MCP server (current behavior).
curl --request POST \
--url https://api.zudu.ai/api/mcp-servers/{mcpServerId}/tool-approvals \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--header 'X-API-SECRET: <api-key>' \
--data '
{
"tool_name": "file_read",
"approval_hash": "abc123def456",
"auto_approve": true,
"approval_conditions": {
"file_extensions": [
".txt",
".md",
".json"
],
"max_file_size": 1048576
}
}
'import requests
url = "https://api.zudu.ai/api/mcp-servers/{mcpServerId}/tool-approvals"
payload = {
"tool_name": "file_read",
"approval_hash": "abc123def456",
"auto_approve": True,
"approval_conditions": {
"file_extensions": [".txt", ".md", ".json"],
"max_file_size": 1048576
}
}
headers = {
"X-API-KEY": "<api-key>",
"X-API-SECRET": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'X-API-KEY': '<api-key>',
'X-API-SECRET': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
tool_name: 'file_read',
approval_hash: 'abc123def456',
auto_approve: true,
approval_conditions: {file_extensions: ['.txt', '.md', '.json'], max_file_size: 1048576}
})
};
fetch('https://api.zudu.ai/api/mcp-servers/{mcpServerId}/tool-approvals', 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}/tool-approvals",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'tool_name' => 'file_read',
'approval_hash' => 'abc123def456',
'auto_approve' => true,
'approval_conditions' => [
'file_extensions' => [
'.txt',
'.md',
'.json'
],
'max_file_size' => 1048576
]
]),
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}/tool-approvals"
payload := strings.NewReader("{\n \"tool_name\": \"file_read\",\n \"approval_hash\": \"abc123def456\",\n \"auto_approve\": true,\n \"approval_conditions\": {\n \"file_extensions\": [\n \".txt\",\n \".md\",\n \".json\"\n ],\n \"max_file_size\": 1048576\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.zudu.ai/api/mcp-servers/{mcpServerId}/tool-approvals")
.header("X-API-KEY", "<api-key>")
.header("X-API-SECRET", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"tool_name\": \"file_read\",\n \"approval_hash\": \"abc123def456\",\n \"auto_approve\": true,\n \"approval_conditions\": {\n \"file_extensions\": [\n \".txt\",\n \".md\",\n \".json\"\n ],\n \"max_file_size\": 1048576\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zudu.ai/api/mcp-servers/{mcpServerId}/tool-approvals")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["X-API-SECRET"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"tool_name\": \"file_read\",\n \"approval_hash\": \"abc123def456\",\n \"auto_approve\": true,\n \"approval_conditions\": {\n \"file_extensions\": [\n \".txt\",\n \".md\",\n \".json\"\n ],\n \"max_file_size\": 1048576\n }\n}"
response = http.request(request)
puts response.read_body{
"message": "Tool approval added successfully",
"status": "success",
"error": null,
"data": {
"server_id": "mcp_8c180796-e6d7-4343-88b5-5df0846fef69",
"tool_name": "file_read",
"approval_hash": "abc123def456",
"auto_approve": true,
"created_at": 1751401500000
}
}{
"message": "Validation failed",
"status": "error",
"error": "MCP server name is required",
"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_8c180796-e6d7-4343-88b5-5df0846fef69"