Skip to main content
PUT
/
agents
/
{agent_id}
Update agent
curl --request PUT \
  --url https://api.trymaitai.ai/api/v1/agents/{agent_id} \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "description": "Updated onboarding flow with KYC step",
  "strategy_prompt_addendum": "Always verify identity before proceeding."
}
'
{
  "data": {
    "id": 101,
    "agent_name": "Onboarding Agent",
    "description": "Updated onboarding flow with KYC step",
    "status": "ENABLED"
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

agent_id
integer
required

Body

application/json
agent_name
string
description
string
base_url
string
agent_config
object
meta
object
status
string
strategy_prompt_addendum
string

Response

200 - application/json

Update agent.

data
object

An agent orchestrates actions, sub-agents, and routing to handle complex multi-step tasks.