Skip to main content
GET
/
agents
/
{agent_id}
/
routing
/
config
Get routing config
curl --request GET \
  --url https://api.trymaitai.ai/api/v1/agents/{agent_id}/routing/config \
  --header 'X-Maitai-Api-Key: <api-key>'
{
  "data": {
    "config": {
      "type": "rules",
      "default": {
        "type": "llm"
      }
    },
    "rules": [
      {
        "id": 1,
        "label": "Route billing",
        "enabled": true
      }
    ]
  }
}

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

agent_id
integer
required

Response

200 - application/json

Get routing config.

data
any