Test Assistant Tool
POST/ai/assistants/:assistant_id/tools/:tool_id/test
Test a webhook tool for an assistant
Request
Path Parameters
assistant_id Assistant Idrequired
tool_id Tool Idrequired
- application/json
Body
arguments object
Key-value arguments to use for the webhook test
Responses
200: Successful Response
- application/json
422: Validation Error
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/ai/assistants/:assistant_id/tools/:tool_id/test' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"arguments": {}
}'
Response samples
{
"data": {
"success": true,
"status_code": 0,
"content_type": "string",
"response": "string",
"request": {}
}
}
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}