Body
Required
-
The Assistant ID.
Format should match the following pattern:
^aia_asst_.+$
. -
The description of the tool.
-
True if the tool is enabled.
-
The metadata related to method, url, input_schema to used with the Tool.
-
The name of the tool.
-
The policy associated with the tool.
-
The description of the tool.
POST
/v1/Tools
curl \
--request POST 'https://assistants.twilio.com/v1/Tools' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"assistant_id":"string","description":"string","enabled":true,"meta":{},"name":"string","policy":{"description":"string","id":"string","name":"string","type":"string"},"type":"string"}'
Request examples
{
"assistant_id": "string",
"description": "string",
"enabled": true,
"meta": {},
"name": "string",
"policy": {
"description": "string",
"id": "string",
"name": "string",
"type": "string"
},
"type": "string"
}
Response examples (201)
{
"account_sid": "string",
"description": "string",
"enabled": true,
"id": "string",
"meta": {},
"name": "string",
"requires_auth": true,
"type": "string",
"url": "string",
"date_created": "2025-05-04T09:42:00Z",
"date_updated": "2025-05-04T09:42:00Z"
}