Skip to content

Subuser session

API path: /subuser/session/.

Sub-user session actions to obtain its hash.

create

Creates a new session for the specified sub-user and obtain its hash. Can be used to log in to sub-user's accounts.

required tariff features: multilevel_access – for ALL trackers. required sub-user rights: admin (available only to master users).

parameters

name description type
subuser_id Id of the sub-user belonging to current account. int

examples

curl -X POST 'https://api.navixy.com/v2/subuser/session/create' \
    -H 'Content-Type: application/json' \ 
    -d '{"hash": "22eac1c27af4be7b9d04da2ce1af111b", "subuser_id": 204951}'
https://api.navixy.com/v2/subuser/session/create?hash=a6aa75587e5c59c32d347da438505fc3&subuser_id=204951

response

{
    "success": true,
    "hash" : "22eac1c27af4be7b9d04da2ce1af111b"
}
  • hash - string. Hash of the created sub-user session.

errors

  • 13 – Operation not permitted – if user has insufficient rights.
  • 236 – Feature unavailable due to tariff restrictions - if there is at least one tracker without multilevel_access tariff feature.
  • 201 – Not found in the database – if sub-user with such an id does not exist or does not belong to current master user.

Last update: April 21, 2021