Messages
Send Message to WhatsApp Box
This endpoint allows you to send a custom message to a phone number.
Use this API if you are sure client has responded / send you message in less than 24 hours.
Request Body
token
(string) - The token for authentication.phone
(string) - The phone number of the recipient.message
(string) - The message to be sentbuttons
(array) - List of buttonsheader
(string) - Header - only applied if there are buttonsfooter
(string) - Header - only applied if there are buttons
Response
status
(string) - The status of the message delivery.message_id
(integer) - The ID of the sent message.message_wamid
(string) - The WhatsApp message ID.
Note: A status code of 200 indicates a successful request.
POST /api/wpbox/sendmessage HTTP/1.1
Host: www.app.samwad.tech
Content-Type: multipart/form-data
Accept: */*
Content-Length: 40
{
"image": "binary",
"phone": "",
"token": ""
}
No content
Send Message to WhatsApp Box
This endpoint allows you to send a custom message to a phone number.
Use this API if you are sure client has responded / send you message in less than 24 hours.
Request Body
token
(string) - The token for authentication.phone
(string) - The phone number of the recipient.message
(string) - The message to be sentbuttons
(array) - List of buttonsheader
(string) - Header - only applied if there are buttonsfooter
(string) - Header - only applied if there are buttons
Response
status
(string) - The status of the message delivery.message_id
(integer) - The ID of the sent message.message_wamid
(string) - The WhatsApp message ID.
Note: A status code of 200 indicates a successful request.
true
POST /api/wpbox/getConversations/none HTTP/1.1
Host: www.app.samwad.tech
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"token": "{{token}}"
}
No content
Send Message to WhatsApp Box
This endpoint allows you to send a custom message to a phone number.
Use this API if you are sure client has responded / send you message in less than 24 hours.
Request Body
token
(string) - The token for authentication.phone
(string) - The phone number of the recipient.message
(string) - The message to be sentbuttons
(array) - List of buttonsheader
(string) - Header - only applied if there are buttonsfooter
(string) - Header - only applied if there are buttons
Response
status
(string) - The status of the message delivery.message_id
(integer) - The ID of the sent message.message_wamid
(string) - The WhatsApp message ID.
Note: A status code of 200 indicates a successful request.
1
POST /api/wpbox/getMessages HTTP/1.1
Host: www.app.samwad.tech
Content-Type: application/json
Accept: */*
Content-Length: 36
{
"contact_id": 1,
"token": "{{token}}"
}
No content
Send Message to WhatsApp Box
This endpoint allows you to send a custom message to a phone number.
Use this API if you are sure client has responded / send you message in less than 24 hours.
Request Body
token
(string) - The token for authentication.phone
(string) - The phone number of the recipient.message
(string) - The message to be sentbuttons
(array) - List of buttonsheader
(string) - Header - only applied if there are buttonsfooter
(string) - Header - only applied if there are buttons
Response
status
(string) - The status of the message delivery.message_id
(integer) - The ID of the sent message.message_wamid
(string) - The WhatsApp message ID.
Note: A status code of 200 indicates a successful request.
POST /api/wpbox/sendMessagesViaContact HTTP/1.1
Host: www.app.samwad.tech
Content-Type: application/json
Accept: */*
Content-Length: 21
{
"token": "{{token}}"
}
No content