Push notifications

The following queries are used for management:

addpush - create or edit a push notification. Extra options are:

  • k - user session ID;
  • id - identifier of the Push notification; if there is no identifier, a new notification is created, otherwise the existing notification is edited;
  • name - the name of the Push notification, the length is not more than 63 characters;
  • to - the name of the user, there can be several names, in such a case they are separated by a comma, maybe not more than 10 users with a maximum of 63 characters each;
  • message - message text template, the length is not more than 1023 characters.


If a new element is successfully created, the response contains the element identifier, and looks like:

<error type="no error" id="609001" />

When creating a new notification (id is not specified), all the listed parameters are mandatory. When changing, only modifiable parameters can be specified. Empty parameters are not allowed.


delpush - delete the notification. Required parameters are:

  • k - user session ID;
  • id - Push notification ID;


testmessage - make a test push message, without creating a new element. Required parameters are:

  • k - user session ID;
  • type - type of test notification (push);
  • to - the name of the user, there can be several names, in such a case they are separated by a comma, maybe not more than 10 users with a maximum of 63 characters each;
  • message - message text template, the length is not more than 1023 characters.


getelement - read the element. Required parameters are:

  • k - user session ID;
  • id - element ID.


The response contains information about the element:

<element id="609001" module="2013" num="1" clas="notifier" type="push" name="push01" state="off" to="guest" message="test_push" />

assignpush - assign push token to user. Extra options are:

  • k - user session ID;
  • name - the name of the user, the length is not more than 63 characters, user must exist;
  • token - firebase token, the length is not more than 1023 characters.