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_idstringrequired

    The agent ID from when you created it.

  • namestringoptional

    Short tool name, e.g. check_stock.

  • endpointstringoptional

    Your HTTPS URL.

  • methodstringoptional

    GET, POST, PUT or DELETE.

  • headersobjectoptional

    Headers to send, e.g. your own API key.

  • request_body_templatestringoptional

    Body with placeholders the agent fills.

  • description_for_modelstringoptional

    Tells the agent when and how to use it.

  • is_securebooleanoptional

    Hide headers from logs.

Response fields

  • id

    Tool ID

  • enabled

    Whether the agent can use it

  • usage_count · last_used_at

    Usage

Errors

Tap one to see its response above.

Was this page helpful?
Powered by StdioX Labs