Alight Motion Bot 1 Tahun · ariepulsa
amth.ariepulsa.com)
lewat tanpa API key. Request dari luar (server lain, Postman, script) wajib menyertakan header:
X-API-Key: YOUR_API_KEY
API key di-set di file .env bagian API_KEY=.
Buat order baru. Akun di-generate fresh (butuh ±2 menit/akun). Response 202 langsung berisi orderId untuk polling.
| Field | Tipe | Wajib | Default | Keterangan |
|---|---|---|---|---|
| qty | number | tidak | 1 | Jumlah akun (1-20) |
| note | string | tidak | - | Catatan internal (max 200 char) |
curl -X POST https://amth.ariepulsa.com/api/order \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"qty": 1, "note": "order dari reseller A"}'
{
"success": true,
"orderId": "ord_lz0x1abc_1a2b3c4d",
"status": "pending",
"qty": 1,
"message": "Order diterima...",
"pollUrl": "/api/order/ord_lz0x1abc_1a2b3c4d",
"pollIntervalMs": 5000,
"docs": "/docs"
}
Cek status order. Polling tiap 5 detik sampai status = success atau failed.
curl https://amth.ariepulsa.com/api/order/ord_lz0x1abc_1a2b3c4d \
-H "X-API-Key: YOUR_API_KEY"
{
"success": true,
"order": {
"id": "ord_lz0x1abc_1a2b3c4d",
"status": "success",
"qty": 1,
"progress": 1,
"partial": false,
"accounts": [{
"email": "amabc123@emailqu.com",
"password": "Ariepulsa123",
"loginLink": "-",
"inboxUrl": "https://emailqu.com"
}],
"error": null,
"createdAt": 1700000000000,
"startedAt": 1700000001000,
"finishedAt": 1700000120000
}
}
{
"success": true,
"order": {
"id": "ord_...",
"status": "failed",
"accounts": [],
"error": "Kode verifikasi tidak kunjung masuk ke inbox.",
...
}
}
List 50 order terakhir. Maksimal 100 per request.
curl https://amth.ariepulsa.com/api/orders?limit=10 \
-H "X-API-Key: YOUR_API_KEY"
Cek status server dan antrian. Public, tidak perlu auth.
curl https://amth.ariepulsa.com/api/health
Deep check 3 layanan upstream: Emailqu, Firebase, Alight Motion. Lambat (±3 detik).
curl https://amth.ariepulsa.com/api/health/services \
-H "X-API-Key: YOUR_API_KEY"
List akun yang sudah ada di result.txt (database lokal). Maks 500 per request.
curl https://amth.ariepulsa.com/api/stock \
-H "X-API-Key: YOUR_API_KEY"
Statistik order: total, sukses, gagal, antrian saat ini.
curl https://amth.ariepulsa.com/api/stats \
-H "X-API-Key: YOUR_API_KEY"
# 1. Submit order
curl -X POST https://amth.ariepulsa.com/api/order \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"qty": 1}'
# Response: {"orderId": "ord_...", ...}
# 2. Polling tiap 5 detik
curl https://amth.ariepulsa.com/api/order/ord_... \
-H "X-API-Key: YOUR_API_KEY"
# 3. Berhenti polling saat status = "success" atau "failed"
# Ambil akun dari order.accounts[0].email + .password
| Code | Arti |
|---|---|
| 202 | Order diterima, sedang diproses (async) |
| 200 | OK (GET request) |
| 401 | Unauthorized - API key salah/tidak ada |
| 404 | Order tidak ditemukan |
| 429 | Rate limit terlampaui |
| 500 | Server error |
<?php
// Submit order
$ch = curl_init('https://amth.ariepulsa.com/api/order');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/json',
'X-API-Key: YOUR_API_KEY'
],
CURLOPT_POSTFIELDS => json_encode(['qty' => 1]),
CURLOPT_RETURNTRANSFER => true
]);
$res = json_decode(curl_exec($ch), true);
$orderId = $res['orderId'];
// Polling
do {
sleep(5);
$ch = curl_init("https://amth.ariepulsa.com/api/order/$orderId");
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['X-API-Key: YOUR_API_KEY'],
CURLOPT_RETURNTRANSFER => true
]);
$res = json_decode(curl_exec($ch), true);
$status = $res['order']['status'];
} while ($status === 'pending' || $status === 'processing');
if ($status === 'success') {
$email = $res['order']['accounts'][0]['email'];
$password = $res['order']['accounts'][0]['password'];
echo "Akun: $email / $password";
}
const res = await fetch('https://amth.ariepulsa.com/api/order', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': process.env.AM_API_KEY
},
body: JSON.stringify({ qty: 1 })
});
const { orderId } = await res.json();
// Polling
let status = 'pending';
while (status === 'pending' || status === 'processing') {
await new Promise(r => setTimeout(r, 5000));
const r = await fetch(`https://amth.ariepulsa.com/api/order/${orderId}`, {
headers: { 'X-API-Key': process.env.AM_API_KEY }
});
const data = await r.json();
status = data.order.status;
if (status === 'success') {
console.log(data.order.accounts[0]);
}
}