Skip to main content
POST
/
monitors
/
{monitor_id}
/
preview
Preview monitor
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/monitors/{monitor_id}/preview \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "use": "draft",
  "payload": {
    "response": {
      "order_total": 199.99
    }
  }
}
'
{
  "data": {
    "monitor_id": 501,
    "used_version_id": null,
    "runner_type": "direct",
    "runner_output": {
      "response": {
        "order_total": 199.99
      }
    },
    "runner_duration_ms": 2,
    "outcome": "error",
    "resolution_trace": {
      "matched": "error",
      "error": {
        "kind": "group",
        "op": "OR",
        "matched": true,
        "children": [
          {
            "kind": "condition",
            "path": "customer_id",
            "operator": "does_not_exist",
            "matched": true,
            "actual": null
          }
        ]
      }
    }
  }
}

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.

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

monitor_id
integer
required

Body

application/json

The body is of type any.

Response

200 - application/json

Preview monitor.

data
any