MagicBell · Schema

WebPushToken

notificationspush notificationsin-app notificationsemailSMSSlackMicrosoft Teamswebhooksnotification inboxmultichannelmobile pushweb push

Properties

Name Type Description
endpoint string
keys object
View JSON Schema on GitHub

JSON Schema

magicbell-webpushtoken.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/magicbell/main/json-schema/magicbell-webpushtoken.json",
  "title": "WebPushToken",
  "required": [
    "endpoint",
    "keys"
  ],
  "type": "object",
  "properties": {
    "endpoint": {
      "type": "string",
      "format": "uri"
    },
    "keys": {
      "required": [
        "p256dh",
        "auth"
      ],
      "type": "object",
      "properties": {
        "auth": {
          "type": "string"
        },
        "p256dh": {
          "type": "string"
        }
      }
    }
  },
  "example": {
    "endpoint": "https://example.com/webhook",
    "keys": {
      "auth": "<string>",
      "p256dh": "<string>"
    }
  }
}