Get monitor
curl --request GET \
--url https://api.trymaitai.ai/api/v1/monitors/{monitor_id} \
--header 'X-Maitai-Api-Key: <api-key>'{
"data": {
"id": 501,
"name": "Order intake completeness",
"description": "Catches order intents that miss customer_id or order_total.",
"status": "ACTIVE",
"config": {
"runner": {
"resource_type": "model",
"resource_id": "gpt-4o-mini",
"input": {
"prompt": "Review this order. Reply JSON: {\"is_bad\": bool, \"reason\": str}.",
"messages_path": "messages",
"response_path": "response"
}
},
"result": {
"error": {
"id": "g_err",
"kind": "group",
"op": "OR",
"children": [
{
"id": "c1",
"kind": "condition",
"source": "json",
"path": "is_bad",
"operator": "is_true",
"value": ""
}
]
},
"warning": {
"id": "g_warn",
"kind": "group",
"op": "OR",
"children": []
},
"default_outcome": "pass"
}
},
"targets": [
{
"id": 9001,
"monitor_id": 501,
"target_type": "intent",
"target_id": 7,
"target_name": "order_intake",
"sample_rate": 5,
"enabled": true,
"active": true
}
],
"target_count": 1,
"latest_version_number": "1.2.0",
"has_unpublished_changes": false,
"last_run_at": 1737550000000
}
}Monitors
Get monitor
Retrieve a monitor by ID. Use include_targets=false to skip target loading.
GET
/
monitors
/
{monitor_id}
Get monitor
curl --request GET \
--url https://api.trymaitai.ai/api/v1/monitors/{monitor_id} \
--header 'X-Maitai-Api-Key: <api-key>'{
"data": {
"id": 501,
"name": "Order intake completeness",
"description": "Catches order intents that miss customer_id or order_total.",
"status": "ACTIVE",
"config": {
"runner": {
"resource_type": "model",
"resource_id": "gpt-4o-mini",
"input": {
"prompt": "Review this order. Reply JSON: {\"is_bad\": bool, \"reason\": str}.",
"messages_path": "messages",
"response_path": "response"
}
},
"result": {
"error": {
"id": "g_err",
"kind": "group",
"op": "OR",
"children": [
{
"id": "c1",
"kind": "condition",
"source": "json",
"path": "is_bad",
"operator": "is_true",
"value": ""
}
]
},
"warning": {
"id": "g_warn",
"kind": "group",
"op": "OR",
"children": []
},
"default_outcome": "pass"
}
},
"targets": [
{
"id": 9001,
"monitor_id": 501,
"target_type": "intent",
"target_id": 7,
"target_name": "order_intake",
"sample_rate": 5,
"enabled": true,
"active": true
}
],
"target_count": 1,
"latest_version_number": "1.2.0",
"has_unpublished_changes": false,
"last_run_at": 1737550000000
}
}Documentation Index
Fetch the complete documentation index at: https://docs.trymaitai.com/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?
⌘I