XProxy Official
  1. Device Management
XProxy Official
  • API document for XProxy service
  • Proxy Management
    • Get the list of devices & proxies information
      GET
    • Get status of a specific proxy
      GET
    • Get status of a specific position
      GET
    • Reboot dongle with specific proxy
      GET
    • Reboot dongle with specific position
      GET
  • Device Management
    • Change IMEI for multiple dongles
      POST
    • Add or change device note
      POST
    • Change MAC address for dongles
      POST
    • Change APN for dongles
      POST
    • Change device label
      POST
    • Connect dongle to network
      POST
    • Enable/disable WiFi for multiple dongles
      POST
    • Disconnect dongle from network
      POST
    • Reboot a specific dongle
      POST
    • Reset bus dongle
      POST
    • Get dongle information including phone number
      POST
    • Set MTU value for a dongle
      POST
  • Rotation (Change IP)
    • Manual rotation :: Rotate IP for a specific proxy or SOCKS port
      GET
    • Manual rotation :: Rotate IP for a specific position of modem in list
      GET
    • Auto rotation :: Add a rotation schedule job
      POST
    • Auto rotation :: Retrieve scheduled rotation jobs
      POST
  • Selling Platform
    • Get list of selling proxies
      GET
    • Generate selling proxies
      POST
    • Editing for single selling proxy port
      POST
    • Delete selling proxy by ID
      POST
  • SMS & USSD Utitlies
    • SMS
      • Read SMS messages
      • Send SMS message
      • Delete SMS messages
    • USSD
      • Send USSD command
      • Read USSD response
  • System Management
    • Restart XProxy Panel
    • Reboot XProxy System
  1. Device Management

Change MAC address for dongles

POST
{{BASE_URL}}/v2/change_mac_address
Device
Updates the MAC address for one or more dongles.
This operation is supported for XProxy XH20/XH22 dongles model only.
The dongle will be rebooted automatically after the change.

Request

Body Params application/json
positions
array[integer]
required
Array of position indexes to change MAC address for
Example:
[1,2,3]
mac
object 
required
mode
integer 
required
MAC change mode:
0 = Fixed MAC address (set to exact value in mac field)
1 = Randomize based on MAC address (use mac field as base for randomization)
Example:
1
mac
string 
required
MAC address to set or use as base for randomization.
Format should be XX:XX:XX:XX:XX:XX or XXXXXXXXXXXX
Example:
00:11:22:33:44:55
Example
{
    "positions": [
        1,
        2,
        3
    ],
    "mac": {
        "mode": 1,
        "mac": "00:11:22:33:44:55"
    }
}

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 --location -g --request POST 'http://localhost/v2/change_mac_address' \
--header 'Content-Type: application/json' \
--data-raw '{
    "positions": [
        1,
        2,
        3
    ],
    "mac": {
        "mode": 1,
        "mac": "00:11:22:33:44:55"
    }
}'

Responses

🟢200OK
application/json
Successful operation
Body
status
boolean 
optional
Example:
true
msg
string 
optional
Example:
Sent change MAC successfully! Please wait up to 15s to effect!
Example
{
    "status": true,
    "msg": "Sent change MAC successfully! Please wait up to 15s to effect!"
}
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
Modified at 2025-04-23 02:51:40
Previous
Add or change device note
Next
Change APN for dongles
Built with