curl --request POST \
--url https://app.famulor.io/api/v1/tools/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "code",
"tool_id": "f1b2c3d4-0000-4000-8000-000000000011",
"config": {
"code": "export async function run({ inputs, credentials }) {\n const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {\n headers: { Authorization: `Bearer ${credentials.shop.token}`, \"X-Region\": inputs.region },\n });\n if (!response.ok) return { found: false };\n const order = await response.json();\n return { found: true, status: order.status, eta: order.estimated_delivery };\n}\n",
"inputs": [
{
"name": "order_id",
"type": "string",
"source": "llm",
"description": "The order number the customer reads out",
"required": true
},
{
"name": "region",
"type": "string",
"source": "fixed",
"description": "",
"required": false,
"value": "eu"
},
{
"name": "signing_key",
"type": "string",
"source": "secret",
"description": "",
"required": false,
"value": "•••"
}
],
"credentials": [
{
"name": "shop",
"connection_id": "3f1d0a52-0000-4000-8000-000000000020"
}
],
"timeout_ms": 8000,
"filler_phrase": "One moment, I am checking the order.",
"speak_after": true
},
"values": {
"order_id": "A-10432"
}
}
'import requests
url = "https://app.famulor.io/api/v1/tools/test"
payload = {
"type": "code",
"tool_id": "f1b2c3d4-0000-4000-8000-000000000011",
"config": {
"code": "export async function run({ inputs, credentials }) {
const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {
headers: { Authorization: `Bearer ${credentials.shop.token}`, \"X-Region\": inputs.region },
});
if (!response.ok) return { found: false };
const order = await response.json();
return { found: true, status: order.status, eta: order.estimated_delivery };
}
",
"inputs": [
{
"name": "order_id",
"type": "string",
"source": "llm",
"description": "The order number the customer reads out",
"required": True
},
{
"name": "region",
"type": "string",
"source": "fixed",
"description": "",
"required": False,
"value": "eu"
},
{
"name": "signing_key",
"type": "string",
"source": "secret",
"description": "",
"required": False,
"value": "•••"
}
],
"credentials": [
{
"name": "shop",
"connection_id": "3f1d0a52-0000-4000-8000-000000000020"
}
],
"timeout_ms": 8000,
"filler_phrase": "One moment, I am checking the order.",
"speak_after": True
},
"values": { "order_id": "A-10432" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'code',
tool_id: 'f1b2c3d4-0000-4000-8000-000000000011',
config: {
code: 'export async function run({ inputs, credentials }) {\n const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {\n headers: { Authorization: `Bearer ${credentials.shop.token}`, "X-Region": inputs.region },\n });\n if (!response.ok) return { found: false };\n const order = await response.json();\n return { found: true, status: order.status, eta: order.estimated_delivery };\n}\n',
inputs: [
{
name: 'order_id',
type: 'string',
source: 'llm',
description: 'The order number the customer reads out',
required: true
},
{
name: 'region',
type: 'string',
source: 'fixed',
description: '',
required: false,
value: 'eu'
},
{
name: 'signing_key',
type: 'string',
source: 'secret',
description: '',
required: false,
value: '•••'
}
],
credentials: [{name: 'shop', connection_id: '3f1d0a52-0000-4000-8000-000000000020'}],
timeout_ms: 8000,
filler_phrase: 'One moment, I am checking the order.',
speak_after: true
},
values: {order_id: 'A-10432'}
})
};
fetch('https://app.famulor.io/api/v1/tools/test', 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://app.famulor.io/api/v1/tools/test",
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([
'type' => 'code',
'tool_id' => 'f1b2c3d4-0000-4000-8000-000000000011',
'config' => [
'code' => 'export async function run({ inputs, credentials }) {
const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {
headers: { Authorization: `Bearer ${credentials.shop.token}`, "X-Region": inputs.region },
});
if (!response.ok) return { found: false };
const order = await response.json();
return { found: true, status: order.status, eta: order.estimated_delivery };
}
',
'inputs' => [
[
'name' => 'order_id',
'type' => 'string',
'source' => 'llm',
'description' => 'The order number the customer reads out',
'required' => true
],
[
'name' => 'region',
'type' => 'string',
'source' => 'fixed',
'description' => '',
'required' => false,
'value' => 'eu'
],
[
'name' => 'signing_key',
'type' => 'string',
'source' => 'secret',
'description' => '',
'required' => false,
'value' => '•••'
]
],
'credentials' => [
[
'name' => 'shop',
'connection_id' => '3f1d0a52-0000-4000-8000-000000000020'
]
],
'timeout_ms' => 8000,
'filler_phrase' => 'One moment, I am checking the order.',
'speak_after' => true
],
'values' => [
'order_id' => 'A-10432'
]
]),
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://app.famulor.io/api/v1/tools/test"
payload := strings.NewReader("{\n \"type\": \"code\",\n \"tool_id\": \"f1b2c3d4-0000-4000-8000-000000000011\",\n \"config\": {\n \"code\": \"export async function run({ inputs, credentials }) {\\n const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {\\n headers: { Authorization: `Bearer ${credentials.shop.token}`, \\\"X-Region\\\": inputs.region },\\n });\\n if (!response.ok) return { found: false };\\n const order = await response.json();\\n return { found: true, status: order.status, eta: order.estimated_delivery };\\n}\\n\",\n \"inputs\": [\n {\n \"name\": \"order_id\",\n \"type\": \"string\",\n \"source\": \"llm\",\n \"description\": \"The order number the customer reads out\",\n \"required\": true\n },\n {\n \"name\": \"region\",\n \"type\": \"string\",\n \"source\": \"fixed\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"eu\"\n },\n {\n \"name\": \"signing_key\",\n \"type\": \"string\",\n \"source\": \"secret\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"•••\"\n }\n ],\n \"credentials\": [\n {\n \"name\": \"shop\",\n \"connection_id\": \"3f1d0a52-0000-4000-8000-000000000020\"\n }\n ],\n \"timeout_ms\": 8000,\n \"filler_phrase\": \"One moment, I am checking the order.\",\n \"speak_after\": true\n },\n \"values\": {\n \"order_id\": \"A-10432\"\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.famulor.io/api/v1/tools/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"code\",\n \"tool_id\": \"f1b2c3d4-0000-4000-8000-000000000011\",\n \"config\": {\n \"code\": \"export async function run({ inputs, credentials }) {\\n const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {\\n headers: { Authorization: `Bearer ${credentials.shop.token}`, \\\"X-Region\\\": inputs.region },\\n });\\n if (!response.ok) return { found: false };\\n const order = await response.json();\\n return { found: true, status: order.status, eta: order.estimated_delivery };\\n}\\n\",\n \"inputs\": [\n {\n \"name\": \"order_id\",\n \"type\": \"string\",\n \"source\": \"llm\",\n \"description\": \"The order number the customer reads out\",\n \"required\": true\n },\n {\n \"name\": \"region\",\n \"type\": \"string\",\n \"source\": \"fixed\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"eu\"\n },\n {\n \"name\": \"signing_key\",\n \"type\": \"string\",\n \"source\": \"secret\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"•••\"\n }\n ],\n \"credentials\": [\n {\n \"name\": \"shop\",\n \"connection_id\": \"3f1d0a52-0000-4000-8000-000000000020\"\n }\n ],\n \"timeout_ms\": 8000,\n \"filler_phrase\": \"One moment, I am checking the order.\",\n \"speak_after\": true\n },\n \"values\": {\n \"order_id\": \"A-10432\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.io/api/v1/tools/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"code\",\n \"tool_id\": \"f1b2c3d4-0000-4000-8000-000000000011\",\n \"config\": {\n \"code\": \"export async function run({ inputs, credentials }) {\\n const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {\\n headers: { Authorization: `Bearer ${credentials.shop.token}`, \\\"X-Region\\\": inputs.region },\\n });\\n if (!response.ok) return { found: false };\\n const order = await response.json();\\n return { found: true, status: order.status, eta: order.estimated_delivery };\\n}\\n\",\n \"inputs\": [\n {\n \"name\": \"order_id\",\n \"type\": \"string\",\n \"source\": \"llm\",\n \"description\": \"The order number the customer reads out\",\n \"required\": true\n },\n {\n \"name\": \"region\",\n \"type\": \"string\",\n \"source\": \"fixed\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"eu\"\n },\n {\n \"name\": \"signing_key\",\n \"type\": \"string\",\n \"source\": \"secret\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"•••\"\n }\n ],\n \"credentials\": [\n {\n \"name\": \"shop\",\n \"connection_id\": \"3f1d0a52-0000-4000-8000-000000000020\"\n }\n ],\n \"timeout_ms\": 8000,\n \"filler_phrase\": \"One moment, I am checking the order.\",\n \"speak_after\": true\n },\n \"values\": {\n \"order_id\": \"A-10432\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"kind": "code_run",
"tool_id": "f1b2c3d4-0000-4000-8000-000000000011",
"tool_name": "check_order_status",
"ok": true,
"outcome": "success",
"agent_receives": "{\"found\":true,\"status\":\"shipped\",\"eta\":\"2026-12-03\"}",
"result": {
"found": true,
"status": "shipped",
"eta": "2026-12-03"
},
"console": [],
"requests": [
{
"method": "GET",
"url": "https://api.example.com/orders/A-10432",
"status": 200,
"duration_ms": 212
}
],
"inputs_used": {
"order_id": "A-10432",
"region": "eu",
"signing_key": "[redacted]"
},
"duration_ms": 248,
"outbound_requests": 1
}
}Test HTTP or code tool
Send a real HTTP test request (or, with type: code, run a code tool) using the same request preparation, secret handling and outbound protections as Agent Tools. The request may change the remote system. App action tools cannot be tested here: a tool_id or config of an app action tool returns 409; use POST /tools/app-actions/{toolId}/test. Code tool (type: code, or a tool_id that names a code tool): runs the config you send, saved or not, with real secrets, real credentials and real outbound requests, and returns a CodeToolTestResult. A failing run is a normal 200 result with ok: false, so read outcome, error and agent_receives. The workspace plan must include custom code (403 otherwise); at most 30 test runs per minute and workspace. Requires an admin-level credential and assistants:write.
curl --request POST \
--url https://app.famulor.io/api/v1/tools/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "code",
"tool_id": "f1b2c3d4-0000-4000-8000-000000000011",
"config": {
"code": "export async function run({ inputs, credentials }) {\n const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {\n headers: { Authorization: `Bearer ${credentials.shop.token}`, \"X-Region\": inputs.region },\n });\n if (!response.ok) return { found: false };\n const order = await response.json();\n return { found: true, status: order.status, eta: order.estimated_delivery };\n}\n",
"inputs": [
{
"name": "order_id",
"type": "string",
"source": "llm",
"description": "The order number the customer reads out",
"required": true
},
{
"name": "region",
"type": "string",
"source": "fixed",
"description": "",
"required": false,
"value": "eu"
},
{
"name": "signing_key",
"type": "string",
"source": "secret",
"description": "",
"required": false,
"value": "•••"
}
],
"credentials": [
{
"name": "shop",
"connection_id": "3f1d0a52-0000-4000-8000-000000000020"
}
],
"timeout_ms": 8000,
"filler_phrase": "One moment, I am checking the order.",
"speak_after": true
},
"values": {
"order_id": "A-10432"
}
}
'import requests
url = "https://app.famulor.io/api/v1/tools/test"
payload = {
"type": "code",
"tool_id": "f1b2c3d4-0000-4000-8000-000000000011",
"config": {
"code": "export async function run({ inputs, credentials }) {
const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {
headers: { Authorization: `Bearer ${credentials.shop.token}`, \"X-Region\": inputs.region },
});
if (!response.ok) return { found: false };
const order = await response.json();
return { found: true, status: order.status, eta: order.estimated_delivery };
}
",
"inputs": [
{
"name": "order_id",
"type": "string",
"source": "llm",
"description": "The order number the customer reads out",
"required": True
},
{
"name": "region",
"type": "string",
"source": "fixed",
"description": "",
"required": False,
"value": "eu"
},
{
"name": "signing_key",
"type": "string",
"source": "secret",
"description": "",
"required": False,
"value": "•••"
}
],
"credentials": [
{
"name": "shop",
"connection_id": "3f1d0a52-0000-4000-8000-000000000020"
}
],
"timeout_ms": 8000,
"filler_phrase": "One moment, I am checking the order.",
"speak_after": True
},
"values": { "order_id": "A-10432" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
type: 'code',
tool_id: 'f1b2c3d4-0000-4000-8000-000000000011',
config: {
code: 'export async function run({ inputs, credentials }) {\n const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {\n headers: { Authorization: `Bearer ${credentials.shop.token}`, "X-Region": inputs.region },\n });\n if (!response.ok) return { found: false };\n const order = await response.json();\n return { found: true, status: order.status, eta: order.estimated_delivery };\n}\n',
inputs: [
{
name: 'order_id',
type: 'string',
source: 'llm',
description: 'The order number the customer reads out',
required: true
},
{
name: 'region',
type: 'string',
source: 'fixed',
description: '',
required: false,
value: 'eu'
},
{
name: 'signing_key',
type: 'string',
source: 'secret',
description: '',
required: false,
value: '•••'
}
],
credentials: [{name: 'shop', connection_id: '3f1d0a52-0000-4000-8000-000000000020'}],
timeout_ms: 8000,
filler_phrase: 'One moment, I am checking the order.',
speak_after: true
},
values: {order_id: 'A-10432'}
})
};
fetch('https://app.famulor.io/api/v1/tools/test', 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://app.famulor.io/api/v1/tools/test",
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([
'type' => 'code',
'tool_id' => 'f1b2c3d4-0000-4000-8000-000000000011',
'config' => [
'code' => 'export async function run({ inputs, credentials }) {
const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {
headers: { Authorization: `Bearer ${credentials.shop.token}`, "X-Region": inputs.region },
});
if (!response.ok) return { found: false };
const order = await response.json();
return { found: true, status: order.status, eta: order.estimated_delivery };
}
',
'inputs' => [
[
'name' => 'order_id',
'type' => 'string',
'source' => 'llm',
'description' => 'The order number the customer reads out',
'required' => true
],
[
'name' => 'region',
'type' => 'string',
'source' => 'fixed',
'description' => '',
'required' => false,
'value' => 'eu'
],
[
'name' => 'signing_key',
'type' => 'string',
'source' => 'secret',
'description' => '',
'required' => false,
'value' => '•••'
]
],
'credentials' => [
[
'name' => 'shop',
'connection_id' => '3f1d0a52-0000-4000-8000-000000000020'
]
],
'timeout_ms' => 8000,
'filler_phrase' => 'One moment, I am checking the order.',
'speak_after' => true
],
'values' => [
'order_id' => 'A-10432'
]
]),
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://app.famulor.io/api/v1/tools/test"
payload := strings.NewReader("{\n \"type\": \"code\",\n \"tool_id\": \"f1b2c3d4-0000-4000-8000-000000000011\",\n \"config\": {\n \"code\": \"export async function run({ inputs, credentials }) {\\n const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {\\n headers: { Authorization: `Bearer ${credentials.shop.token}`, \\\"X-Region\\\": inputs.region },\\n });\\n if (!response.ok) return { found: false };\\n const order = await response.json();\\n return { found: true, status: order.status, eta: order.estimated_delivery };\\n}\\n\",\n \"inputs\": [\n {\n \"name\": \"order_id\",\n \"type\": \"string\",\n \"source\": \"llm\",\n \"description\": \"The order number the customer reads out\",\n \"required\": true\n },\n {\n \"name\": \"region\",\n \"type\": \"string\",\n \"source\": \"fixed\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"eu\"\n },\n {\n \"name\": \"signing_key\",\n \"type\": \"string\",\n \"source\": \"secret\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"•••\"\n }\n ],\n \"credentials\": [\n {\n \"name\": \"shop\",\n \"connection_id\": \"3f1d0a52-0000-4000-8000-000000000020\"\n }\n ],\n \"timeout_ms\": 8000,\n \"filler_phrase\": \"One moment, I am checking the order.\",\n \"speak_after\": true\n },\n \"values\": {\n \"order_id\": \"A-10432\"\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://app.famulor.io/api/v1/tools/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"code\",\n \"tool_id\": \"f1b2c3d4-0000-4000-8000-000000000011\",\n \"config\": {\n \"code\": \"export async function run({ inputs, credentials }) {\\n const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {\\n headers: { Authorization: `Bearer ${credentials.shop.token}`, \\\"X-Region\\\": inputs.region },\\n });\\n if (!response.ok) return { found: false };\\n const order = await response.json();\\n return { found: true, status: order.status, eta: order.estimated_delivery };\\n}\\n\",\n \"inputs\": [\n {\n \"name\": \"order_id\",\n \"type\": \"string\",\n \"source\": \"llm\",\n \"description\": \"The order number the customer reads out\",\n \"required\": true\n },\n {\n \"name\": \"region\",\n \"type\": \"string\",\n \"source\": \"fixed\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"eu\"\n },\n {\n \"name\": \"signing_key\",\n \"type\": \"string\",\n \"source\": \"secret\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"•••\"\n }\n ],\n \"credentials\": [\n {\n \"name\": \"shop\",\n \"connection_id\": \"3f1d0a52-0000-4000-8000-000000000020\"\n }\n ],\n \"timeout_ms\": 8000,\n \"filler_phrase\": \"One moment, I am checking the order.\",\n \"speak_after\": true\n },\n \"values\": {\n \"order_id\": \"A-10432\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.famulor.io/api/v1/tools/test")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"code\",\n \"tool_id\": \"f1b2c3d4-0000-4000-8000-000000000011\",\n \"config\": {\n \"code\": \"export async function run({ inputs, credentials }) {\\n const response = await fetch(`https://api.example.com/orders/${encodeURIComponent(inputs.order_id)}`, {\\n headers: { Authorization: `Bearer ${credentials.shop.token}`, \\\"X-Region\\\": inputs.region },\\n });\\n if (!response.ok) return { found: false };\\n const order = await response.json();\\n return { found: true, status: order.status, eta: order.estimated_delivery };\\n}\\n\",\n \"inputs\": [\n {\n \"name\": \"order_id\",\n \"type\": \"string\",\n \"source\": \"llm\",\n \"description\": \"The order number the customer reads out\",\n \"required\": true\n },\n {\n \"name\": \"region\",\n \"type\": \"string\",\n \"source\": \"fixed\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"eu\"\n },\n {\n \"name\": \"signing_key\",\n \"type\": \"string\",\n \"source\": \"secret\",\n \"description\": \"\",\n \"required\": false,\n \"value\": \"•••\"\n }\n ],\n \"credentials\": [\n {\n \"name\": \"shop\",\n \"connection_id\": \"3f1d0a52-0000-4000-8000-000000000020\"\n }\n ],\n \"timeout_ms\": 8000,\n \"filler_phrase\": \"One moment, I am checking the order.\",\n \"speak_after\": true\n },\n \"values\": {\n \"order_id\": \"A-10432\"\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"kind": "code_run",
"tool_id": "f1b2c3d4-0000-4000-8000-000000000011",
"tool_name": "check_order_status",
"ok": true,
"outcome": "success",
"agent_receives": "{\"found\":true,\"status\":\"shipped\",\"eta\":\"2026-12-03\"}",
"result": {
"found": true,
"status": "shipped",
"eta": "2026-12-03"
},
"console": [],
"requests": [
{
"method": "GET",
"url": "https://api.example.com/orders/A-10432",
"status": 200,
"duration_ms": 212
}
],
"inputs_used": {
"order_id": "A-10432",
"region": "eu",
"signing_key": "[redacted]"
},
"duration_ms": 248,
"outbound_requests": 1
}
}Authorizations
API key (fam_..., created under Settings → API Keys) or an OAuth 2.0 access token (fam_at_...). REST operations also require API Access for the credential's workspace. Keys can be restricted to scopes such as assistants:read, calls:write, campaigns:write, automations:read, dashboards:read, dashboards:write, leads:write, segments:write, loop:read, loop:write, phone_numbers:write, sip_trunks:write, knowledge:write, voices:read, billing:read, billing:write, settings:write, platform:read, platform:write, routine_approvals:read, routine_approvals:write; a *:write scope implies the matching *:read. Automation and dashboard endpoints also accept the legacy calls:* scope. Keys without scope restrictions have full access within the workspace's available capabilities.
Body
- HTTP tool test
- Option 2
Sends one real HTTP request for an API tool config.