×

Accessible accounts list

This API is used to retrieve the list of accounts that the currently authorized user has access to.

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_map — API command to retrieve the list of accessible accounts
  • node — node number where the command should be executed
     

Example GET request

https://<server_address>/api/api.php?cmd=get_account_map&node=1
 

Example POST request

Request body (JSON):
{
    "cmd": "get_account_map"
}
Response
{
  "code": 0,
  "data": [
    {"account_id": 1005},
    {"account_id": 1000}
  ]
}
In response to the API request, the following is returned:
  • code — execution result (0 indicates a successful operation)
  • data — list of accounts accessible to the user
  • account_id — unique identifier of the account