curl --request POST \
--url https://app.adsera.in/api/pub/wa/send/msg \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>' \
--data '
{
"whatsapp": "60c72b2f9b1d8e001f8a1b2c",
"phone": "+911234567890",
"msg": 200
}
'Sends a generic message (text, media, etc.) to a contact. Note: This kind of message can only be sent within the 24-hour open window.
curl --request POST \
--url https://app.adsera.in/api/pub/wa/send/msg \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--header 'x-api-secret: <api-key>' \
--data '
{
"whatsapp": "60c72b2f9b1d8e001f8a1b2c",
"phone": "+911234567890",
"msg": 200
}
'Your application's unique ID.
Your application's secret key.
Generic message payload
The _id of the WhatsApp account to send from.
"60c72b2f9b1d8e001f8a1b2c"
The recipient's phone number in E.164 format.
"+911234567890"
The message content.
Show child attributes
The type of message to send.
text, image, video, audio, document, interactive, contacts, location Show child attributes
YYYY-MM-DD
Interactive message payload.
Show child attributes
button, list, product, product_list, catalog_message, flow, voice_call Show child attributes
3Show child attributes
201 - 10 elementsShow child attributes
24Show child attributes
text, video, image, document 60200
Message successfully queued.
Was this page helpful?