Technical Guides April 14, 2026 Admin

XUI.ONE Admin API Complete Guide: Authentication, Endpoints & Setup 2026

XUI.ONE Admin API Complete Guide: Authentication, Endpoints & Setup 2026

XUI.ONE Admin API Complete Guide: Authentication, Endpoints & Setup 2026

If you are automating IPTV operations, the XUI.ONE Admin API is your core integration layer. It lets you manage users, lines, devices, content, and security without manual panel work. This guide explains setup, endpoint format, and Laravel-ready usage.

What Is the XUI.ONE Admin API?

The Admin API is a REST-style interface that uses URL query parameters for authentication and actions. It is commonly used for WHMCS module automation, reseller lifecycle handling, and daily operations scripting.

How to Enable It

  1. Go to your XUI.ONE admin panel and open User Groups.
  2. Add an Admin API Access Code to your admin group.
  3. Open your admin profile and generate/copy your API Key.
  4. Store both values securely (never hardcode in source files).

Endpoint Format

https://your-domain:9000/{accesscode}/?api_key={API_KEY}&action={ACTION}

Example:

https://panel.example.com:9000/rnVKrSLe/?api_key=ABC123&action=get_packages

Laravel First Call Example

use Illuminate\Support\Facades\Http;

$url = config('xui.base_url') . '/' . config('xui.access_code') . '/';
$response = Http::timeout(15)->get($url, [
    'api_key' => config('xui.api_key'),
    'action'  => 'get_packages',
]);

$data = $response->json();

Pro Tip: Discover Real Parameters

Use browser developer tools while creating/editing objects in panel UI. Inspect the network requests and mirror the same field names in API payloads for actions like stream creation and complex edits.

Best Practices

  • Use HTTPS endpoint in production.
  • Add retry and timeout handling for network failures.
  • Log API action + service identifier for debugging.
  • Build a reusable service class instead of inline requests.

After Admin API setup, your next step is line lifecycle automation with create_line, disable_line, and delete_line.

FAQ

Q: What do I need first to call XUI.ONE API?
A: Panel base URL, access code, and admin API key.

Q: Is GET enough for most actions?
A: Yes for many actions, but always follow panel-specific parameter requirements.

Related XUI.ONE Guides

Need WHMCS + XUI Automation Ready to Use?

Use our prebuilt XUI WHMCS modules to automate account provisioning, renewals, and lifecycle actions without writing custom code.

View XUI Reseller Panel Module