Create tool

post/v1/Tools

Request

  • Base URL
    https://assistants.twilio.com
  • URL
    https://assistants.twilio.com/v1/Tools
  • Auth
    HTTP basic

Request body

assistant_idstring

The Assistant ID.

descriptionstring

The description of the tool.

enabledboolean required

True if the tool is enabled.

metaobject

The metadata related to method, url, input_schema to used with the Tool.

namestring required

The name of the tool.

typestring required

The description of the tool.

Response

Created

account_sidstring

The SID of the Account that created the Tool resource.

descriptionstring required

The description of the tool.

enabledboolean required

True if the tool is enabled.

idstring required

The tool ID.

metaobject required

The metadata related to method, url, input_schema to used with the Tool.

namestring required

The name of the tool.

requires_authboolean required

The authentication requirement for the tool.

typestring required

The type of the tool. ('WEBHOOK')

urlstring

The url of the tool resource.

date_createdstring date-time required

The date and time in GMT when the Tool was created specified in ISO 8601 format.

date_updatedstring date-time required

The date and time in GMT when the Tool was last updated specified in ISO 8601 format.

Changes

    • warning

      changed the pattern of the request property from ^aia_asst_*$ to ^aia_asst_.+$

    • warning

      changed the pattern of the request property / from ^aia_plcy_*$ to ^aia_plcy_.+$

    • info

      the response's property pattern was changed from ^aia_tool_*$ to ^aia_tool_.+$ for the status

    • info

      added the optional property to the response with the status