Skip to main content
POST
/
agents
/
{agent_id}
/
actions
/
supplied
/
{catalog_action_id}
Add supplied action
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/agents/{agent_id}/actions/supplied/{catalog_action_id} \
  --header 'X-Maitai-Api-Key: <api-key>'
{
  "data": {
    "id": 4100,
    "agent_id": 101,
    "action_name": "web_search",
    "action_type": "api_call",
    "description": "Search the web for current information. Use this for questions about recent events or facts outside your knowledge.",
    "enabled": true,
    "status": "ENABLED",
    "meta": {
      "supplied": {
        "id": "web_search",
        "source_action_id": 4065,
        "source_content_hash": "a1b2c3..."
      }
    }
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

agent_id
integer
required
catalog_action_id
integer
required

Response

201 - application/json

Add supplied action.

data
object

A capability that an agent can invoke — an LLM call, API call, or webhook.