Account

Manage a users account and settings.


Save APN Token

Save a users apn token so they can receive push notifications via iPhone.

Endpoint

Method URI Authentication
POST /business/{unique_id}/apn true

Body Params

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 FCM Token

Save a users fcm token so they can receive push notifications via android.

Endpoint

Method URI Authentication
POST /business/{unique_id}/fcm true

Body Params

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 Notification Preferences

Update a users notification preferences within a business app.

Endpoint

Method URI Authentication
POST /business/{unique_id}/preferences true

Body Params

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
}