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.php

All 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]&notes=[TEXT]&api_key=[KEY]
ParameterTypeDescription
actionstringAlways new
typestringmag for MAG device, m3u for M3U line
userstringMAC address (MAG) or leave blank (M3U)
subintegerSubscription length: 1, 3, 6, or 12 months
packintegerPackage/bouquet ID
countrystring2-letter country code or ALL
notesstringOptional notes for this device
api_keystringYour 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]
ParameterTypeDescription
actionstringAlways renew
typestringm3u or mag
username / passwordstringM3U credentials (M3U type only)
macstringDevice MAC address (MAG type only)
subintegerNew subscription length: 1, 3, 6, or 12 months
api_keystringYour 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]
ParameterTypeDescription
actionstringAlways device_status
statusstringenable or disable
idintegerThe user_id from the Add Device response
api_keystringYour reseller API key