MagicBell · Schema

APNSToken

notificationspush notificationsin-app notificationsemailSMSSlackMicrosoft Teamswebhooksnotification inboxmultichannelmobile pushweb push

Properties

Name Type Description
app_id string (Optional) The bundle identifier of the application that is registering this token. Use this field to override the default identifier specified in the projects APNs integration.
device_token string
installation_id string (Optional) The APNs environment the token is registered for. If none is provided we assume the token is used in `production`.
View JSON Schema on GitHub

JSON Schema

magicbell-apnstoken.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/magicbell/main/json-schema/magicbell-apnstoken.json",
  "title": "APNSToken",
  "required": [
    "device_token"
  ],
  "type": "object",
  "properties": {
    "app_id": {
      "pattern": "^[a-zA-Z0-9]+(.[a-zA-Z0-9]+)*$",
      "type": "string",
      "description": "(Optional) The bundle identifier of the application that is registering this token. Use this field to override the default identifier specified in the projects APNs integration."
    },
    "device_token": {
      "minLength": 64,
      "type": "string"
    },
    "installation_id": {
      "enum": [
        "development",
        "production"
      ],
      "type": "string",
      "description": "(Optional) The APNs environment the token is registered for. If none is provided we assume the token is used in `production`."
    }
  },
  "example": {
    "device_token": "eH0fLhuiRj2Np7UQ-opXAm:APA91bGtC-wH4sgW1jWkMKIZf7FYkm_RTQb7Jid7DfSJnCgivGYoRzhLrGxpcIF6yPjmbzAr6CKF-6phZkBasFUUfZmfdgcqfA_ZlZdVk6pSnon3LGzMumCzEJE0zgWoo_RUmVUVJUAt",
    "installation_id": "development"
  }
}