Skip to main content
GET
/
agents
/
{agent_id}
/
versions
/
diff
Diff agent versions
curl --request GET \
  --url https://api.trymaitai.ai/api/v1/agents/{agent_id}/versions/diff \
  --header 'X-Maitai-Api-Key: <api-key>'
{
  "data": {
    "agent_id": 101,
    "from_version": "1.2.0",
    "to_version": "draft",
    "has_changes": true,
    "agent": {
      "agent_config.high_performance": {
        "from": null,
        "to": true
      }
    },
    "actions": {
      "added": [
        "escalate_ticket"
      ],
      "removed": [],
      "changed": {
        "answer_question": {
          "action_config.model_config.model": {
            "from": "gpt-4o",
            "to": "gpt-5.2"
          }
        }
      }
    },
    "sub_agents": {
      "added": [],
      "removed": [],
      "changed": {}
    },
    "routing_rules": {}
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

agent_id
integer
required

Query Parameters

from
string

Diff base: a version string (e.g. '1.2.0'), release name, or 'draft'.

to
string
default:draft

Diff target: a version string, release name, or 'draft' (default).

Response

200 - application/json

Diff agent versions.

data
any