WPBot REST API ile dış sistemlerinizi entegre edin. Mesaj gönderme, webhook yönetimi ve daha fazlası.
Tüm API istekleri session tabanlı kimlik doğrulama gerektirir. Önce giriş endpoint'ini kullanarak oturum açın.
// Oturum Açma
POST /api/auth/login
Content-Type: application/json
{
"username": "user@example.com",
"password": "your_password"
}
WhatsApp mesajı gönderir. Metin, medya veya şablon mesaj gönderilebilir.
POST /api/send-message
Content-Type: application/json
{
"phone": "905551234567",
"message": "Merhaba! Siparişiniz hazırlandı.",
"account_id": 1
}
Konuşma geçmişini listeler. Sayfalama ve filtreleme destekler.
Belirli bir numara ile olan mesaj geçmişini getirir.
Tüm kampanyaları listeler.
Yeni kampanya oluşturur.
Kampanyayı başlatır.
Kampanyayı duraklatır.
Tüm siparişleri listeler. Durum, tarih ve müşteriye göre filtreleme destekler.
Sipariş durumunu günceller ve müşteriye otomatik bildirim gönderir.
Yapılandırılmış webhook'ları listeler.
Yeni webhook oluşturur.
// Webhook Oluşturma
POST /api/webhooks
Content-Type: application/json
{
"url": "https://your-app.com/webhook",
"events": ["message.received", "message.sent"],
"secret": "your_hmac_secret"
}
// Gelen mesaj webhook payload
{
"event": "message.received",
"timestamp": "2026-03-25T14:30:00Z",
"data": {
"from": "905551234567",
"message": "Merhaba, sipariş vermek istiyorum",
"type": "text",
"account_id": 1
},
"signature": "hmac_sha256_signature"
}
| Plan | İstek / Dakika | Günlük Limit |
|---|---|---|
| Başlangıç | 60 | 5,000 |
| Profesyonel | 300 | 50,000 |
| Kurumsal | Sınırsız | Sınırsız |
Ücretsiz hesap oluşturun ve API'yi hemen test edin.