User list of own account
This API is used to retrieve a list of all users registered under your account.
How to get data
Request address
To get the data, use the address: https://<server_address>/api/api.php?
Request method
GET or POST
Request parameters
-
cmd=get_account_user_list — API command to get the list of account users
-
node — node number where the command should be executed
Example GET request
https://<server_address>/api/api.php?cmd=get_account_user_list&node=1
|
Example POST request
Request body (JSON):
{
"cmd": "get_account_user_list"
}
|
Response
{
"code": 0,
"data": [
{
"id": 19,
"roleid": 1,
"info": "",
"msisdn": "123123",
"email": "testTOTP@testTOTP.com",
"name": "dasd",
"account_id": 1000,
"lang": "en",
"parent_id": 2
}
]
}
|
In response to the API request, the following is returned:
-
code — result code (0 = successful operation)
-
data — array of account users:
-
id — user identifier
-
roleid — user role (0 = Admin, 1 = User, 2 = Logistic, etc.)
-
info — additional information
-
msisdn — phone number
-
email — user’s email address
-
name — user’s name
-
account_id — account ID the user belongs to
-
lang — user interface language
-
parent_id — parent user ID (if any)