# Mekler AI Schema Monitor – Create Monitor

> Mekler AI Schema Monitor – Create Monitor is a paid API for AI agents from api.mekler.ai, paid per call via x402, $0.5/call, status unknown (last checked 2026-11-20).

Creates a 7-day hourly monitoring job that checks a public HTTPS JSON API against a user-supplied schema and alerts on contract faults or recoveries.

## Facts

- Endpoint: POST https://api.mekler.ai/v1/services/schema-monitors/create-monitor?utm_source=zero.xyz
- Price: $0.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mekler-ai-schema-monitor-create-monitor-93507d94
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RALOMbYSkNTanxhCBBCni

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability mekler-ai-schema-monitor-create-monitor-93507d94 -d '<json body>'
```

Example prompt: Set up a 7-day hourly schema monitor for https://api.example.com/v1/prices — I want to make sure it keeps returning an object with at least a 'price' number field and a 'currency' string field, and alert me if it ever breaks that contract. My owner key is a1b2c3...64hexchars and request ID is monitor-prices-001.

## When to prefer this

Choose this endpoint when you need automated, recurring hourly schema compliance checks on a public HTTPS JSON API over a bounded 7-day window, with contract fault and recovery alerting and private history stored server-side. Prefer it over one-shot validation tools when you need ongoing drift detection rather than a single check, and over general uptime monitors when response structure correctness (not just availability) is your concern.

## Known failure modes

- Invalid or unreachable target URL returns an error indicating source failure is unknown
- Schema object exceeds 24 properties limit causing a validation rejection
- Owner key not matching 64-character hex pattern results in a 400 error
- Request ID outside allowed character set or length bounds returns a format error
- Payment not completed (x402 flow) results in a 402 response before monitor creation
- Duplicate request_id may result in idempotency conflict or rejection

## How this service works

Monitor one public HTTPS JSON API against your explicit schema for seven days. Includes an initial observation and up to 167 hourly checks, confirmed contract fault/recovery alerts and private history. Source failures remain unknown. 0.50 USDC per term; retrieve and delete with your private capability.

## Output

Returns a JSON object with a unique monitor_id, the term duration in seconds (604800 for 7 days), the check interval in seconds (3600 for hourly), and the maximum number of observations (168). The monitor runs asynchronously, performing up to 167 subsequent hourly checks after the initial observation and storing private history retrievable via the owner key.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "format": "uri",
   "maxLength": 1024
  },
  "schema": {
   "type": "object",
   "maxProperties": 24,
   "minProperties": 1
  },
  "owner_key": {
   "type": "string",
   "pattern": "^[a-f0-9]{64}$",
   "maxLength": 64,
   "minLength": 64
  },
  "request_id": {
   "type": "string",
   "pattern": "^[A-Za-z0-9_-]+$",
   "maxLength": 64,
   "minLength": 16
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ok",
  "monitor_id": "7ba23e2c5cc7c11246d33660534b28f6a250ef749ec15ba3",
  "term_seconds": 604800,
  "interval_seconds": 3600,
  "maximum_observations": 168
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mekler-ai-schema-monitor-create-monitor-93507d94/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mekler.ai](https://www.zero.xyz/host/api.mekler.ai/llms.txt)
