{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/captapi-com/json-schema/captapi-com-monitor-create-schema.json",
  "title": "MonitorCreate",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/captapi-com-openapi.json#/components/schemas/MonitorCreate",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120,
      "title": "Name",
      "default": ""
    },
    "endpoint": {
      "type": "string",
      "title": "Endpoint",
      "description": "Captapi GET path, e.g. /v1/reddit/subreddit-posts"
    },
    "params": {
      "additionalProperties": true,
      "type": "object",
      "title": "Params"
    },
    "interval_minutes": {
      "type": "integer",
      "maximum": 1440,
      "minimum": 15,
      "title": "Interval Minutes",
      "default": 60
    },
    "webhook_url": {
      "type": "string",
      "title": "Webhook Url",
      "description": "HTTPS URL that receives new-item payloads"
    },
    "secret": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 128,
          "minLength": 16
        },
        {
          "type": "null"
        }
      ],
      "title": "Secret",
      "description": "HMAC secret; generated if omitted"
    }
  },
  "type": "object",
  "required": [
    "endpoint",
    "webhook_url"
  ]
}