curl --request POST \
--url https://apiv2.vodex.ai/v1/console/tools/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tool": {
"server": {
"url": "https://tools.example.com/vodex",
"authHeader": "Authorization",
"secretRef": "<string>",
"timeoutMs": 2000
},
"name": "<string>",
"description": "<string>"
},
"arguments": {}
}
'import requests
url = "https://apiv2.vodex.ai/v1/console/tools/test"
payload = {
"tool": {
"server": {
"url": "https://tools.example.com/vodex",
"authHeader": "Authorization",
"secretRef": "<string>",
"timeoutMs": 2000
},
"name": "<string>",
"description": "<string>"
},
"arguments": {}
}
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({
tool: {
server: {
url: 'https://tools.example.com/vodex',
authHeader: 'Authorization',
secretRef: '<string>',
timeoutMs: 2000
},
name: '<string>',
description: '<string>'
},
arguments: {}
})
};
fetch('https://apiv2.vodex.ai/v1/console/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://apiv2.vodex.ai/v1/console/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([
'tool' => [
'server' => [
'url' => 'https://tools.example.com/vodex',
'authHeader' => 'Authorization',
'secretRef' => '<string>',
'timeoutMs' => 2000
],
'name' => '<string>',
'description' => '<string>'
],
'arguments' => [
]
]),
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://apiv2.vodex.ai/v1/console/tools/test"
payload := strings.NewReader("{\n \"tool\": {\n \"server\": {\n \"url\": \"https://tools.example.com/vodex\",\n \"authHeader\": \"Authorization\",\n \"secretRef\": \"<string>\",\n \"timeoutMs\": 2000\n },\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"arguments\": {}\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://apiv2.vodex.ai/v1/console/tools/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tool\": {\n \"server\": {\n \"url\": \"https://tools.example.com/vodex\",\n \"authHeader\": \"Authorization\",\n \"secretRef\": \"<string>\",\n \"timeoutMs\": 2000\n },\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"arguments\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.vodex.ai/v1/console/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 \"tool\": {\n \"server\": {\n \"url\": \"https://tools.example.com/vodex\",\n \"authHeader\": \"Authorization\",\n \"secretRef\": \"<string>\",\n \"timeoutMs\": 2000\n },\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"arguments\": {}\n}"
response = http.request(request)
puts response.read_bodyTest a custom tool
Call your own tool server once, with the exact envelope an assistant sends mid-call, and get back what it said. The point is to find a broken URL, a wrong auth header or a slow endpoint while you are configuring an assistant — not while a customer is on the phone.
The URL passes the same gate as a saved tool and as the webhook endpoint: https only, no credentials in the URL, no private or link-local destination. This endpoint deliberately cannot reach an address the save path would refuse.
A URL that fails that gate is 200 with ok: false, not a 4xx —
the failure is a result to display in a form, not a malformed request.
Only a missing tool.server.url is a 400.
The body posted to your server is:
{
"type": "tool.call",
"id": "console-test",
"calls": [{ "toolCallId": "test", "name": "<tool.name>", "arguments": { } }]
}
curl --request POST \
--url https://apiv2.vodex.ai/v1/console/tools/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tool": {
"server": {
"url": "https://tools.example.com/vodex",
"authHeader": "Authorization",
"secretRef": "<string>",
"timeoutMs": 2000
},
"name": "<string>",
"description": "<string>"
},
"arguments": {}
}
'import requests
url = "https://apiv2.vodex.ai/v1/console/tools/test"
payload = {
"tool": {
"server": {
"url": "https://tools.example.com/vodex",
"authHeader": "Authorization",
"secretRef": "<string>",
"timeoutMs": 2000
},
"name": "<string>",
"description": "<string>"
},
"arguments": {}
}
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({
tool: {
server: {
url: 'https://tools.example.com/vodex',
authHeader: 'Authorization',
secretRef: '<string>',
timeoutMs: 2000
},
name: '<string>',
description: '<string>'
},
arguments: {}
})
};
fetch('https://apiv2.vodex.ai/v1/console/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://apiv2.vodex.ai/v1/console/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([
'tool' => [
'server' => [
'url' => 'https://tools.example.com/vodex',
'authHeader' => 'Authorization',
'secretRef' => '<string>',
'timeoutMs' => 2000
],
'name' => '<string>',
'description' => '<string>'
],
'arguments' => [
]
]),
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://apiv2.vodex.ai/v1/console/tools/test"
payload := strings.NewReader("{\n \"tool\": {\n \"server\": {\n \"url\": \"https://tools.example.com/vodex\",\n \"authHeader\": \"Authorization\",\n \"secretRef\": \"<string>\",\n \"timeoutMs\": 2000\n },\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"arguments\": {}\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://apiv2.vodex.ai/v1/console/tools/test")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"tool\": {\n \"server\": {\n \"url\": \"https://tools.example.com/vodex\",\n \"authHeader\": \"Authorization\",\n \"secretRef\": \"<string>\",\n \"timeoutMs\": 2000\n },\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"arguments\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://apiv2.vodex.ai/v1/console/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 \"tool\": {\n \"server\": {\n \"url\": \"https://tools.example.com/vodex\",\n \"authHeader\": \"Authorization\",\n \"secretRef\": \"<string>\",\n \"timeoutMs\": 2000\n },\n \"name\": \"<string>\",\n \"description\": \"<string>\"\n },\n \"arguments\": {}\n}"
response = http.request(request)
puts response.read_bodyAuthorizations
Tenant API key (vdx_live_…) as Authorization: Bearer.
Body
Response
The attempt's result — including the failures, which are results rather than errors.
True when your server answered with a status under 400.
Absent when nothing answered.
Round trip in milliseconds.
Your server's response, truncated to 4000 characters.
Why there is no response — a rejected URL, a transport failure, or No response within <timeoutMs>ms.