Skip to main content
POST
/
agents
/
{agent_id}
/
subagents
Add sub agent
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/agents/{agent_id}/subagents \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "child_agent_id": 55
}
'
{
  "data": {
    "message": "Sub-agent added"
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

agent_id
integer
required

Body

application/json
child_agent_id
integer
required

Response

201 - application/json

Add sub agent.

data
any