To Start sending "Session Messages", the first incoming message from the receiver is mandatory else "Ticket Expired" error will be displayed.

URL : https://{{url}}/v5/api/session.php

{
"brodcast_service":"whatsapp_credits",
"template_id" : "session_message",
"broadcast_message": "Service ID 100005 is registered.",
"schedule_time": "12:46:31",
"contacts": "911234567890",
"list": "10",  //Put 10 for 10 options
"button_name": "Servicess",
"section_name" : "Choosee",
"id1" : "id1",
"title1" : "title1",
"id2" : "id2",
"title2" : "title2",
"id3" : "id3",
"title3" : "title3",
"id4" : "id4",
"title4" : "title4",
"id5" : "id5",
"title5" : "title5",
"id6" : "id6",
"title6" : "title6",
"id7" : "id7",
"title7" : "title7",
"id8" : "id8",
"title8" : "title8",
"id9" : "id9",
"title9" : "title9",
"id10" : "id10",
"title10" : "title10"
}

Note:

  1. Max 10 Options are allowed inside 1 section
  2. Length of any id or title should not exceed 20 characters
13531353

📘

Sample Reponse

{"status":"ok","textsent":"ok","message":"{"contacts":[{"input":"911234567890","wa_id":"918878588599"}],"messages":[{"id":"gBEGkYh4WIWZAgn9BNpxW7cQiUk"}],"meta":{"api_status":"stable","version":"2.41.2"}}"}

curl --location --request POST 'http://182.70.248.147/v5/api/session.php' \
--header 'Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpYXQiOjE2Mzc5MTMwODMsImlzcyI6ImxvY2FsaG9zdCIsImV4cCI6MTYzNzkxMzE0MywiZGF0YSI6eyJpZCI6IjkwIiwibmFtZSI6IkJpbGxDbG91ZCIsIm1vYmlsZSI6Iis5MTc4Nzg2MzA5MDQiLCJlbWFpbCI6Imt1bWFyQGJpbGxjbG91ZC5pbiJ9fQ._8QrQsy6w97ssh3EL_6KVwNyYcQVW_0cqREiIa-pbRI' \
--header 'Content-Type: application/json' \
--data-raw '{
"brodcast_service":"whatsapp_credits",
"template_id" : "session_message",
"broadcast_message": "1234567 \\r\\n 12342345",
"schedule_time": "12:46:31",
"contacts": "911234567890",
"list": "10",
"button_name": "Servicess",
"section_name" : "Choosee",
"id1" : "id1",
"title1" : "title1",
"id2" : "id2",
"title2" : "title2",
"id3" : "id3",
"title3" : "title3",
"id4" : "id4",
"title4" : "title4",
"id5" : "id5",
"title5" : "title5",
"id6" : "id6",
"title6" : "title6",
"id7" : "id7",
"title7" : "title7",
"id8" : "id8",
"title8" : "title8",
"id9" : "id9",
"title9" : "title9",
"id10" : "id10",
"title10" : "title10"
}'