Dokumentasi API

Endpoint utama: POST /api/bot-wa/run · Fitur

Kirim Pesan

POST/api/bot-wa/run

Single — teks ke 1 nomor

{
  "api_key": "TOKEN",
  "action": "send_message",
  "data": {
    "target": "08123456789",
    "text": "Halo"
  }
}
POST/api/bot-wa/run

Broadcast — banyak nomor + delay random + variable

{
  "api_key": "TOKEN",
  "action": "broadcast",
  "data": {
    "target": "081111|Budi,082222|Siti,60123456789|Ahmad",
    "text": "Halo {name}, promo spesial untuk Anda!",
    "delay": "1-3",
    "country_code": "62"
  }
}
POST/api/bot-wa/run

Attachment (gambar URL)

{
  "api_key": "TOKEN",
  "action": "send_image",
  "data": {
    "target": "08123456789",
    "image_url": "https://example.com/foto.jpg",
    "caption": "Bukti transfer"
  }
}
POST/api/bot-wa/run

Lokasi

{
  "api_key": "TOKEN",
  "action": "send_location",
  "data": {
    "target": "08123456789",
    "latitude": -6.2088,
    "longitude": 106.8456,
    "name": "Jakarta"
  }
}
POST/api/bot-wa/run

WhatsApp Group (pakai group JID)

Group JID didapat dari chat group di WhatsApp (bukan nomor biasa).

{
  "api_key": "TOKEN",
  "action": "send_message",
  "data": {
    "target": "1203630xxxxx@g.us",
    "text": "Pesan ke group"
  }
}
POST/api/bot-wa/run

Schedule — pesan terjadwal

{
  "api_key": "TOKEN",
  "action": "schedule",
  "data": {
    "target": "08123456789",
    "text": "Reminder meeting",
    "send_at": "2026-08-14T10:00:00.000Z",
    "image_url": ""
  }
}

Parameter data (kirim)

target       Nomor / multi (koma) / group jid / 08xx|Nama
text         Isi pesan, support {name} {var1}
image_url    URL gambar
image_base64 Base64 gambar
caption      Caption gambar
delay        "2" atau "1-5" (random detik antar target)
country_code Default 62; 0 = tidak rewrite; 60 MY, 65 SG, 1 US
latitude, longitude, name   Untuk lokasi
contact_group  Nama group kontak tersimpan (broadcast)
template_id    Pakai template tersimpan
send_at        ISO date atau unix (untuk schedule)