Frontend API
Last updated
Last updated
The frontend API is used by the widget to fetch the user profile, notifications settings and messages.
You might need to use it if you want to build your own widget, or list the users messages somewhere else out of the widget.
The frontend API endpoint is: https://api.notifuse.com/front/
and the data is sent as JSON.
This method returns the user profile with its preferences: which notifications he wants to mute or not, and the list of notifications definitions.
GET https://api.notifuse.com/front/users.get
List messages for a given user, sent to the "widget" channel. The response contains the count of unread messages and the overall total.
GET https://api.notifuse.com/front/messages.list
POST https://api.notifuse.com/front/messages.read
POST https://api.notifuse.com/front/messages.readAll
POST https://api.notifuse.com/front/users.setProfile
Param
Type
Description
projectId
string REQUIRED
Project ID
userId
string REQUIRED
User ID
userHmac
string REQUIRED
HMAC256 of the userId
Param
Type
Description
projectId
string REQUIRED
Project ID
userId
string REQUIRED
User ID
userHmac
string REQUIRED
HMAC256 of the userId
skip
int
Number of messages to retrieve
limit
int
Number of messages to skip
Param
Type
Description
projectId
string REQUIRED
Project ID
userId
string REQUIRED
User ID
userHmac
string REQUIRED
HMAC256 of the userId
messageId
string REQUIRED
Message ID
Param
Type
Description
projectId
string REQUIRED
Project ID
userId
string REQUIRED
User ID
userHmac
string REQUIRED
HMAC256 of the userId
Param
Type
Description
projectId
string REQUIRED
Project ID
userId
string REQUIRED
User ID
userHmac
string REQUIRED
HMAC256 of the userId
user
object REQUIRED
The user object with updated preferences
.