Appearance color
This choice is saved in your browser and stays the same when Light/Dark mode changes.
Rainbow speed50
Approval Rule
PENDINGToken exists, but external requests are rejected.
ACCEPTToken is active and may be used with the master API key.
REJECTToken is disabled and cannot be used.
How it works
  1. Reseller/Admin generates a token request.
  2. Owner reviews the request and chooses ACCEPT, REJECT, or DELETE.
  3. Only ACCEPTED tokens can call the external generation endpoint.
  4. Every API request must send both api_key and token.
  5. The external website needs no SQL table; it only sends the request and displays the API response.
Security rules

The server checks:

  • Master API key matches exactly.
  • Token exists and status is ACCEPT.
  • Token owner still exists, is active, and is reseller/admin.
  • Invalid, pending, rejected, or deleted tokens cannot generate keys.
  • External generation never reduces account balance.
PHP Request Example
<?php
$endpoint = 'https://test.ugi.my.id/panel/external-api/generate';
$apiKey = 'PASTE_MASTER_API_KEY_HERE';
$token = 'PASTE_ACCEPTED_TOKEN_HERE';

$payload = [
    'api_key' => $apiKey,
    'token' => $token,
    'game' => 'MLBB',
    'duration' => 1,
    'max_devices' => 1,
    'bulk' => 1,
];

$ch = curl_init($endpoint);
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_POSTFIELDS => json_encode($payload),
    CURLOPT_HTTPHEADER => ['Content-Type: application/json', 'Accept: application/json'],
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
]);
$response = curl_exec($ch);
$httpCode = (int) curl_getinfo($ch, CURLINFO_HTTP_CODE);
$curlError = curl_error($ch);
curl_close($ch);

if ($curlError !== '') {
    die('Request error: ' . $curlError);
}

$result = json_decode($response, true);
if ($httpCode >= 400 || empty($result['success'])) {
    die($result['message'] ?? 'API request failed.');
}

foreach (($result['keys'] ?? []) as $generatedKey) {
    echo htmlspecialchars($generatedKey, ENT_QUOTES, 'UTF-8') . "<br>";
}
?>
  • Not sure how to set up the configuration on your website? Download the native PHP files below; there is no need to build it from scratch—simply upload these PHP files and open the page on your website.
  • Available Parameters
    ParameterRequiredExampleDescription
    api_keyYesUGI_...Master API key shown above.
    tokenYesUGI_TK_...Token generated by reseller/admin and ACCEPTED by owner.
    gameYesALLManual game list used by the external API generator.
    durationYes1Manual duration in days: 1, 3, 7, 15, 30, 60, 90, 180, 365.
    max_devicesYes1Allowed device count, 1–100.
    bulkNo1Number of keys to generate, 1–100.
    Global Music

    Music player A–Z

    Temukan lagu dan artis dari berbagai negara, pilih huruf A–Z, lalu putar preview langsung di halaman guest.

    Pilih huruf A–Z atau cari musik.
    Preview audio mengikuti hak akses dan ketersediaan layanan musik di masing-masing negara.