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 APN for dongles

POST
{{BASE_URL}}/v2/change_apn
Device
Updates the APN configuration for one or more dongles.
This operation is supported for XProxy XH20/XH22 dongles model only.

Request

Body Params application/json
positions
array[integer]
required
Array of position indexes to change APN for
Example:
[1,2,3]
apn
object 
required
auto_apn
string 
required
APN mode setting:
1 = AUTO (automatically detect and set APN)
0 = MANUAL (use provided APN settings)
Example:
0
apn_name
string 
optional
APN name (required when auto_apn=0)
Example:
internet
ip_type
string 
optional
IP type (required when auto_apn=0):
0 = IPv4/IPv6 dual stack
1 = IPv4 only
2 = IPv6 only
Example:
0
auth_type
string 
optional
Authentication type (required when auto_apn=0):
NONE = No authentication
PAP = PAP authentication
CHAP = CHAP authentication
Example:
NONE
auth_user
string 
optional
Authentication username (required if auth_type is not NONE)
Example:
user
auth_pass
string 
optional
Authentication password (required if auth_type is not NONE)
Example:
password
Example
{
    "positions": [
        1,
        2,
        3
    ],
    "apn": {
        "auto_apn": "0",
        "apn_name": "internet",
        "ip_type": "0",
        "auth_type": "NONE",
        "auth_user": "user",
        "auth_pass": "password"
    }
}

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_apn' \
--header 'Content-Type: application/json' \
--data-raw '{
    "positions": [
        1,
        2,
        3
    ],
    "apn": {
        "auto_apn": "0",
        "apn_name": "internet",
        "ip_type": "0",
        "auth_type": "NONE",
        "auth_user": "user",
        "auth_pass": "password"
    }
}'

Responses

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