Manage a users account and settings.
Save a users apn token so they can receive push notifications via iPhone.
Method | URI | Authentication |
---|---|---|
POST |
/business/{unique_id}/apn |
true |
Name | Type | Status | Description |
---|---|---|---|
token |
string |
required |
The apn token generated by Apple |
{success} Example Success Response Code
200
Content
{
"success": true,
"message": "APN token has been saved.",
"data": null
}
Save a users fcm token so they can receive push notifications via android.
Method | URI | Authentication |
---|---|---|
POST |
/business/{unique_id}/fcm |
true |
Name | Type | Status | Description |
---|---|---|---|
token |
string |
required |
The fcm token generated by an Android |
{success} Example Success Response Code
200
Content
{
"success": true,
"message": "FCM token has been saved.",
"data": null
}
Update a users notification preferences within a business app.
Method | URI | Authentication |
---|---|---|
POST |
/business/{unique_id}/preferences |
true |
Name | Type | Status | Description |
---|---|---|---|
email_notifications |
boolean |
optional |
Check if user wants to opt into email notifications |
sms_notifications |
boolean |
optional |
Check if user wants to opt into sms notifications |
push_notifications |
boolean |
optional |
Check if user wants to opt into push notifications |
{success} Example Success Response Code
200
Content
{
"success": true,
"message": "Your notification settings have been updated",
"data": null
}