Dokumentasi API

Integrasikan layanan Bejox Panel ke website atau aplikasi Anda

1. Dapatkan API Key

Buka halaman Profile → bagian API Key → klik Buat API Key Baru. Salin key yang tampil (diawali bx_) — key lengkap hanya ditampilkan satu kali saat pembuatan. Simpan di tempat aman, jangan dibagikan.

2. Cara Autentikasi

Sertakan API key di setiap request pada header Authorization:

Authorization: Bearer bx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Batas pemakaian: 120 request per menit per API key.

3. Daftar Endpoint

GET
/api/smm

Daftar layanan SMM aktif beserta harga.

{
  "services": [
    { "id": 1, "platform": "Instagram", "name": "Instagram Followers",
      "price_per_1000": 15000, "min_qty": 100, "max_qty": 100000, "active": 1 }
  ]
}
GET
/api/ppob

Daftar produk PPOB aktif beserta harga.

{
  "products": [
    { "id": 5, "category": "Pulsa", "name": "Telkomsel 10rb",
      "price": 12500, "active": 1 }
  ]
}
POST
/api/orders

Buat pesanan baru. Saldo terpotong otomatis.

{
  "type": "smm",        // "smm" atau "ppob"
  "service_id": 1,      // id layanan (smm) atau produk (ppob)
  "target": "username", // username / link / nomor tujuan
  "qty": 1000           // jumlah (smm); ppob selalu 1
}

Response sukses: {"order_id": 123, "total": 15000, "balance": 85000}

GET
/api/orders

Lihat status pesanan Anda.

{
  "orders": [
    { "id": 123, "type": "smm", "target": "username",
      "qty": 1000, "total": 15000, "status": "diproses",
      "created_at": "2026-10-11 08:00:00" }
  ]
}
GET
/api/auth?action=me

Cek saldo dan info akun.

{
  "username": "reseller1", "balance": 85000, "role": "user"
}

Keamanan

  • Jangan pernah menaruh API key di kode frontend publik (HTML/JS yang bisa dilihat pengunjung).
  • Gunakan HTTPS untuk semua request.
  • Cabut key yang tidak dipakai lagi lewat halaman Profile.