Welcome to UAGTools!
Developer

API Documentation

Dhru Fusion compatible REST API. Integrate our services into your panel.

Authentication

All API requests require authentication via username and apiaccesskey sent as POST parameters. Generate your API key from the Dashboard.

Base URL

http://localhost/api/

Method

POST (application/x-www-form-urlencoded)

Required Parameters (all requests)

ParameterTypeDescription
username string Your account username required
apiaccesskey string Your API access key required
action string The API action to perform required
POST action=accountinfo Get account balance & info

Returns your account information including username, email, credit balance, and role.

Example Request (cURL)

curl -X POST http://localhost/api/ \ -d "username=your_username" \ -d "apiaccesskey=your_api_key" \ -d "action=accountinfo"

Success Response

{ "SUCCESS": { "UserName": "your_username", "Email": "user@example.com", "Credit": "150.00", "Role": "reseller" } }
POST action=imeiservicelist List available IMEI services

Returns all available services with ID, name, group, credit cost, and delivery time. Prices shown are based on your account role (reseller vs user pricing).

Example Request

curl -X POST http://localhost/api/ \ -d "username=your_username" \ -d "apiaccesskey=your_api_key" \ -d "action=imeiservicelist"

Success Response

{ "SUCCESS": { "Service": [ { "ID": "1", "Name": "iCloud Bypass - WiFi", "Group": "ICLOUD", "Credit": "10.00", "Time": "Instant", "Enabled": "1" }, // ... more services ] } }
POST action=placeimeiorder Place a new IMEI order

Submit an IMEI for processing. Credits will be deducted from your balance.

Additional Parameters

ParameterTypeDescription
ID integer Service ID from imeiservicelist required
IMEI string 15-digit IMEI number required
SN string Serial number optional

Example Request

curl -X POST http://localhost/api/ \ -d "username=your_username" \ -d "apiaccesskey=your_api_key" \ -d "action=placeimeiorder" \ -d "ID=1" \ -d "IMEI=123456789012345"

Success Response

{ "SUCCESS": { "ID": "42", "IMEI": "123456789012345", "Credit": "10.00", "Message": "Order placed successfully." } }
POST action=getimeiorder Get order status & result

Check the status and result of a previously placed order.

Additional Parameters

ParameterTypeDescription
ID integer Order ID returned from placeimeiorder required

Example Request

curl -X POST http://localhost/api/ \ -d "username=your_username" \ -d "apiaccesskey=your_api_key" \ -d "action=getimeiorder" \ -d "ID=42"

Success Response

{ "SUCCESS": { "ID": "42", "ServiceName": "iCloud Bypass - WiFi", "IMEI": "123456789012345", "SN": "", "Status": "Completed", "Result": "Bypass successful. Device activated.", "Credit": "10.00", "CreatedAt": "2026-04-13 12:00:00", "UpdatedAt": "2026-04-13 12:05:00" } }

Error Responses

All errors return a JSON object with an ERROR key containing the error message.

{ "ERROR": "Authentication failed. Invalid username or API access key." } // Common errors: // - Authentication failed // - Service not found // - Invalid IMEI format // - Insufficient credits // - Order not found

PHP Example

<?php $apiUrl = 'http://localhost/api/'; $username = 'your_username'; $apiKey = 'your_api_key'; // Place an IMEI order $response = file_get_contents($apiUrl, false, stream_context_create([ 'http' => [ 'method' => 'POST', 'header' => 'Content-Type: application/x-www-form-urlencoded', 'content' => http_build_query([ 'username' => $username, 'apiaccesskey' => $apiKey, 'action' => 'placeimeiorder', 'ID' => 1, 'IMEI' => '123456789012345', ]), ], ])); $data = json_decode($response, true); if (isset($data['SUCCESS'])) { echo 'Order ID: ' . $data['SUCCESS']['ID']; } else { echo 'Error: ' . $data['ERROR']; }

Dhru Fusion Panel Setup

1 Add API Server

In your Dhru Fusion panel, go to Modules > API Server Settings and add a new server.

2 Enter Credentials

Set the API URL to http://localhost/api/ and enter your username + API key.

3 Sync Services

Click "Update Service List" to pull all available services. Set your markup and you're ready!