Open the tools of an agent
Open the agent in Communication > AI Agents and go to its API Connectors tab.
Add a tool

- Name: unique, in snake_case, for example
get_orderorconfirm_payment. - State: whether the agent may use the tool. Disable it while your API is under maintenance.
- Description: what the tool does and when to use it. The AI relies on it to decide, so be explicit:
Define the endpoint and headers

- Method:
GET,POST,PUT,DELETE… - URL: the full URL of your API, for example
https://api.example.com/orders/{reference}. - Headers: authentication and content type, for example
Authorization: Bearer ....
Secrets stored in headers are encrypted.
Define the parameters

- a name, unique within the tool, for example
reference; - a type:
STRING,INTEGERorBOOLEAN; aSTRINGcan be limited to a list of possible values; - a mandatory flag;
- a description telling the AI how to fill it, for example “The order reference, such as A-1042”.
Return responses the AI understands
Return JSON or plain text whose meaning is clear without your internal documentation:Test a tool
Use Debug on an endpoint to call it with sample parameters and see the response before the agent uses it.
Monitor the calls
The Connectors Logs of the agent list every call: time, parameters, response status and duration, and errors.