{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/pushary-com/json-schema/pushary-com-send-notification-schema.json",
  "title": "SendNotification",
  "description": "A push notification to send now. With no audience field the notification goes to every active subscriber on the site.",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/pushary-com-openapi.json#/components/schemas/SendNotification",
  "type": "object",
  "required": [
    "title",
    "body"
  ],
  "properties": {
    "title": {
      "type": "string",
      "description": "Notification title."
    },
    "body": {
      "type": "string",
      "description": "Notification body."
    },
    "iconUrl": {
      "type": "string",
      "description": "Icon image URL.",
      "format": "uri"
    },
    "imageUrl": {
      "type": "string",
      "description": "Hero image URL.",
      "format": "uri"
    },
    "url": {
      "type": "string",
      "description": "Where a click should land.",
      "format": "uri"
    },
    "subscriberIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Send only to these Pushary subscriber ids."
    },
    "externalIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Send only to subscribers carrying these external ids."
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Send only to subscribers holding every one of these tags."
    },
    "data": {
      "type": "object",
      "description": "Arbitrary JSON delivered with the notification."
    },
    "metadata": {
      "type": "object",
      "description": "Arbitrary JSON recorded against the send."
    },
    "idempotencyKey": {
      "type": "string",
      "description": "Stable across retries of one logical send. Maximum 200 characters. May also be supplied as the Idempotency-Key header; supplying both with different values is a 400.",
      "maxLength": 200
    }
  }
}