{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/forward-email/json-schema/forward-email-push-token-input-schema.json",
  "title": "PushTokenInput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/forward-email-push-tokens-api-openapi.yml#/components/schemas/PushTokenInput",
  "type": "object",
  "required": [
    "platform",
    "token"
  ],
  "properties": {
    "platform": {
      "type": "string",
      "enum": [
        "apns",
        "fcm",
        "unified-push",
        "web-push"
      ],
      "description": "Push notification platform"
    },
    "token": {
      "type": "string",
      "maxLength": 4096,
      "description": "Device token (APNs hex), registration token (FCM), or a JSON push subscription with `endpoint` and `keys` (UnifiedPush and Web Push). Web Push endpoints must belong to a browser push service (Firebase Cloud Messaging, Mozilla, Apple or Windows); UnifiedPush endpoints must use HTTPS on port 443 or on port 1024 and above."
    },
    "device_name": {
      "type": "string",
      "maxLength": 255,
      "description": "Optional human-readable device name for management"
    },
    "alias_id": {
      "type": "string",
      "description": "Required when using API token authentication. The alias ID to register the token for."
    }
  }
}