cURL
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 } ] } }
Retrieve the routing configuration and all routing rules for an agent.
Your Maitai API key from the Portal.
Get routing config.
Was this page helpful?