Register this device for push.

fcm needs pushToken (the Firebase registration token); webpush needs the browser subscription. With a device token the target is removed when the device is revoked. Requires the cortex.write scope.

put/v1/notifications/push

Request

  • Base URL: https://api.cortexplus.io
  • URL: https://api.cortexplus.io/v1/notifications/push
  • Auth: HTTP bearer

Request body

provider'fcm' | 'webpush' required
pushTokenstring
subscriptionobject
platformstring

e.g. android, ios, web.

Response

Successful response.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.