Api Dökümanları
API Intro
API key:
At the beginning please create an API key from
your account.
You must add apikey
parameter from URL query string or
add it to JSON data. You can find example usages down below.
Base URL:
https://api.multiwhats.app/api/v1/
All endpoints will use this base URL.
Data Format (Content-Type header):
All input-output data format must be JSON.
Please add
Content-Type: application/json
header to your requests.
Sending Button Message
Kullanıcı deneyimini arttırmak ve müşterilerinizle kolayca etkileşim kurmak için butonlu mesaj gönderebilirsiniz. Bu yöntem ile müşterileriniz tek tıklamayla bir tercih seçebilir ve bu bilgiyi kendi sisteminizde anlık olarak alabilirsiniz. Böylece aşamalı menüler oluşturabilir ve müşterilerinize en iyi deneyimi sunabilirsiniz.
Method: POST
URL:
https://api.multiwhats.app/api/v1/basic/whatsapp/send-dynamic?apikey=[APIKEY]
Request Data:
{ "from": "908503080335", "to": "905374937766", "message": "Hi, dear guest 👤 \n\nWe want to send message to you.\n\nDo you allow us for sending message to you? \n\n 📨", "type": "button", "buttons": [ "👍 Yes", "⛔ No" ] }
Response:
{ "user_id": 264, "social_media_account_id": 34, "platform": "whatsapp", "from_identifier": "908503080335", "message": "Hi, dear guest 👤 \n\nWe want to send message to you.\n\nDo you allow us for sending message to you? \n\n 📨", "file_url": 0, "queue_type": "normal", "message_type": "button", "total_credit": 1, "target_count": 1, "pending_count": 0, "sent_count": 1, "delivered_count": 0, "not_delivered_count": 0, "seen_count": 0, "status": "done", "send_at": "2023-04-26 11:11:58", "created_at": "2023-04-26 11:11:58", "updated_at": "2023-04-26 11:11:58", "extra_data": { "buttons": [ "👍 Yes", "⛔ No" ], "options": null, "selectedItemId": null }, "id": 3664, "targets": [ { "id": 53687, "user_id": 264, "queue_id": 3664, "target_identifier": "905374937766", "message": null, "status": "sent", "extra_data": { "buttons": null, "options": null, "selectedItemId": null }, "created_at": "2023-04-26 11:11:58", "updated_at": "2023-04-26 11:11:58" } ] }
When you use this API the message will be show like that at target user: