API reference · AI agents
Add a tool
Let an agent call one of your APIs, for example to check stock or create a booking. The agent decides when to use it from description_for_model.
POST/v1/whatsapp/agents/{agent_id}/tools
- Rate limit 120 / min
- Returns 201 Created
- Needs the WhatsApp permission · free
Body parameters
agent_idstringrequiredThe agent ID from when you created it.
namestringoptionalShort tool name, e.g. check_stock.
endpointstringoptionalYour HTTPS URL.
methodstringoptionalGET, POST, PUT or DELETE.
headersobjectoptionalHeaders to send, e.g. your own API key.
request_body_templatestringoptionalBody with placeholders the agent fills.
description_for_modelstringoptionalTells the agent when and how to use it.
is_securebooleanoptionalHide headers from logs.
Response fieldsResponse
idTool ID
enabledWhether the agent can use it
usage_count · last_used_atUsage
Errors
Tap one to see its response above.
Was this page helpful?
Powered by StdioX Labs