ai-tools
- Written for
- + Written for
- Deprecated
- + Deprecated
- Applies to
- + Applies to
AdminUpdated Sep 19, 2026
GET
https://api.chatlychat.com/v1/ai/toolsList the workspace AI tools (secret header values omitted).
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | no | UUIDv4 or 16-128 char opaque token. Required on write endpoints in production. Replays return the cached response with `Idempotency-Replay: true`; reusing the key with a different body returns 409 idempotency_conflict. |
Responses
200
Code samples
cURL
curl -X GET "https://api.chatlychat.com/v1/ai/tools" \
-H "Idempotency-Key: <value>"TypeScript
const res = await fetch('https://api.chatlychat.com/v1/ai/tools', {
method: 'GET',
headers: {
'Idempotency-Key': '<value>',
},
});
const data = await res.json();Python
import requests
res = requests.request(
"GET",
"https://api.chatlychat.com/v1/ai/tools",
headers={
"Idempotency-Key": "<value>",
},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.chatlychat.com/v1/ai/tools", nil)
req.Header.Set("Idempotency-Key", "<value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.chatlychat.com/v1/ai/tools');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Idempotency-Key: <value>']);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://api.chatlychat.com/v1/ai/tools')
req = Net::HTTP::Get.new(uri)
req['Idempotency-Key'] = '<value>'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.chatlychat.com/v1/ai/tools"))
.header("Idempotency-Key", "<value>")
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());POST
https://api.chatlychat.com/v1/ai/toolsDefine a new AI tool.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
Idempotency-Key | header | string | no | UUIDv4 or 16-128 char opaque token. Required on write endpoints in production. Replays return the cached response with `Idempotency-Replay: true`; reusing the key with a different body returns 409 idempotency_conflict. |
Request body application/json
{
"name": "string",
"description": "string",
"method": "GET",
"urlTemplate": "string",
"headers": {},
"secretHeaders": {},
"bodyTemplate": "string",
"parameters": [],
"timeoutSeconds": 20,
"enabled": true,
"requiresApproval": false,
"approvalThresholdParam": "string",
"approvalThresholdValue": 0
}Responses
201
Code samples
cURL
curl -X POST "https://api.chatlychat.com/v1/ai/tools" \
-H "Idempotency-Key: <value>" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","method":"GET","urlTemplate":"string","headers":{},"secretHeaders":{},"bodyTemplate":"string","parameters":[],"timeoutSeconds":20,"enabled":true,"requiresApproval":false,"approvalThresholdParam":"string","approvalThresholdValue":0}'TypeScript
const res = await fetch('https://api.chatlychat.com/v1/ai/tools', {
method: 'POST',
headers: {
'Idempotency-Key': '<value>',
'Content-Type': 'application/json',
},
body: JSON.stringify({"name":"string","description":"string","method":"GET","urlTemplate":"string","headers":{},"secretHeaders":{},"bodyTemplate":"string","parameters":[],"timeoutSeconds":20,"enabled":true,"requiresApproval":false,"approvalThresholdParam":"string","approvalThresholdValue":0}),
});
const data = await res.json();Python
import requests
res = requests.request(
"POST",
"https://api.chatlychat.com/v1/ai/tools",
headers={
"Idempotency-Key": "<value>",
"Content-Type": "application/json",
},
json={"name": "string", "description": "string", "method": "GET", "urlTemplate": "string", "headers": {}, "secretHeaders": {}, "bodyTemplate": "string", "parameters": [], "timeoutSeconds": 20, "enabled": True, "requiresApproval": False, "approvalThresholdParam": "string", "approvalThresholdValue": 0},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.chatlychat.com/v1/ai/tools", strings.NewReader(`{"name":"string","description":"string","method":"GET","urlTemplate":"string","headers":{},"secretHeaders":{},"bodyTemplate":"string","parameters":[],"timeoutSeconds":20,"enabled":true,"requiresApproval":false,"approvalThresholdParam":"string","approvalThresholdValue":0}`))
req.Header.Set("Idempotency-Key", "<value>")
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.chatlychat.com/v1/ai/tools');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Idempotency-Key: <value>', 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"name":"string","description":"string","method":"GET","urlTemplate":"string","headers":{},"secretHeaders":{},"bodyTemplate":"string","parameters":[],"timeoutSeconds":20,"enabled":true,"requiresApproval":false,"approvalThresholdParam":"string","approvalThresholdValue":0}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://api.chatlychat.com/v1/ai/tools')
req = Net::HTTP::Post.new(uri)
req['Idempotency-Key'] = '<value>'
req['Content-Type'] = 'application/json'
req.body = '{"name":"string","description":"string","method":"GET","urlTemplate":"string","headers":{},"secretHeaders":{},"bodyTemplate":"string","parameters":[],"timeoutSeconds":20,"enabled":true,"requiresApproval":false,"approvalThresholdParam":"string","approvalThresholdValue":0}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.chatlychat.com/v1/ai/tools"))
.header("Idempotency-Key", "<value>")
.header("Content-Type", "application/json")
.method("POST", BodyPublishers.ofString("{\"name\":\"string\",\"description\":\"string\",\"method\":\"GET\",\"urlTemplate\":\"string\",\"headers\":{},\"secretHeaders\":{},\"bodyTemplate\":\"string\",\"parameters\":[],\"timeoutSeconds\":20,\"enabled\":true,\"requiresApproval\":false,\"approvalThresholdParam\":\"string\",\"approvalThresholdValue\":0}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());DELETE
https://api.chatlychat.com/v1/ai/tools/{id}Delete an AI tool.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
Idempotency-Key | header | string | no | UUIDv4 or 16-128 char opaque token. Required on write endpoints in production. Replays return the cached response with `Idempotency-Replay: true`; reusing the key with a different body returns 409 idempotency_conflict. |
Responses
200
Code samples
cURL
curl -X DELETE "https://api.chatlychat.com/v1/ai/tools/{id}" \
-H "Idempotency-Key: <value>"TypeScript
const res = await fetch('https://api.chatlychat.com/v1/ai/tools/{id}', {
method: 'DELETE',
headers: {
'Idempotency-Key': '<value>',
},
});
const data = await res.json();Python
import requests
res = requests.request(
"DELETE",
"https://api.chatlychat.com/v1/ai/tools/{id}",
headers={
"Idempotency-Key": "<value>",
},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("DELETE", "https://api.chatlychat.com/v1/ai/tools/{id}", nil)
req.Header.Set("Idempotency-Key", "<value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.chatlychat.com/v1/ai/tools/{id}');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Idempotency-Key: <value>']);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://api.chatlychat.com/v1/ai/tools/{id}')
req = Net::HTTP::Delete.new(uri)
req['Idempotency-Key'] = '<value>'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.chatlychat.com/v1/ai/tools/{id}"))
.header("Idempotency-Key", "<value>")
.method("DELETE", BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());PATCH
https://api.chatlychat.com/v1/ai/tools/{id}Update an AI tool. Omit secretHeaders to keep the stored value.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
Idempotency-Key | header | string | no | UUIDv4 or 16-128 char opaque token. Required on write endpoints in production. Replays return the cached response with `Idempotency-Replay: true`; reusing the key with a different body returns 409 idempotency_conflict. |
Request body application/json
{
"name": "string",
"description": "string",
"method": "GET",
"urlTemplate": "string",
"headers": {},
"secretHeaders": {},
"bodyTemplate": "string",
"parameters": [],
"timeoutSeconds": 20,
"enabled": true,
"requiresApproval": false,
"approvalThresholdParam": "string",
"approvalThresholdValue": 0
}Responses
200
Code samples
cURL
curl -X PATCH "https://api.chatlychat.com/v1/ai/tools/{id}" \
-H "Idempotency-Key: <value>" \
-H "Content-Type: application/json" \
-d '{"name":"string","description":"string","method":"GET","urlTemplate":"string","headers":{},"secretHeaders":{},"bodyTemplate":"string","parameters":[],"timeoutSeconds":20,"enabled":true,"requiresApproval":false,"approvalThresholdParam":"string","approvalThresholdValue":0}'TypeScript
const res = await fetch('https://api.chatlychat.com/v1/ai/tools/{id}', {
method: 'PATCH',
headers: {
'Idempotency-Key': '<value>',
'Content-Type': 'application/json',
},
body: JSON.stringify({"name":"string","description":"string","method":"GET","urlTemplate":"string","headers":{},"secretHeaders":{},"bodyTemplate":"string","parameters":[],"timeoutSeconds":20,"enabled":true,"requiresApproval":false,"approvalThresholdParam":"string","approvalThresholdValue":0}),
});
const data = await res.json();Python
import requests
res = requests.request(
"PATCH",
"https://api.chatlychat.com/v1/ai/tools/{id}",
headers={
"Idempotency-Key": "<value>",
"Content-Type": "application/json",
},
json={"name": "string", "description": "string", "method": "GET", "urlTemplate": "string", "headers": {}, "secretHeaders": {}, "bodyTemplate": "string", "parameters": [], "timeoutSeconds": 20, "enabled": True, "requiresApproval": False, "approvalThresholdParam": "string", "approvalThresholdValue": 0},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("PATCH", "https://api.chatlychat.com/v1/ai/tools/{id}", strings.NewReader(`{"name":"string","description":"string","method":"GET","urlTemplate":"string","headers":{},"secretHeaders":{},"bodyTemplate":"string","parameters":[],"timeoutSeconds":20,"enabled":true,"requiresApproval":false,"approvalThresholdParam":"string","approvalThresholdValue":0}`))
req.Header.Set("Idempotency-Key", "<value>")
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.chatlychat.com/v1/ai/tools/{id}');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Idempotency-Key: <value>', 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"name":"string","description":"string","method":"GET","urlTemplate":"string","headers":{},"secretHeaders":{},"bodyTemplate":"string","parameters":[],"timeoutSeconds":20,"enabled":true,"requiresApproval":false,"approvalThresholdParam":"string","approvalThresholdValue":0}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://api.chatlychat.com/v1/ai/tools/{id}')
req = Net::HTTP::Patch.new(uri)
req['Idempotency-Key'] = '<value>'
req['Content-Type'] = 'application/json'
req.body = '{"name":"string","description":"string","method":"GET","urlTemplate":"string","headers":{},"secretHeaders":{},"bodyTemplate":"string","parameters":[],"timeoutSeconds":20,"enabled":true,"requiresApproval":false,"approvalThresholdParam":"string","approvalThresholdValue":0}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.chatlychat.com/v1/ai/tools/{id}"))
.header("Idempotency-Key", "<value>")
.header("Content-Type", "application/json")
.method("PATCH", BodyPublishers.ofString("{\"name\":\"string\",\"description\":\"string\",\"method\":\"GET\",\"urlTemplate\":\"string\",\"headers\":{},\"secretHeaders\":{},\"bodyTemplate\":\"string\",\"parameters\":[],\"timeoutSeconds\":20,\"enabled\":true,\"requiresApproval\":false,\"approvalThresholdParam\":\"string\",\"approvalThresholdValue\":0}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());GET
https://api.chatlychat.com/v1/ai/tool-callsAgent tool calls — pass ?status=pending for the approval queue.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
status | query | string | yes | |
Idempotency-Key | header | string | no | UUIDv4 or 16-128 char opaque token. Required on write endpoints in production. Replays return the cached response with `Idempotency-Replay: true`; reusing the key with a different body returns 409 idempotency_conflict. |
Responses
200
Code samples
cURL
curl -X GET "https://api.chatlychat.com/v1/ai/tool-calls?status=" \
-H "Idempotency-Key: <value>"TypeScript
const res = await fetch('https://api.chatlychat.com/v1/ai/tool-calls?status=', {
method: 'GET',
headers: {
'Idempotency-Key': '<value>',
},
});
const data = await res.json();Python
import requests
res = requests.request(
"GET",
"https://api.chatlychat.com/v1/ai/tool-calls?status=",
headers={
"Idempotency-Key": "<value>",
},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.chatlychat.com/v1/ai/tool-calls?status=", nil)
req.Header.Set("Idempotency-Key", "<value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.chatlychat.com/v1/ai/tool-calls?status=');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Idempotency-Key: <value>']);
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://api.chatlychat.com/v1/ai/tool-calls?status=')
req = Net::HTTP::Get.new(uri)
req['Idempotency-Key'] = '<value>'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.chatlychat.com/v1/ai/tool-calls?status="))
.header("Idempotency-Key", "<value>")
.GET()
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());POST
https://api.chatlychat.com/v1/ai/tool-calls/{id}/decideApprove (executes the call) or reject a pending agent tool call.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
Idempotency-Key | header | string | no | UUIDv4 or 16-128 char opaque token. Required on write endpoints in production. Replays return the cached response with `Idempotency-Replay: true`; reusing the key with a different body returns 409 idempotency_conflict. |
Request body application/json
{
"decision": "approve",
"note": "string"
}Responses
201
Code samples
cURL
curl -X POST "https://api.chatlychat.com/v1/ai/tool-calls/{id}/decide" \
-H "Idempotency-Key: <value>" \
-H "Content-Type: application/json" \
-d '{"decision":"approve","note":"string"}'TypeScript
const res = await fetch('https://api.chatlychat.com/v1/ai/tool-calls/{id}/decide', {
method: 'POST',
headers: {
'Idempotency-Key': '<value>',
'Content-Type': 'application/json',
},
body: JSON.stringify({"decision":"approve","note":"string"}),
});
const data = await res.json();Python
import requests
res = requests.request(
"POST",
"https://api.chatlychat.com/v1/ai/tool-calls/{id}/decide",
headers={
"Idempotency-Key": "<value>",
"Content-Type": "application/json",
},
json={"decision": "approve", "note": "string"},
)
data = res.json()Go
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
req, _ := http.NewRequest("POST", "https://api.chatlychat.com/v1/ai/tool-calls/{id}/decide", strings.NewReader(`{"decision":"approve","note":"string"}`))
req.Header.Set("Idempotency-Key", "<value>")
req.Header.Set("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}PHP
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.chatlychat.com/v1/ai/tool-calls/{id}/decide');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Idempotency-Key: <value>', 'Content-Type: application/json']);
curl_setopt($ch, CURLOPT_POSTFIELDS, '{"decision":"approve","note":"string"}');
$response = curl_exec($ch);
curl_close($ch);
echo $response;Ruby
require 'net/http'
require 'uri'
uri = URI('https://api.chatlychat.com/v1/ai/tool-calls/{id}/decide')
req = Net::HTTP::Post.new(uri)
req['Idempotency-Key'] = '<value>'
req['Content-Type'] = 'application/json'
req.body = '{"decision":"approve","note":"string"}'
res = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == 'https') do |http|
http.request(req)
end
puts res.bodyJava
import java.net.URI;
import java.net.http.*;
import java.net.http.HttpRequest.BodyPublishers;
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.chatlychat.com/v1/ai/tool-calls/{id}/decide"))
.header("Idempotency-Key", "<value>")
.header("Content-Type", "application/json")
.method("POST", BodyPublishers.ofString("{\"decision\":\"approve\",\"note\":\"string\"}"))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());Was this page helpful?