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

User applications

Third-party applications embedded into the Navixy platform interface, and how to manage them through the API.

A user application embeds a third-party application into the platform interface, either inline or opened in a new tab. It is configured entirely from the account, with no developer or support involvement, using URL parameters, user authentication, and session management to pass context through to the embedded application.

Applications are usually configured from the interface. For those instructions, see User applications in the user documentation. The operations below do the same configuration from code: they list, create, replace, delete, and hide applications.

Application object

API actions

API base path: /user/application.

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


Required sub-user rights: none.

List user applications

post
/user/application/list

List the custom applications registered for the account, enabled or not.

This operation needs no right of its own, only a valid session, and it returns the stored key of every application whose authorization.type is api_key.

Callable with an empty body. Also accepts GET.

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

The applications

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/user/application/list
POST /v2/user/application/list HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "list": [
    {
      "id": 1,
      "label": "text",
      "url_template": "text",
      "enabled": true,
      "authorization": {
        "type": "none",
        "hash": "text"
      },
      "display_method": "new_tab",
      "icon": "text",
      "description": "text"
    }
  ]
}

Required sub-user rights: admin (available only to master users).

Create user application

post
/user/application/create

Register a custom application for the account.

id and enabled are accepted and ignored: a new application is always created enabled, and user/application/enabled/set hides it afterwards.

icon is not length-checked and is stored in a 50-character column, so a longer value fails with error code 1, a database error, rather than a validation error.

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

Requires the admin right.

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
Responses
200

The created application

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
idintegerOptional

Identifier of the new application.

post/user/application/create
POST /v2/user/application/create HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 184

{
  "application": {
    "id": 1,
    "label": "text",
    "url_template": "text",
    "enabled": true,
    "authorization": {
      "type": "none",
      "hash": "text"
    },
    "display_method": "new_tab",
    "icon": "text",
    "description": "text"
  }
}
{
  "success": true,
  "id": 1
}

Errors

These errors come in addition to the general error codes:

  • 268 - Over quota, when the account already holds as many applications as the platform allows.


Required sub-user rights: admin (available only to master users).

Update user application

post
/user/application/update

Replace an existing application.

This is a full replacement, not a merge. Every optional field left out is reset to its default: enabled to true, authorization to user_session, display_method to new_tab, icon to extension, and description to empty. Send the whole object, not only the fields being changed.

The length limits are not enforced here, unlike on create. An over-long label, url_template, description, or icon fails with error code 1, a database error, instead of error code 7. Types and enum values are still checked and still give error code 7.

id has to name an existing application of this account. Naming one that does not exist, or leaving id out, returns error code 201, not found in database.

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

Requires the admin right.

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
Responses
200

Application replaced

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

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

{
  "application": {
    "id": 1,
    "label": "text",
    "url_template": "text",
    "enabled": true,
    "authorization": {
      "type": "none",
      "hash": "text"
    },
    "display_method": "new_tab",
    "icon": "text",
    "description": "text"
  }
}
{
  "success": true
}

Errors

These errors come in addition to the general error codes:

  • 201 - Not found in the database, when id names no application of this account, or is left out.


Required sub-user rights: admin (available only to master users).

Delete user application

post
/user/application/delete

Delete an application. It leaves the side menu immediately.

Returns error code 201, not found in database, when no application of this account carries that identifier. Leaving application_id out returns 201 as well, rather than a validation error.

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

Requires the admin right.

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
application_idintegerRequired

Identifier of the application to delete.

Responses
200

Application deleted

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

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

{
  "application_id": 1
}
{
  "success": true
}

Errors

These errors come in addition to the general error codes:

  • 201 - Not found in the database, when application_id names no application of this account, or is left out.


Required sub-user rights: admin (available only to master users).

Show or hide a user application

post
/user/application/enabled/set

Show or hide an application in the side menu, leaving everything else about it unchanged.

enabled is not treated as missing when it is left out: it falls back to false and the application is hidden. Always send it.

Returns error code 201, not found in database, when no application of this account carries that identifier. Leaving application_id out returns 201 as well.

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

Requires the admin right.

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
application_idintegerRequired

Identifier of the application to show or hide.

enabledbooleanRequired

Whether the application appears in the side menu. Falls back to false when left out, which hides it.

Responses
200

Visibility set

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
post/user/application/enabled/set
POST /v2/user/application/enabled/set HTTP/1.1
Host: api.eu.navixy.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 35

{
  "application_id": 1,
  "enabled": true
}
{
  "success": true
}

Errors

These errors come in addition to the general error codes:

  • 201 - Not found in the database, when application_id names no application of this account, or is left out.

How to authenticate custom applications

An embedded application can use Navixy's own authentication rather than asking users to sign in again, through the Authentication Gateway. The gateway sits between the two, so a user already signed in to Navixy reaches the embedded application already authenticated, handled on the backend.

The gateway gives an application:

  • Automatic user authentication through Navixy sessions.

  • Database access credentials for IoT and user data.

  • Session management and token-based API authorization.

Custom dashboards, analytics tools, and business system integrations are the usual cases. For the implementation details, see Authentication Gateway.

Last updated

Was this helpful?