- API document for XProxy service
- Proxy Management
- Device Management
- Change IMEI for multiple donglesPOST
- Add or change device notePOST
- Change MAC address for donglesPOST
- Change APN for donglesPOST
- Change device labelPOST
- Connect dongle to networkPOST
- Enable/disable WiFi for multiple donglesPOST
- Disconnect dongle from networkPOST
- Reboot a specific donglePOST
- Reset bus donglePOST
- Get dongle information including phone numberPOST
- Set MTU value for a donglePOST
- Rotation (Change IP)
- Selling Platform
- SMS & USSD Utitlies
- System Management
Generate selling proxies
POST
{{BASE_URL}}/selling/generate
Request
Body Params application/json
genMethod
enum<integer>
optional
Allowed values:
12
Default:
1
selected_positions
array[integer]
required
>= 1 items
sharedEnabled
boolean
required
Default:
true
numberOfPorts
integer
required
numberOfPorts
selling port per 1 position. For proxy group, system will create numberOfPorts
selling port per group of selected_positions
Default:
1
genPortStart
integer
required
Default:
20001
genPort
enum<integer>
optional
Allowed values:
12
Default:
1
portType
enum<integer>
optional
Allowed values:
012
Default:
0
ipType
enum<integer>
optional
Allowed values:
1234
Default:
1
expiredDate
integer
required
isAutoGenAuthentication
boolean
optional
userAuthenticationEntry
. Enabled it then system will auto-generate new authentication credentialDefault:
false
isAutoGenDifferenceEachPort
boolean
optional
isAutoGenAuthentication=true
Default:
true
ipAuthenticationEntry
string
optional
Example:
125.13.200.14,125.13.200.15
userAuthenticationEntry
string
optional
isAutoGenAuthentication
set to falseExample:
john:mysecret,jack:mypassword
forceServerResolveDns
boolean
optional
whitelistLimitAccessEntry
and blacklistLimitAccessEntry
Default:
false
allowApiChangeRotation
boolean
optional
Default:
false
minIntervalRotation
integer
optional
allowApiChangeRotation
. Minimum allowed for customer change scheduling rotation interval via API in secondsDefault:
0
intervalRotation
integer
optional
Default:
0
allowApiRotate
boolean
optional
Default:
false
minSecondRotate
integer
optional
allowApiRotate
. Minimum seconds between API call to manual rotation executed by customers.Default:
0
whitelistLimitAccessEntry
string
optional
Example:
126.12.15.200,126.12.15.201
blacklistLimitAccessEntry
string
optional
bwLimitEnabled
enum<integer>
optional
Allowed values:
10
Default:
0
bwLimitRate
integer
optional
customDNS
string
optional
Example:
8.8.8.8 1.1.1.1
maxConnection
integer
optional
Default:
100
maxConnectionPeriod
integer
optional
Default:
60
counterUploadLimit
enum<integer>
optional
Allowed values:
01
counterUploadLimitBy
enum<integer>
optional
Allowed values:
1234
counterUploadQuotaInMB
integer
optional
counterDownloadLimit
enum<integer>
optional
Allowed values:
01
counterDownloadLimitBy
enum<integer>
optional
Allowed values:
1234
counterDownloadQuotaInMB
integer
optional
counterAllLimit
enum<integer>
optional
Allowed values:
01
counterAllLimitBy
enum<integer>
optional
Allowed values:
1234
counterAllQuotaInMB
integer
optional
tcpOS
string
optional
Default:
linux
memo
string
my note
Example:
my note
Examples
{
"genMethod": 1,
"selected_positions": [
1
],
"numberOfPorts": 1,
"authMethod": 0,
"sharedEnabled": true,
"ipAuthenticationEntry": "",
"userAuthenticationEntry": "NTD89KDC:NTD89KDC",
"intervalRotation": 0,
"minIntervalRotation": 30,
"allowApiChangeRotation": true,
"minSecondRotate": 30,
"allowApiRotate": true,
"portType": 0,
"ipType": 1,
"genPort": 1,
"genPortStart": 20001,
"expiredDate": 1744362700675,
"whitelistLimitAccessEntry": "",
"blacklistLimitAccessEntry": "",
"counterUploadLimit": 0,
"counterUploadLimitBy": 1,
"counterUploadQuotaInMB": 100,
"counterDownloadLimit": 0,
"counterDownloadLimitBy": 1,
"counterDownloadQuotaInMB": 100,
"counterAllLimit": 0,
"counterAllLimitBy": 1,
"counterAllQuotaInMB": 100,
"bwLimitEnabled": 0,
"bwLimitRate": 0,
"tcpOS": "win1",
"customDNS": "",
"maxConnection": 200,
"maxConnectionPeriod": 60,
"memo": "Tom - 1 month",
"forceServerResolveDns": false,
"isAutoGenAuthentication": true,
"isAutoGenDifferenceEachPort": false
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location -g --request POST 'http://localhost/selling/generate' \
--header 'Content-Type: application/json' \
--data-raw '{
"genMethod": 1,
"selected_positions": [
1
],
"numberOfPorts": 1,
"authMethod": 0,
"sharedEnabled": true,
"ipAuthenticationEntry": "",
"userAuthenticationEntry": "NTD89KDC:NTD89KDC",
"intervalRotation": 0,
"minIntervalRotation": 30,
"allowApiChangeRotation": true,
"minSecondRotate": 30,
"allowApiRotate": true,
"portType": 0,
"ipType": 1,
"genPort": 1,
"genPortStart": 20001,
"expiredDate": 1744362700675,
"whitelistLimitAccessEntry": "",
"blacklistLimitAccessEntry": "",
"counterUploadLimit": 0,
"counterUploadLimitBy": 1,
"counterUploadQuotaInMB": 100,
"counterDownloadLimit": 0,
"counterDownloadLimitBy": 1,
"counterDownloadQuotaInMB": 100,
"counterAllLimit": 0,
"counterAllLimitBy": 1,
"counterAllQuotaInMB": 100,
"bwLimitEnabled": 0,
"bwLimitRate": 0,
"tcpOS": "win1",
"customDNS": "",
"maxConnection": 200,
"maxConnectionPeriod": 60,
"memo": "Tom - 1 month",
"forceServerResolveDns": false,
"isAutoGenAuthentication": true,
"isAutoGenDifferenceEachPort": false
}'
Responses
🟢200OK
application/json
Body
status
boolean
optional
data
array[object (SharedProxy) {36}]
optional
id
integer
optional
shared_port
integer
optional
gen_method
enum<number>
optional
Allowed values:
12
position
integer
optional
0
if gen_method=2
group_positions
array[integer]
optional
gen_method=1
ip_type
enum<string>
optional
Allowed values:
1234
port_type
enum<string>
optional
Allowed values:
012
auth_ip_list
string
optional
auth_user_list
string
optional
web_whitelist
string
optional
web_blacklist
string
optional
expired_at_unix
integer
optional
enabled
boolean
optional
memo
string
optional
custom_dns
string
optional
bw_limit_enabled
boolean
optional
bw_limit_rate
integer
optional
counter_dl_limit
enum<string>
optional
Allowed values:
unlimitedlimited
counter_dl_limit_by
enum<string>
optional
Allowed values:
DAILYWEEKLYMONTHLYEND_QUOTA
counter_dl_quota
integer
optional
counter_ul_limit
enum<string>
optional
Allowed values:
unlimitedlimited
counter_ul_limit_by
enum<string>
optional
Allowed values:
DAILYWEEKLYMONTHLYEND_QUOTA
counter_ul_quota
integer
optional
counter_all_limit
enum<string>
optional
Allowed values:
unlimitedlimited
counter_all_limit_by
enum<string>
optional
Allowed values:
DAILYWEEKLYMONTHLYEND_QUOTA
counter_all_quota
integer
optional
max_connection
integer
optional
max_connection_period
integer
optional
Default:
60
tcp_os
string
optional
force_server_resolve_dns
boolean
optional
interval_rotation
integer
optional
min_interval_rotation
integer
optional
allow_api_rotate
boolean
optional
min_second_rotate
integer
optional
allow_api_change_rotation
boolean
optional
last_rotation
integer
optional
Example
{
"status": true,
"data": [
{
"id": 0,
"shared_port": 0,
"gen_method": 1,
"position": 0,
"group_positions": [
0
],
"ip_type": "1",
"port_type": "0",
"auth_ip_list": "string",
"auth_user_list": "string",
"web_whitelist": "string",
"web_blacklist": "string",
"expired_at_unix": 0,
"enabled": true,
"memo": "string",
"custom_dns": "string",
"bw_limit_enabled": true,
"bw_limit_rate": 0,
"counter_dl_limit": "unlimited",
"counter_dl_limit_by": "DAILY",
"counter_dl_quota": 0,
"counter_ul_limit": "unlimited",
"counter_ul_limit_by": "DAILY",
"counter_ul_quota": 0,
"counter_all_limit": "unlimited",
"counter_all_limit_by": "DAILY",
"counter_all_quota": 0,
"max_connection": 0,
"max_connection_period": 60,
"tcp_os": "string",
"force_server_resolve_dns": true,
"interval_rotation": 0,
"min_interval_rotation": 0,
"allow_api_rotate": true,
"min_second_rotate": 0,
"allow_api_change_rotation": true,
"last_rotation": 0
}
]
}
Modified at 2025-03-12 09:26:59