sendMsg | Multiple phone numbers (Json)
POST
/sendMsg/APIKEYBy using the following JSON structure, you can send WhatsApp messages to multiple phone numbers. This method allows you to organize the data in a clear and standardized format, making it easy to integrate with various APIs or services that support JSON.
Request
Body Params application/json
phonenumber
array[string]
required
message
string
required
schedule
string
optional
Time to send a message in the future (Timestamp format should be based on UTC) Set this field if needed. If you don't send this parameter, the message will be sent instantly.
link
string
optional
Example
{
"phonenumber": [
"15303776310",
"15303776311"
],
"message": "This is a test message",
"schedule": "1724160037",
"link": "https://www.example.com/TestPDFfile.pdf"
}
Request samples
Responses
sendMsg | Multiple phone numbers (Json)(200)
sendMsg | Multiple phone numbers (Json)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
0
object
required
phonenumber
string
required
messageId
integer
required
1
object
required
phonenumber
string
required
messageId
integer
required
success
string
required
messages
string
required
ExamplesendMsg | Multiple phone numbers (Json)
{
"0": {
"phonenumber": "15303776310",
"messageId": 1817
},
"1": {
"phonenumber": "15303776311",
"messageId": 1818
},
"success": "true",
"messages": "Added to the message queue"
}
Last modified: 2 months ago