Devices

Register a mobile device for push notifications

Registers (or refreshes) the caller's device push token. Called right after login and on every app launch since FCM/APNS tokens rotate. Creates or re-points the SNS platform endpoint and upserts the device row keyed on the device token.

post/v1/devices

Request

  • Base URL
    https://identity-api.paymongo.com
  • URL
    https://identity-api.paymongo.com/v1/devices
  • Auth
    HTTP bearer

Request body

Example request

{
  "data": {
    "attributes": {
      "app_version": "1.4.2",
      "device_token": "fJ8s...APNS-or-FCM-token",
      "platform": "ios"
    }
  }
}

Response

Created

has_moreboolean

Example response

{
  "data": {
    "attributes": {
      "app_version": "1.4.2",
      "enabled": true,
      "platform": "ios"
    }
  }
}

Changes

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