{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reminderit-com/json-schema/reminderit-com-reminder-create-schema.json",
  "title": "ReminderCreate",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reminderit-com-openapi.yml#/components/schemas/ReminderCreate",
  "type": "object",
  "required": [
    "title",
    "messageText",
    "type"
  ],
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 120,
      "description": "Short name for the reminder"
    },
    "messageText": {
      "type": "string",
      "maxLength": 600,
      "description": "The message spoken during the phone call"
    },
    "type": {
      "type": "string",
      "enum": [
        "once",
        "recurring"
      ]
    },
    "timezone": {
      "type": "string",
      "description": "IANA timezone, e.g. 'Europe/London', 'America/New_York'. Defaults to the account's."
    },
    "runAt": {
      "type": "string",
      "format": "date-time",
      "description": "When to call (required for type=once)"
    },
    "cronExpr": {
      "type": "string",
      "description": "Cron expression for recurring schedules, e.g. '0 8 * * 1-5'"
    },
    "intervalDays": {
      "type": "integer",
      "minimum": 1,
      "maximum": 365,
      "description": "Repeat every N days (simpler alternative to cronExpr)"
    },
    "recipientId": {
      "type": "string",
      "description": "Call this recipient instead of the account owner"
    },
    "channels": {
      "$ref": "#/$defs/Channels"
    }
  },
  "$defs": {
    "Channels": {
      "type": "object",
      "properties": {
        "voice": {
          "type": "boolean",
          "default": true,
          "description": "Place a phone call"
        },
        "whatsappFallback": {
          "type": "boolean",
          "default": true,
          "description": "Also send the reminder on WhatsApp"
        },
        "emailFallback": {
          "type": "boolean",
          "default": false
        }
      }
    }
  }
}