Xtream-Masters - Reseller API Documentation
Complete API documentation for Xtream-Masters Reseller Dashboard including all endpoints, parameters, and examples.
Contact to service provider for {server-dns}:{stream-port}/{api-access-code}
Goto Reseller Dashboard > Menu > API Documentation for [api_key]
Read The Documentation Below For [action] & [paramiters]
GET Authentication
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=[action]
All API requests require your API key as a URL parameter.
GET Get Packages
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=packages
Parameters
Parameter |
Description |
None |
No parameters required for this request. |
Example Request
curl "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=packages"
GET Get User Info
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=user_info
Parameters
Parameter |
Description |
None |
No parameters required for this request. |
Example Request
curl "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=user_info"
POST Create Line
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=create_line
Parameters
Parameter |
Type |
Required |
Description |
package |
Integer |
Required |
Package ID for the new line. |
trial |
Integer |
Required |
1 for trial line, 0 for regular line. |
username |
String |
Required* |
Line username. *Required in example; if omitted in request, server may auto-generate. |
password |
String |
Required* |
Line password. *Required in example; if omitted in request, server may auto-generate. |
is_isplock |
Integer |
Required |
Enable ISP lock: 1 = enable, 0 = disable. |
allowed_ips[] |
String/Array |
Optional |
Array of allowed IP addresses (e.g., `allowed_ips[]=1.2.3.4`). Send multiple times for multiple IPs. |
reseller_notes |
String |
Optional |
Reseller comments or notes for this line. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=create_line" \
-d "package=1" \
-d "trial=0" \
-d "username=test_customer" \
-d "password=securepassword123" \
-d "is_isplock=0" \
-d "reseller_notes=Created via API on 2025-03-26" \
-d "allowed_ips[]=192.168.1.100"
POST Edit Line
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=edit_line
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the line to edit. |
username |
String |
Optional |
New username for the line. |
password |
String |
Optional |
New password for the line. |
package |
Integer |
Optional |
New package ID for the line. |
allowed_ips[] |
String/Array |
Optional |
Replace existing IPs. Array of allowed IP addresses (e.g., `allowed_ips[]=1.2.3.4`). Send multiple times for multiple IPs. Send empty value `allowed_ips=` to clear. |
reseller_notes |
String |
Optional |
New reseller notes for the line. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=edit_line" \
-d "id=12345" \
-d "password=newpassword123" \
-d "reseller_notes=Password updated via API"
POST Get Line
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_line
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the line to retrieve. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_line" \
-d "id=12345"
POST Delete Line
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=delete_line
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the line to delete. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=delete_line" \
-d "id=12345"
POST Disable Line
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=disable_line
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the line to disable. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=disable_line" \
-d "id=12345"
POST Enable Line
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=enable_line
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the line to enable. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=enable_line" \
-d "id=12345"
POST Create MAG
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=create_mag
Parameters
Parameter |
Type |
Required |
Description |
mac |
String |
Required |
MAC address (e.g., 00:1A:79:XX:XX:XX). |
package |
Integer |
Required |
Package ID for the new MAG device. |
trial |
Integer |
Required |
1 for trial, 0 for regular. |
is_isplock |
Integer |
Optional |
Enable ISP lock: 1 = enable, 0 = disable (Default: 0). |
reseller_notes |
String |
Optional |
Reseller comments or notes. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=create_mag" \
-d "mac=00:1A:79:AA:BB:CC" \
-d "package=1" \
-d "trial=0" \
-d "reseller_notes=Created via API"
POST Edit Mag
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=edit_mag
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the MAG device to edit. |
mac |
String |
Optional |
New MAC address (e.g., 00:1A:79:XX:XX:XX). |
package |
Integer |
Optional |
New package ID. |
is_isplock |
Integer |
Optional |
Enable ISP lock: 1 = enable, 0 = disable. |
reseller_notes |
String |
Optional |
New reseller notes. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=edit_mag" \
-d "id=51" \
-d "reseller_notes=Updated via API"
POST Get Mag
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_mag
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the MAG device to retrieve. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_mag" \
-d "id=50"
POST Delete Mag
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=delete_mag
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the MAG device to delete. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=delete_mag" \
-d "id=51"
POST Disable Mag
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=disable_mag
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the MAG device to disable. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=disable_mag" \
-d "id=51"
POST Enable Mag
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=enable_mag
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the MAG device to enable. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=enable_mag" \
-d "id=51"
POST Convert MAG to Line
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=convert_mag
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the MAG device to convert into a regular line. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=convert_mag" \
-d "id=51"
POST Create Enigma
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=create_enigma
Parameters
Parameter |
Type |
Required |
Description |
mac |
String |
Required |
MAC address (e.g., 00:1A:79:XX:XX:XX). |
package |
Integer |
Required |
Package ID for the new Enigma device. |
trial |
Integer |
Required |
1 for trial, 0 for regular. |
is_isplock |
Integer |
Optional |
Enable ISP lock: 1 = enable, 0 = disable (Default: 0). |
reseller_notes |
String |
Optional |
Reseller comments or notes. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=create_enigma" \
-d "mac=00:1A:79:11:22:33" \
-d "package=1" \
-d "trial=0" \
-d "reseller_notes=Created via API"
POST Edit Enigma
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=edit_enigma
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the Enigma device to edit. |
mac |
String |
Optional |
New MAC address (e.g., 00:1A:79:XX:XX:XX). |
package |
Integer |
Optional |
New package ID. |
is_isplock |
Integer |
Optional |
Enable ISP lock: 1 = enable, 0 = disable. |
reseller_notes |
String |
Optional |
New reseller notes. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=edit_enigma" \
-d "id=31" \
-d "reseller_notes=Updated Enigma via API"
POST Get Enigma
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_enigma
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the Enigma device to retrieve. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_enigma" \
-d "id=30"
POST Delete Enigma
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=delete_enigma
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the Enigma device to delete. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=delete_enigma" \
-d "id=31"
POST Disable Enigma
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=disable_enigma
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the Enigma device to disable. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=disable_enigma" \
-d "id=31"
POST Enable Enigma
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=enable_enigma
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the Enigma device to enable. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=enable_enigma" \
-d "id=31"
POST Convert Enigma to Line
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=convert_enigma
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the Enigma device to convert into a regular line. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=convert_enigma" \
-d "id=31"
POST Create User (Sub-Reseller)
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=create_user
Parameters
Parameter |
Type |
Required |
Description |
username |
String |
Required |
Login username for the new user. |
password |
String |
Required |
Login password for the new user. |
email |
String |
Required |
Email address for the new user. |
member_group_id |
Integer |
Required |
Group ID the user belongs to (e.g., Sub-reseller group). |
credits |
Integer |
Required |
Initial credit balance for the user. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=create_user" \
-d "username=newsubreseller" \
-d "password=subresellerpass" \
-d "member_group_id=3" \
-d "credits=0" \
-d "email=usermail@example.com"
POST Edit User
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=edit_user
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the user to edit. |
password |
String |
Optional |
New login password for the user. |
email |
String |
Optional |
New email address for the user. |
member_group_id |
Integer |
Optional |
New Group ID for the user. |
notes |
String |
Optional |
Update the notes associated with the user. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=edit_user" \
-d "id=679" \
-d "email=newemail@example.com" \
-d "notes=Updated email"
POST Get User
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_user
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the user to retrieve. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_user" \
-d "id=678"
POST Delete User
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=delete_user
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the user to delete. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=delete_user" \
-d "id=679"
POST Disable User
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=disable_user
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the user to disable. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=disable_user" \
-d "id=679"
POST Enable User
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=enable_user
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
The ID of the user to enable. |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=enable_user" \
-d "id=679"
POST Adjust Credits
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=adjust_credits
Parameters
Parameter |
Type |
Required |
Description |
id |
Integer |
Required |
User ID to adjust credits for. |
credits |
Integer |
Required |
Amount of credits to add (positive integer) or remove (negative integer). |
note |
String |
Optional |
Reason for the credit adjustment (logged). |
Example Request (Adding Credits)
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=adjust_credits" \
-d "id=679" \
-d "credits=20" \
-d "note=Initial credit allocation"
Example Request (Removing Credits)
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=adjust_credits" \
-d "id=679" \
-d "credits=-5" \
-d "note=Refund"
POST Get Lines
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_lines
Parameters
Parameter |
Type |
Required |
Description |
draw |
Integer |
Optional |
Draw counter for DataTables. |
start |
Integer |
Optional |
Pagination start index (default: 0). |
length |
Integer |
Optional |
Number of items per page (default: 10 or server default). |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_lines" \
-d "draw=1" \
-d "start=0" \
-d "length=10"
POST Get Mags
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_mags
Parameters
Parameter |
Type |
Required |
Description |
draw |
Integer |
Optional |
Draw counter for DataTables. |
start |
Integer |
Optional |
Pagination start index (default: 0). |
length |
Integer |
Optional |
Number of items per page (default: 10 or server default). |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_mags" \
-d "draw=1" \
-d "start=0" \
-d "length=10"
POST Get Enigmas
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_enigmas
Parameters
Parameter |
Type |
Required |
Description |
draw |
Integer |
Optional |
Draw counter for DataTables. |
start |
Integer |
Optional |
Pagination start index (default: 0). |
length |
Integer |
Optional |
Number of items per page (default: 10 or server default). |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_enigmas" \
-d "draw=1" \
-d "start=0" \
-d "length=10"
POST Get Users
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_users
Parameters
Parameter |
Type |
Required |
Description |
draw |
Integer |
Optional |
Draw counter for DataTables. |
start |
Integer |
Optional |
Pagination start index (default: 0). |
length |
Integer |
Optional |
Number of items per page (default: 10 or server default). |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=get_users" \
-d "draw=1" \
-d "start=0" \
-d "length=10"
POST Activity Logs
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=activity_logs
Parameters
Parameter |
Type |
Required |
Description |
draw |
Integer |
Optional |
Draw counter for DataTables. |
start |
Integer |
Optional |
Pagination start index (default: 0). |
length |
Integer |
Optional |
Number of items per page (default: 25 or server default). |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=activity_logs" \
-d "draw=1" \
-d "start=0" \
-d "length=25"
POST Live Connections
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=live_connections
Parameters
Parameter |
Type |
Required |
Description |
draw |
Integer |
Optional |
Draw counter for DataTables. |
start |
Integer |
Optional |
Pagination start index (default: 0). |
length |
Integer |
Optional |
Number of items per page (default: 10 or server default). |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=live_connections" \
-d "draw=1" \
-d "start=0" \
-d "length=10"
POST User Logs
http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=user_logs
Parameters
Parameter |
Type |
Required |
Description |
draw |
Integer |
Optional |
Draw counter for DataTables. |
start |
Integer |
Optional |
Pagination start index (default: 0). |
length |
Integer |
Optional |
Number of items per page (default: 25 or server default). |
Example Request
curl -X POST "http://{server-dns}:{stream-port}/{api-access-code}/reseller/index.php?api_key=[api_key]&action=user_logs" \
-d "draw=1" \
-d "start=0" \
-d "length=25"