Technical Guides April 14, 2026 Admin

XUI.ONE User & MAG Device API: Manage Resellers and Set-Top Boxes 2026

XUI.ONE User & MAG Device API: Manage Resellers and Set-Top Boxes 2026

XUI.ONE User & MAG Device API: Manage Resellers and Set-Top Boxes 2026

XUI.ONE separates top-level users from hardware-linked subscribers. This gives flexibility for advanced automation: users, MAG boxes, and Enigma receivers can each be managed with dedicated actions.

User API (Admin-Level Accounts)

  • create_user, edit_user, delete_user
  • disable_user, enable_user
  • get_user

MAG Device API

  • create_mag, edit_mag, delete_mag
  • ban_mag, unban_mag
  • disable_mag, enable_mag

Enigma Device API

  • create_enigma, edit_enigma, delete_enigma
  • ban_enigma, unban_enigma
  • disable_enigma, enable_enigma

Reusable Laravel Pattern

public function deviceAction(string $type, string $action, int $id, array $extra = []): array
{
    return $this->call("{$action}_{$type}", array_merge(['id' => $id], $extra));
}

This keeps your integration clean and avoids repeated per-device controller logic.

FAQ

Q: Can I use one helper for MAG and Enigma actions?
A: Yes, build action names dynamically by device type.

Q: Should user actions and device actions be separated?
A: Yes, it keeps permissions and lifecycle logic cleaner.

Related XUI.ONE Guides

Need Device + User Automation with Billing?

Our WHMCS modules help automate IPTV account lifecycle and reduce manual panel operations.

Check XUI Integration Module