API For User-Pass

List sub-users

get

Returns a paginated list of sub-users for the authenticated account, with support for keyword search by user_name, as well as sorting and ordering.

Authorizations
api-keystringRequired
Query parameters
limitintegerOptional

Maximum number of items to return per page. Default: 30

pageintegerOptional

Requested page number (1-based). Default: 1

sort_bystringOptional

Field to sort by: 'id', 'user_name', 'status', 'created_at', 'use_key', 'usage_cap', 'data_used', 'ip_usage_cap', 'ip_used'. Default: id

order_bystringOptional

Sort order: desc or asc. Default: desc

keywordstringOptional

Keyword to search within the user_name field.

Responses
chevron-right
200

Successful response

application/json

Sub-users list response payload.

successbooleanOptional

Indicates whether the request was successful.

messagestringOptional

Human-readable response message.

get
/client/v1/user-passes/get-list

Create sub-user

post

Creates a new sub-user (User-Pass credentials) and optionally applies traffic and IP usage limits.

Authorizations
api-keystringRequired
Body
user_namestringRequired

Sub-user username.

Example: user_1
use_keystringRequired

Sub-user password.

Example: pass_123
statusintegerRequired

Sub-user status. 1: active, 2: disable

Example: 1
notestringOptional

Optional note for internal tracking.

Example: This is Sub User 1
usage_capintegerOptional

Traffic usage cap in bytes.

Example: 1000000000
ip_usage_capintegerOptional

IP usage cap (-1 for unlimited).

Example: -1
Responses
chevron-right
200

Successful response

application/json

Sub-user creation response payload.

successbooleanOptional

Indicates whether the request was successful.

messagestringOptional

Human-readable response message.

post
/client/v1/user-passes/create

Update sub-user

put

Updates an existing sub-user by ID, including password, status, note, and optional traffic/IP usage caps.

Authorizations
api-keystringRequired
Body
idintegerRequired

Sub-user ID to update.

Example: 88
user_namestringOptional

Sub-user username.

Example: user_1
use_keystringRequired

Sub-user password.

Example: pass_123
statusintegerRequired

Sub-user status. 1: active, 2: disable

Example: 1
notestringOptional

Optional note for internal tracking.

Example: This is Sub User 1
usage_capintegerOptional

Traffic usage cap in bytes.

Example: 1000000000
ip_usage_capintegerOptional

IP usage cap (-1 for unlimited).

Example: -1
Responses
chevron-right
200

Successful response

application/json

Sub-user update response payload.

successbooleanOptional

Indicates whether the request was successful.

messagestringOptional

Human-readable response message.

put
/client/v1/user-passes/update

Delete sub-user

delete

Deletes a sub-user by ID.

Authorizations
api-keystringRequired
Body
idintegerRequired

Sub-user ID to delete.

Example: 88
Responses
chevron-right
200

Successful response

application/json

Sub-user deletion response payload.

successbooleanOptional

Indicates whether the request was successful.

messagestringOptional

Human-readable response message.

delete
/client/v1/user-passes/delete

Last updated

Was this helpful?