{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/senderkit-com/json-schema/senderkit-com-raw-web-push-send-schema.json",
  "title": "RawWebPushSend",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/senderkit-com-openapi.yaml#/components/schemas/RawWebPushSend",
  "type": "object",
  "required": [
    "channel",
    "content",
    "to"
  ],
  "properties": {
    "channel": {
      "type": "string",
      "const": "web-push"
    },
    "to": {
      "type": "string",
      "description": "JSON-serialized browser `PushSubscription` (the object returned by\n`pushManager.subscribe()`), including `endpoint` and `keys`.\n"
    },
    "interpolate": {
      "type": "boolean",
      "default": false
    },
    "content": {
      "type": "object",
      "required": [
        "title",
        "body"
      ],
      "properties": {
        "title": {
          "type": "string"
        },
        "body": {
          "type": "string"
        },
        "icon": {
          "type": "string",
          "description": "URL of the notification icon."
        },
        "clickUrl": {
          "type": "string",
          "description": "URL opened when the notification is clicked."
        },
        "data": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "badge": {
          "type": "integer",
          "minimum": 0
        }
      }
    },
    "vars": {
      "type": "object",
      "additionalProperties": true
    },
    "metadata": {
      "$ref": "#/$defs/Metadata"
    },
    "scheduledAt": {
      "type": "string",
      "format": "date-time",
      "description": "Optional ISO-8601 timestamp to schedule the send for later. Must be\nin the future and within 30 days. When provided, the send is\naccepted with `status: \"scheduled\"` and dispatched at that time.\n"
    }
  },
  "$defs": {
    "Metadata": {
      "type": "object",
      "description": "Caller-supplied tags/IDs. Values must be string, number, or boolean.",
      "additionalProperties": {
        "oneOf": [
          {
            "type": "string"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          }
        ]
      }
    }
  }
}