{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/uptimemonitoring-com/json-schema/uptimemonitoring-com-push-subscription-request-schema.json",
  "title": "PushSubscriptionRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/uptimemonitoring-com-push-api-openapi.yml#/components/schemas/PushSubscriptionRequest",
  "type": "object",
  "required": [
    "endpoint",
    "p256dh",
    "auth"
  ],
  "properties": {
    "endpoint": {
      "type": "string",
      "format": "uri",
      "description": "Push service endpoint URL from the browser's\n`PushSubscription`. Must be HTTPS with a non-empty host.\n"
    },
    "p256dh": {
      "type": "string",
      "description": "Base64url-encoded P-256 ECDH public key from the browser.\nWrite-only — never returned in any response.\n"
    },
    "auth": {
      "type": "string",
      "description": "Base64url-encoded auth secret from the browser, used\nserver-side to encrypt push payloads. Write-only —\nnever returned in any response.\n"
    },
    "user_agent": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional client UA string for operator-facing UI."
    }
  }
}