{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reminderit-com/json-schema/reminderit-com-reminder-schema.json",
  "title": "Reminder",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reminderit-com-openapi.yml#/components/schemas/Reminder",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "messageText": {
      "type": "string",
      "description": "The message spoken during the call"
    },
    "type": {
      "type": "string",
      "enum": [
        "once",
        "recurring"
      ]
    },
    "scheduleHuman": {
      "type": "string",
      "description": "Human-readable schedule description"
    },
    "nextFireAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "timezone": {
      "type": "string"
    },
    "cronExpr": {
      "type": [
        "string",
        "null"
      ]
    },
    "intervalDays": {
      "type": [
        "integer",
        "null"
      ]
    },
    "runAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "recipientId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Set when the reminder calls someone else (see /recipients)"
    },
    "channels": {
      "$ref": "#/$defs/Channels"
    },
    "active": {
      "type": "boolean"
    },
    "pausedReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$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
        }
      }
    }
  }
}