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

Sub-user session

Open a session as one of your sub-users, without knowing their password.

This operation opens a session as one of the master account's sub-users and returns its hash. It is how a master user acts on a sub-user's behalf, for support or for an integration that needs a sub-user's restricted view, without knowing their password.

The hash that comes back is used exactly like one from user/auth, and carries that sub-user's rights and scoping.

API actions

API base path: /subuser/session.

Every operation on this page needs the multilevel_access tariff feature on all trackers, and the admin right, which is available only to master users. Failing either returns error 13 for the right and error 236 for the feature, so those two are not repeated per operation below.


Create sub-user session

post
/subuser/session/create

Open a session as one of your sub-users, and return its hash. This is how a master user works on a sub-user's behalf without knowing their password.

The returned hash is used exactly like one from user/auth, and carries that sub-user's rights and scoping.

Master users only, and the account needs the multilevel_access plan feature on all trackers. A sub-user calling this gets error 13, and an account without the feature gets error 236.

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
subuser_idinteger · min: 1Required

ID of a sub-user belonging to the current account.

Responses
200

The new session

application/json
successbooleanRead-onlyOptional

true if request finished successfully.

Example: true
hashstringOptional

Session hash for the sub-user, to send in the Authorization header.

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

{
  "subuser_id": 1
}
{
  "success": true,
  "hash": "text"
}

Errors

These errors come in addition to the general error codes:

  • 201 - Not found in the database.

Last updated

Was this helpful?