Update a tool
curl --request PATCH \
--url https://api.waterr.ai/v1/custom-functions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"on_call": "static_filler",
"static_filler": "One moment, looking that up.",
"on_resolve": "generate_response"
}
'import requests
url = "https://api.waterr.ai/v1/custom-functions/{id}"
payload = {
"on_call": "static_filler",
"static_filler": "One moment, looking that up.",
"on_resolve": "generate_response"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
on_call: 'static_filler',
static_filler: 'One moment, looking that up.',
on_resolve: 'generate_response'
})
};
fetch('https://api.waterr.ai/v1/custom-functions/{id}', 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.waterr.ai/v1/custom-functions/{id}",
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([
'on_call' => 'static_filler',
'static_filler' => 'One moment, looking that up.',
'on_resolve' => 'generate_response'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.waterr.ai/v1/custom-functions/{id}"
payload := strings.NewReader("{\n \"on_call\": \"static_filler\",\n \"static_filler\": \"One moment, looking that up.\",\n \"on_resolve\": \"generate_response\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.waterr.ai/v1/custom-functions/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"on_call\": \"static_filler\",\n \"static_filler\": \"One moment, looking that up.\",\n \"on_resolve\": \"generate_response\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.waterr.ai/v1/custom-functions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"on_call\": \"static_filler\",\n \"static_filler\": \"One moment, looking that up.\",\n \"on_resolve\": \"generate_response\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "4f8a6c50-9d3b-4c1f-9c0a-7a3b6e2d1f10",
"name": "lookup_account",
"description": "Fetch the participant's CRM record so you can reference their plan, MRR, and last contact date.",
"parameters_schema": {
"type": "object",
"properties": {
"account_id": {
"type": "string",
"description": "The participant's account ID (e.g. cus_XXXX)."
}
},
"required": [
"account_id"
]
},
"execution_mode": "webhook",
"has_webhook_secret": true,
"timeout_ms": 8000,
"tool_spec": {
"type": "function",
"function": {
"name": "lookup_account",
"description": "Fetch the participant's CRM record so you can reference their plan, MRR, and last contact date.",
"parameters": {
"type": "object",
"properties": {
"account_id": {
"type": "string"
}
},
"required": [
"account_id"
]
}
}
},
"membership_id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789",
"webhook_url": "https://your-app.com/waterr/tools/lookup_account",
"on_call": "static_filler",
"static_filler": "Sure, let me grab that for you.",
"on_resolve": "generate_response",
"created_at": "2026-06-18T12:34:56.000Z",
"updated_at": "2026-06-18T12:34:56.000Z"
}
}Tools
Update a tool definition
Patch any subset of fields. Propagates to every attached scenario instantly. Rotate the secret by sending a new webhook_secret.
PATCH
/
custom-functions
/
{id}
Update a tool
curl --request PATCH \
--url https://api.waterr.ai/v1/custom-functions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"on_call": "static_filler",
"static_filler": "One moment, looking that up.",
"on_resolve": "generate_response"
}
'import requests
url = "https://api.waterr.ai/v1/custom-functions/{id}"
payload = {
"on_call": "static_filler",
"static_filler": "One moment, looking that up.",
"on_resolve": "generate_response"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
on_call: 'static_filler',
static_filler: 'One moment, looking that up.',
on_resolve: 'generate_response'
})
};
fetch('https://api.waterr.ai/v1/custom-functions/{id}', 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.waterr.ai/v1/custom-functions/{id}",
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([
'on_call' => 'static_filler',
'static_filler' => 'One moment, looking that up.',
'on_resolve' => 'generate_response'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.waterr.ai/v1/custom-functions/{id}"
payload := strings.NewReader("{\n \"on_call\": \"static_filler\",\n \"static_filler\": \"One moment, looking that up.\",\n \"on_resolve\": \"generate_response\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.waterr.ai/v1/custom-functions/{id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"on_call\": \"static_filler\",\n \"static_filler\": \"One moment, looking that up.\",\n \"on_resolve\": \"generate_response\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.waterr.ai/v1/custom-functions/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"on_call\": \"static_filler\",\n \"static_filler\": \"One moment, looking that up.\",\n \"on_resolve\": \"generate_response\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "4f8a6c50-9d3b-4c1f-9c0a-7a3b6e2d1f10",
"name": "lookup_account",
"description": "Fetch the participant's CRM record so you can reference their plan, MRR, and last contact date.",
"parameters_schema": {
"type": "object",
"properties": {
"account_id": {
"type": "string",
"description": "The participant's account ID (e.g. cus_XXXX)."
}
},
"required": [
"account_id"
]
},
"execution_mode": "webhook",
"has_webhook_secret": true,
"timeout_ms": 8000,
"tool_spec": {
"type": "function",
"function": {
"name": "lookup_account",
"description": "Fetch the participant's CRM record so you can reference their plan, MRR, and last contact date.",
"parameters": {
"type": "object",
"properties": {
"account_id": {
"type": "string"
}
},
"required": [
"account_id"
]
}
}
},
"membership_id": "a1b2c3d4-e5f6-7890-abcd-ef0123456789",
"webhook_url": "https://your-app.com/waterr/tools/lookup_account",
"on_call": "static_filler",
"static_filler": "Sure, let me grab that for you.",
"on_resolve": "generate_response",
"created_at": "2026-06-18T12:34:56.000Z",
"updated_at": "2026-06-18T12:34:56.000Z"
}
}Authorizations
API key from waterr.ai/settings?tab=api-keys. Send as Authorization: Bearer wai_<your_key>.
Path Parameters
Body
application/json
Send only the fields you want to change.
Rename the tool. Still must be unique per account.
Pattern:
^[a-zA-Z0-9_-]{1,64}$Available options:
webhook, client New HMAC secret, or null to remove signing.
Required range:
1000 <= x <= 30000Available options:
generate_filler, static_filler, silent, passthrough Phrase spoken while the tool runs. Required when on_call = "static_filler"; pass null to clear it when switching to another mode.
Available options:
generate_response, response_in_result, add_to_context, fire_and_forget Response
Tool updated.
A tool the LLM can call mid-meeting. Defined once on your account, attached to one or more scenarios.
Show child attributes
Show child attributes

