Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Push token

Bind a device's push notification token to the current session, and filter what it receives.

A push token identifies one installation of a mobile application to its push service. Binding it to the current session is what lets the Navixy platform deliver notifications to that device.

A binding belongs to the session, so signing out and back in means binding again. For a walkthrough, see how to receive push notifications in your app.

Category filter

category_filter decides which notification categories reach the device:

  • * allows every category.

  • A comma-separated list allows only the categories named, for example chat_message,history_rule.

  • A comma-separated list prefixed with a minus allows every category except those named, for example -history_task,history_rule.

The categories are:

  • chat_message - a new chat message.

  • history_rule - a rule firing.

  • history_task - anything about a task.

  • history_info - service information.

  • history_service_task - a service task.

  • history_work_status - a working status change.

API actions

API base path: /user/session/push_token.

Operations that list no errors of their own return only the general error codes.


Bind push token

post
/user/session/push_token/bind

Associate a push notification token with the current session, so the platform can deliver push notifications to that device.

Authorizations
AuthorizationstringRequired

Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.

Body
applicationstring · enumRequired

Application the token belongs to.

Possible values:
tokenstringRequired

Push token, or the endpoint from pushSubscription as a full URL when the application is w3c_pushapi.

category_filterstringOptional

Optional. Which notification categories to deliver. Defaults to *, meaning all. A comma-separated list allows only those categories; the same list prefixed with a minus allows all except those.

Responses
200

Token bound

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/user/session/push_token/bind
POST /v2/user/session/push_token/bind HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 130

{
  "application": "navixy_iphone_viewer",
  "token": "text",
  "parameters": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  },
  "category_filter": "text"
}
{
  "success": true
}

Delete push token

post
/user/session/push_token/delete

Remove the push notification token associated with the current session.

Takes no parameters. Returns error code 201, not found in database, when the session has no token bound.

Also accepts GET with the same parameters as query-string values.

Authorizations
AuthorizationstringRequired

Either a user session hash or an API key, with the "NVX " prefix, for example "NVX 22eac1c27af4be7b9d04da2ce1af111b". Obtain a session hash from the userAuth operation, or create an API key from the API keys operations. A small number of operations accept a session hash only and reject an API key with error code 4; each says so in its description.

Responses
200

Token deleted

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/user/session/push_token/delete
POST /v2/user/session/push_token/delete HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "success": true
}

Errors

These errors come in addition to the general error codes:

  • 201 - Not found in the database, when the session has no token bound.

Last updated

Was this helpful?