Ana SayfaAPI Dökümantasyonu

API Dökümantasyonu

Kopyalandı!

Profil API

POST

Profil Oluştur

https://app.chatapi.dev/api/create_instance?access_token=64708c71XXXXX

Yeni bir Instance ID oluşturur

Parametreler

access_token64708c71XXXXX
POST

QR Kod Al

https://app.chatapi.dev/api/get_qrcode?instance_id=609ACF283XXXX&access_token=64708c71XXXXX

WhatsApp Web'e giriş yapmak için QR kodunu gösterir

Parametreler

instance_id609ACF283XXXX
access_token64708c71XXXXX
POST

Webhook Ayarla

https://app.chatapi.dev/api/set_webhook?webhook_url=URL&enable=true&instance_id=609ACF283XXXX&access_token=64708c71XXXXX

WhatsApp'tan gelen tüm yanıtları almak için kullanılır

Parametreler

webhook_urlWebhook adresiniz
enabletrue
instance_id609ACF283XXXX
access_token64708c71XXXXX
POST

Profili Yeniden Başlat

https://app.chatapi.dev/api/reboot?instance_id=609ACF283XXXX&access_token=64708c71XXXXX

WhatsApp Web'den çıkış yapar ve yeni bağlantı oluşturur

Parametreler

instance_id609ACF283XXXX
access_token64708c71XXXXX
POST

Profili Sıfırla

https://app.chatapi.dev/api/reset_instance?instance_id=609ACF283XXXX&access_token=64708c71XXXXX

WhatsApp oturumunu kapatır, Instance ID'yi değiştirir, eski verilerin hepsini siler

Parametreler

instance_id609ACF283XXXX
access_token64708c71XXXXX
POST

Yeniden Bağlan

https://app.chatapi.dev/api/reconnect?instance_id=609ACF283XXXX&access_token=64708c71XXXXX

Bağlantı kesildiğinde WhatsApp Web'e yeniden bağlanır

Parametreler

instance_id609ACF283XXXX
access_token64708c71XXXXX

Mesaj API

POST

Metin Mesajı Gönder

https://app.chatapi.dev/api/send
Content-Type: application/json
{
    "number": "{int}",
    "type": "text",
    "message": "{string}",
    "instance_id": "{string}",
    "access_token": "64708c71XXXXX"
}

Belirtilen numaraya WhatsApp mesajı gönderir

Parametreler

number9085055xxxx
typetext
messagetest mesajı
instance_id609ACF283XXXX
access_token64708c71XXXXX
POST

Medya/Dosya Gönder

https://app.chatapi.dev/api/send
Content-Type: application/json
{
    "number": "{int}",
    "type": "media",
    "message": "{string}",
    "media_url": "{string}",
    "instance_id": "{string}",
    "access_token": "64708c71XXXXX"
}

Belirtilen numaraya medya veya dosya ile birlikte mesaj gönderir

Parametreler

number9085055xxxx
typemedia
messagetest mesajı
media_urlhttps://i.pravatar.cc
filenamefile_test.pdf (belgeler için)
instance_id609ACF283XXXX
access_token64708c71XXXXX

Grup API

POST

Grupta Metin Mesajı Gönder

https://app.chatapi.dev/api/send_group
Content-Type: application/json
{
    "group_id": "8498761xxxxxxxx@g.us",
    "type": "text",
    "message": "{string}",
    "instance_id": "{string}",
    "access_token": "64708c71XXXXX"
}

Bir WhatsApp grubuna mesaj gönderir

Parametreler

group_id84987694574-1618740914@g.us
typetext
messagetest mesajı
instance_id609ACF283XXXX
access_token64708c71XXXXX
POST

Grupta Medya/Dosya Gönder

https://app.chatapi.dev/api/send_group
Content-Type: application/json
{
    "group_id": "8498761xxxxxxxx@g.us",
    "type": "media",
    "message": "{string}",
    "media_url": "{string}",
    "instance_id": "{string}",
    "access_token": "64708c71XXXXX"
}

Bir WhatsApp grubuna medya veya dosya ile birlikte mesaj gönderir

Parametreler

group_id8498761xxxxxxxx@g.us
typemedia
messagetest mesajı
media_urlhttps://i.pravatar.cc
filenamefile_test.pdf (belgeler için)
instance_id609ACF283XXXX
access_token64708c71XXXXX