REST API v1 · Webhook Push

Dokumentasi API Reseller

Integrasikan pembelian Gmail, sewa OTP (satuan & massal 1–200), Live Inbox, dan GSuite langsung ke bot atau aplikasi Anda.

🔑 Buat API Key

1. Base URL & Autentikasi

Base URL : https://gmail.ipeenk.com/api/v1
Header   : Authorization: Bearer igm_xxxxxxxxxxxxxxxxx
Idempotency (optional, recommended for POST):
           Idempotency-Key: <unique-uuid-per-order>

Seluruh harga dan saldo ditampilkan dalam IDR dan USD. Semua tautan 1-Klik Login dilayani melalui https://gmail.ipeenk.com/api/login/<token>. Batas laju: 120 req/menit per API key.

2. Cek Saldo & Akun — GET /api/v1/me

curl "https://gmail.ipeenk.com/api/v1/me" \
  -H "Authorization: Bearer igm_YOUR_API_KEY"

# Response:
{
  "ok": true,
  "data": {
    "email": "[email protected]",
    "currency": "IDR",
    "balance_idr": 150000,
    "balance_usd": 7.87,
    "fx_usd_idr": 19055,
    "rate_limit_rpm": 120
  }
}

3. Katalog (Stok & Harga Real-Time) — GET /api/v1/catalog

# 1. Beli Gmail (Server 1A–1D, 2A–2H)
curl "https://gmail.ipeenk.com/api/v1/catalog?type=buy" -H "Authorization: Bearer igm_KEY"

# 2. Rent OTP (@gmail.com, Server 1–5)
curl "https://gmail.ipeenk.com/api/v1/catalog?type=rent-otp&q=tiktok" -H "Authorization: Bearer igm_KEY"

# 3. Rent Live Inbox
curl "https://gmail.ipeenk.com/api/v1/catalog?type=rent-live" -H "Authorization: Bearer igm_KEY"

# 4. GSuite (variant: 3A | 3B | 3C | 3D | 3E)
curl "https://gmail.ipeenk.com/api/v1/catalog?type=gsuite&variant=3C&q=roblox" -H "Authorization: Bearer igm_KEY"

4. Buat Pesanan (Semua Kategori) — POST /api/v1/orders

# A) Beli Gmail (product_code: "auto" | "server-1a" | "server-2a" ...)
curl -X POST "https://gmail.ipeenk.com/api/v1/orders" \
  -H "Authorization: Bearer igm_KEY" \
  -H "Idempotency-Key: 550e8400-e29b-41d4-a716-446655440001" \
  -H "Content-Type: application/json" \
  -d '{"category":"BUY_GMAIL","product_code":"auto","quantity":2}'

# B) Rent OTP (server: "auto" | 1 | 2 | 3 | 4 | 5 · quantity: 1..200)
curl -X POST "https://gmail.ipeenk.com/api/v1/orders" \
  -H "Authorization: Bearer igm_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"RENT_OTP","service":"lf","server":"auto","quantity":5}'

# C) Rent Live Inbox (Full Mailbox)
curl -X POST "https://gmail.ipeenk.com/api/v1/orders" \
  -H "Authorization: Bearer igm_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"RENT_LIVE"}'

# D) GSuite (variant: 3A..3E, target_id dari /catalog?type=gsuite)
curl -X POST "https://gmail.ipeenk.com/api/v1/orders" \
  -H "Authorization: Bearer igm_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"GSUITE","variant":"3C","target_id":"366","quantity":10}'

5. Cek Status, Bulk Status & Batalkan

# Detail 1 pesanan (incl. OTP terbaru, login_url, inbox_url, cookies)
GET    https://gmail.ipeenk.com/api/v1/orders/{order_id}

# Cek status hingga 100 pesanan sekaligus dalam 1 panggilan
POST   https://gmail.ipeenk.com/api/v1/orders/status
Body:  {"order_ids": ["GM-1A2B3C4D", "GM-9E8F7A6B"]}

# Batalkan Rent OTP yang masih waiting_code -> Refund otomatis 100%
DELETE https://gmail.ipeenk.com/api/v1/orders/{order_id}

# Baca Inbox (untuk Beli Gmail yg mendukung & Rent Live Inbox; TIDAK tersedia untuk GSuite)
GET    {account.inbox_url}  # contoh: https://gmail.ipeenk.com/api/inbox/<token>

6. Webhook Push (HMAC-SHA256) — /api/v1/webhooks

Daftarkan endpoint HTTPS untuk menerima push otomatis saat order.delivered, otp.received, atau order.refunded.

# Daftar Webhook via API (atau dari Dashboard)
curl -X POST "https://gmail.ipeenk.com/api/v1/webhooks" \
  -H "Authorization: Bearer igm_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://bot-anda.com/webhook","events":["order.delivered","otp.received","order.refunded"]}'

# Verifikasi Signature di Node.js:
import crypto from 'node:crypto';
const sig = req.headers['x-ipeenk-signature']; // "sha256=..."
const ts  = req.headers['x-ipeenk-timestamp'];
const expected = 'sha256=' + crypto.createHmac('sha256', WEBHOOK_SECRET).update(ts + '.' + rawBody).digest('hex');
const valid = crypto.timingSafeEqual(Buffer.from(sig), Buffer.from(expected));

7. Contoh Kode Cepat (Python & Node.js)

# Python (requests)
import requests, time

API = "https://gmail.ipeenk.com/api/v1"
H   = {"Authorization": "Bearer igm_YOUR_KEY"}

# 1. Sewa 1 OTP TikTok (Server Auto Termurah)
r = requests.post(f"{API}/orders", headers=H, json={
    "category": "RENT_OTP", "service": "lf", "server": "auto", "quantity": 1
}).json()
oid = r["data"]["order_id"]
print("Email:", r["data"]["accounts"][0]["email"])

# 2. Tunggu OTP masuk
while True:
    st = requests.get(f"{API}/orders/{oid}", headers=H).json()["data"]
    otp = st["accounts"][0].get("otp_latest")
    if otp or st["status"] in ("DELIVERED", "REFUNDED", "CANCELLED"):
        print("Hasil:", st["status"], otp)
        break
    time.sleep(5)