Create mid call tool
Mid Call Tools
Create mid call tool
Create a new mid call tool
POST
Create mid call tool
This endpoint allows you to create a new mid call tool that can be used by your AI assistants to interact with external APIs during calls.
Body Parameters
The public API creates HTTP request tools. Automation Platform tools (which
generate a linked flow) are created from the dashboard. Tool values support
dynamic variables — use
{param} for AI-extracted parameters in the URL, and
{{variable}} (e.g. {{customer_phone}}) in the URL, header values, and static
field values.Tool name — letters, numbers and underscores, starting with a letter or underscore (max 64 characters, e.g.,
get_weather, book_appointment)Detailed explanation of when and how the AI should use this tool (max 255 characters)
Valid URL of the API endpoint to call (max 2048 characters)
HTTP method:
GET, POST, PUT, PATCH, or DELETEHow the request body is encoded for write methods (POST/PUT/PATCH):
json (default) or form (application/x-www-form-urlencoded)Request timeout in seconds (1-30, default: 10)
HTTP headers to send with the request
Fixed key/value pairs always sent with the request (the AI never changes them)
Parameters that the AI will extract from conversation and send to the endpoint
Response fields
Success message
The created tool object
Attaching Tools to Assistants
After creating a tool, you need to attach it to an assistant to use it during calls. Tools are managed through the Assistant API:- Create Assistant - Use the
tool_idsparameter to attach tools when creating an assistant - Update Assistant - Use the
tool_idsparameter to add, remove, or replace tools on an existing assistant

