Skip to main content

List Users

This API allows you to list all users under your reseller account.

📍 Endpoint

GET {base_url}/api/user/list?page=1&per_page=10

🧾 Headers

KeyValue
AuthorizationYOUR_TOKEN_HERE
Content-Typeapplication/json

📝 Parameters

ParameterTypeRequiredDescription
pageintegerNoPage number for pagination (default is 1)
per_pageintegerNoNumber of users per page (default is 10)
usernamestringNoFilter by username (optional)
namestringNoFilter by name (optional)
add_statusstringNoFilter by Create status of the user. Can get one or this status,normal,online,webservice (optional)
national_idstringNoFilter by national ID (optional)
acl_role_idintegerNoFilter by ACL role ID (optional)
tellstringNoFilter by telephone number (optional)
mobilestringNoFilter by mobile number (optional)
is_resellerstringNoFilter by reseller status (yes or no) (optional)
document_blockstringNoFilter by document block status (yes or no) (optional)
created_fromstringNoFilter by creation date from (format: timestamp UTC) (optional)
created_tostringNoFilter by creation date to (format: timestamp UTC) (optional)
expire_fromstringNoFilter by expiration date from (format: timestamp UTC) (optional)
expire_tostringNoFilter by expiration date to (format: timestamp UTC) (optional)
is_bought_panelstringNoFilter by purchased panel status (1 or 0) (optional)
login_statusintegerNoIndicates whether the user is logged in. Can get one status:0 and mean never login (optional)
sub_resellerintegerNoAccepts either 0 or 1. 0 indicates that the user is a direct sub-reseller and 1 indicates that the user is an indirect sub-reseller (i.e., part of the downline but not directly under the requester). If omitted, all users (both direct and indirect) will be returned (optional)

⚠️ Important: To exclude a filter from the query, do not include it at all in the request. Avoid sending it with an empty string or null value.

✅ Success Response

{
"data": [
{
"status": "active",
"time": 1747570721,
"uname": "user1",
"document_block": "yes",
"special_disc": 0,
"parent": 123654,
"user_id": 123654,
"accounting_id": null,
"is_reseller": "yes",
"name": "name and family",
"national_id": "1587459321",
"certificate_id": "1587459321",
"tell": null,
"mobile": "+989122222222",
"address": "adress",
"company": "test",
"postalcode": 4758896654,
"send_block": "yes",
"email": "",
"add_status": "webservice",
"acl_role_id": 123,
"last_login": 1747573019,
"confirm": "0",
"user_create": "no",
"show_status": "active",
"expire_time": null,
"user_description": null,
"description": null,
"is_bought_panel": "1",
"main_parent": "main_parent_name",
"credit": {
"credit": 0,
"user_id": 123654
},
"acl_role": {
"acl_role_id": 123,
"acl_role_name": "package_name"
}
},
{
"status": "active",
"time": 1747570721,
"uname": "user1",
"document_block": "yes",
"special_disc": 0,
"parent": 123654,
"user_id": 123654,
"accounting_id": null,
"is_reseller": "yes",
"name": "name and family",
"national_id": "1587459321",
"certificate_id": "1587459321",
"tell": null,
"mobile": "+989122222222",
"address": "adress",
"company": "test",
"postalcode": 4758896654,
"send_block": "yes",
"email": "",
"add_status": "webservice",
"acl_role_id": 123,
"last_login": 1747573019,
"confirm": "0",
"user_create": "no",
"show_status": "active",
"expire_time": null,
"user_description": null,
"description": null,
"is_bought_panel": "1",
"main_parent": "main_parent_name",
"credit": {
"credit": 0,
"user_id": 123654
},
"acl_role": {
"acl_role_id": 123,
"acl_role_name": "package_name"
}
}
],
"meta": {
"current_page": 1,
"from": 1,
"last_page": 46,
"path": "https://baseurl/api/user/list",
"per_page": 1,
"to": 1,
"total": 46,
"status": true,
"message": "انجام شد",
"message_code": "200-1"
}
}

❌ Error Response — Invalid or Expired Token (401)

{
"data": null,
"meta": {
"status": false,
"message": "اطلاعات وارد شده صحیح نمی باشد",
"message_parameters": [],
"message_code": "400-1",
"errors": {}
}
}

🧪 Example Request

curl --location '{base_url}/api/user/list?page=1&per_page=10' \
--header 'Content-Type: application/json' \
--header 'Authorization: Your Apikey/Token'