Developer
Gold Panel API
Version 1.81 — Last updated August 2024
This API is for authorized resellers only. Your unique API key is tied to your reseller account. Do not share it publicly.
1. Authentication
All requests include your API key as a query parameter. Your key is available in your reseller dashboard.
Base URL:
https://8k.cms-only.ru/api/api.phpAll responses are JSON.
2. Add New Device
Create a new MAG or M3U device under your reseller account.
Endpoint:
action=new&type=mag&user=[MAC]&sub=[1/3/6/12]&pack=[ID]&country=[CODE]¬es=[TEXT]&api_key=[KEY]| Parameter | Type | Description |
|---|---|---|
action | string | Always new |
type | string | mag for MAG device, m3u for M3U line |
user | string | MAC address (MAG) or leave blank (M3U) |
sub | integer | Subscription length: 1, 3, 6, or 12 months |
pack | integer | Package/bouquet ID |
country | string | 2-letter country code or ALL |
notes | string | Optional notes for this device |
api_key | string | Your reseller API key |
Example response:
{
"status": "success",
"user_id": 12345,
"url": "http://your-server/get.php?username=user&password=pass&type=m3u_plus",
"notes": "",
"country": "US",
"message": "Device created successfully"
}3. Renew Subscription
Extend an existing M3U or MAG subscription.
M3U endpoint:
action=renew&type=m3u&username=[USER]&password=[PASS]&sub=[1/3/6/12]&api_key=[KEY]MAG endpoint:
action=renew&type=mag&mac=[MAC]&sub=[1/3/6/12]&api_key=[KEY]| Parameter | Type | Description |
|---|---|---|
action | string | Always renew |
type | string | m3u or mag |
username / password | string | M3U credentials (M3U type only) |
mac | string | Device MAC address (MAG type only) |
sub | integer | New subscription length: 1, 3, 6, or 12 months |
api_key | string | Your reseller API key |
4. List Packages
Retrieve all available channel packages (bouquets) for your reseller account.
action=bouquet&api_key=[KEY]Returns an array of available channel packages (bouquets). Example response:
[
{ "id": 1, "name": "SMALL - ARABIC" },
{ "id": 2, "name": "Canada without adult" },
{ "id": 3, "name": "Full Package" }
]5. Reseller Info
Retrieve your reseller account details, including remaining credits.
action=reseller&api_key=[KEY]Example response:
{
"username": "reseller123",
"credits": 42,
"enabled": true
}6. Device Info
Fetch the current status and details of an existing device.
M3U endpoint:
action=device_info&username=[USER]&password=[PASS]&api_key=[KEY]MAG endpoint:
action=device_info&mac=[MAC]&api_key=[KEY]Example response:
{
"status": "active",
"expiry": "2025-12-31",
"country": "US",
"notes": "Customer note",
"url": "http://your-server/",
"enabled": true
}7. Enable / Disable Device
Toggle a device on or off by its user ID.
action=device_status&status=[enable/disable]&id=[USER_ID]&api_key=[KEY]| Parameter | Type | Description |
|---|---|---|
action | string | Always device_status |
status | string | enable or disable |
id | integer | The user_id from the Add Device response |
api_key | string | Your reseller API key |