Skip to main content
GET
/
monitors
/
sample-target
Get target sample
curl --request GET \
  --url https://api.trymaitai.ai/api/v1/monitors/sample-target \
  --header 'X-Maitai-Api-Key: <api-key>'
{
  "data": {
    "target_type": "workflow",
    "target_id": 42,
    "payload": {
      "session_id": "session_abc123",
      "input": {
        "order_id": "ord_001"
      },
      "response": {
        "customer_id": "cust_42",
        "order_total": 199.99,
        "items": [
          {
            "sku": "WIDGET-1",
            "qty": 2
          }
        ]
      }
    },
    "payload_paths": [
      "session_id",
      "input.order_id",
      "response.customer_id",
      "response.order_total",
      "response.items.0.sku",
      "response.items.0.qty"
    ],
    "sampled_at": 1737550000000,
    "source_type": "workflow",
    "source_type_id": "session_abc123"
  }
}

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.

Query Parameters

target_type
string
required
target_id
string

Response

200 - application/json

Get target sample.

data
any