Test an HTTP tool
curl --request POST \
--url https://agents.labs.bandwidth.com/api/v1/tools/{tool_uuid}/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"arguments": {}
}
'import requests
url = "https://agents.labs.bandwidth.com/api/v1/tools/{tool_uuid}/test"
payload = { "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({arguments: {}})
};
fetch('https://agents.labs.bandwidth.com/api/v1/tools/{tool_uuid}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"latency_ms": 123,
"status": "<string>",
"error": "<string>",
"status_code": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Tools
Test an HTTP tool
Execute an HTTP API tool with supplied arguments.
POST
/
api
/
v1
/
tools
/
{tool_uuid}
/
test
Test an HTTP tool
curl --request POST \
--url https://agents.labs.bandwidth.com/api/v1/tools/{tool_uuid}/test \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"arguments": {}
}
'import requests
url = "https://agents.labs.bandwidth.com/api/v1/tools/{tool_uuid}/test"
payload = { "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({arguments: {}})
};
fetch('https://agents.labs.bandwidth.com/api/v1/tools/{tool_uuid}/test', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"latency_ms": 123,
"status": "<string>",
"error": "<string>",
"status_code": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"ctx": {},
"input": "<unknown>"
}
]
}Testing sends a real request to the configured destination and can change data in that service.
400. Supply arguments matching the tool parameters. Inspect the response success/error fields: an HTTP 200 response does not by itself mean the downstream request succeeded.Authorizations
LabsAuthLabsApiKey
Bandwidth Labs OAuth access token. Uses the user's selected workspace; the workspace header is not required. Do not also send an API key. Bearer-only operations may additionally require the Labs super_user role.
Headers
Required with X-BW-LABS-AGENTS-API-KEY: the positive local workspace ID to access. The key owner must be a current member. Missing or invalid IDs return 400; non-member workspaces return 403. Not required for bearer authentication, which uses the user's selected workspace.
Path Parameters
Body
application/json