Skip to main content

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

Body

    arguments object

    Key-value arguments to use for the webhook test

Responses

200: Successful Response

422: Validation Error

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": {}
}
}