cURL
curl --request POST \ --url https://api.trymaitai.ai/api/v1/agents/{agent_id}/actions \ --header 'Content-Type: application/json' \ --header 'X-Maitai-Api-Key: <api-key>' \ --data ' { "action_name": "Lookup Order", "action_type": "api", "description": "Fetch order details from the orders API", "invocation_mode": "foreground" } '
{ "data": { "id": 200, "action_name": "Lookup Order", "action_type": "api", "agent_id": 101, "enabled": true } }
Add a new action (LLM, API, or webhook capability) to an agent.
Your Maitai API key from the Portal.
Create agent action.
A capability that an agent can invoke — an LLM call, API call, or webhook.
Show child attributes
Was this page helpful?