Api Docs

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

You can send a button message to increase the user experience and interact with your customers easily. With this method, your customers can choose a preference with one click and you can get this information instantly in your own system. So you can create progressive menus and give your customers the best experience.

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"
  ]
}

Parameter Explanations:
from: Your Whatsapp number (Must be contain country code).
to: Target number (Must be contain country code).
message: Message text here. You can use emojis and new line \n character.
type: This parameter must contain button value.
buttons: Please add button texts here as array. You can use emoji.


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"
    }
  ]
}



The message will be show like that at target user: