{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/reflecto-dev/json-schema/reflecto-dev-pushover-request-schema.json",
  "title": "PushoverRequest",
  "description": "Pushover-compatible send payload. Accepts the exact field set so existing Pushover clients can migrate by changing one URL. Unknown fields are ignored.",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/reflecto-dev-openapi.yml#/components/schemas/PushoverRequest",
  "type": "object",
  "properties": {
    "token": {
      "type": "string",
      "pattern": "^rfk_(live|test)_[A-Za-z0-9]{32}$",
      "description": "Reflecto sender token (`rfk_live_…` or `rfk_test_…`). Stands in for Pushover's app token."
    },
    "user": {
      "type": "string",
      "description": "Accepted for Pushover-client compatibility; the value is ignored (the token already identifies the user)."
    },
    "message": {
      "type": "string",
      "description": "Notification body. Required by Pushover; same semantics as `/v1/send`."
    },
    "title": {
      "type": "string",
      "description": "Optional title. Same byte cap as `/v1/send` (100 bytes UTF-8)."
    },
    "priority": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "0",
            "1",
            "2",
            "-2",
            "-1"
          ]
        },
        {
          "type": "integer",
          "minimum": -2,
          "maximum": 2
        }
      ],
      "description": "Pushover priority. `-2` → min, `-1` → low, `0` → default, `1` → high. `2` (Emergency) is accepted by the wire schema but rejected server-side with `400 priority_emergency_unsupported` — Reflecto does not implement Pushover's receipt-polling contract, so silently downgrading would break migrations that depend on it."
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "url_title": {
      "type": "string"
    },
    "device": {
      "type": "string",
      "description": "Optional target device(s); same semantics as `/v1/send`."
    },
    "ttl": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 259200
        },
        {
          "type": "string"
        }
      ],
      "description": "Seconds the message stays in the per-device queue if not delivered live. Capped at 72 hours (259200 s) to match the Redis queue TTL. Same semantics as `SendRequest.ttl` — both endpoints feed through the shared `processSend` clamp. The string branch is only meaningful for form-encoded callers (Pushover senders post `ttl=600`); JSON callers should use the integer branch."
    },
    "sound": {
      "type": "string",
      "description": "Accepted for Pushover-client compatibility; ignored in MVP (no custom sounds)."
    },
    "timestamp": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "string"
        }
      ],
      "description": "Accepted for Pushover-client compatibility; ignored (server uses current time)."
    }
  },
  "required": [
    "token",
    "message"
  ]
}