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 URLhttps://identity-api.paymongo.com
- URLhttps://identity-api.paymongo.com/v1/devices
- AuthHTTP bearer
Request body
Example request
{
"data": {
"attributes": {
"app_version": "1.4.2",
"device_token": "fJ8s...APNS-or-FCM-token",
"platform": "ios"
}
}
}Response
Created
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.