<https://api.v7.botpenguin.com/whatsapp-automation/wa/send-message?apiKey=*API KEY*>
Request Body
{
"userName": "Test",
"wa_id": "910987654321",
"type": "text",
"message": {
"text": "hi"
}
}
Parameters
Parameter | Type | Description |
---|
| | The name of the user to whom the message is being sent. |
| | The WhatsApp number of the user to whom the message is being sent. The number must contain the country code without the plus sign. |
| | The type of message being sent (e.g., text, image). |
| | message that needs to sent |
| | The caption you want to send along with the image
(optional) Only if type is image |
| | The image link
(optional)
Only if type is image |
Example
curl --location 'https://api.v7.botpenguin.com/whatsapp-automation/wa/send-message?apiKey=*API KEY*' \
--header 'apiKey: *API KEY*' \
--header 'Content-Type: application/json' \
--data '{
"userName": "Test",
"wa_id": "918859170007",
"type": "text",
"message": {
"text": "hi"
}
}'
Request Body
{
"userName": "Test",
"wa_id": "910987654321",
"type": "image",
"message": {
"source": "https://imgv3.fotor.com/images/blog-cover-image/part-blurry-image.jpg",
"label": "hey",
}
}
Parameters
Parameter | Type | Description |
---|
| | The name of the user to whom the message is being sent. |
| | The WhatsApp number of the user to whom the message is being sent. The number must contain the country code without the plus sign. |
| | The type of message being sent (e.g., text, image, document). |
| | The URL of the media being sent. |
| | The text to attach to the media. |
| | The type of media being sent (e.g., image, document). |
Example
curl --location '<https://api.v7.botpenguin.com/whatsapp-automation/wa/send-message?apiKey=*API KEY*>' \\\\
--header 'apiKey: *API KEY*' \\\\
--header 'Content-Type: application/json' \\\\
--data '{
"userName": "Test",
"wa_id": "910987654321",
"type": "image",
"message": {
"source": "<https://imgv3.fotor.com/images/blog-cover-image/part-blurry-image.jpg>",
"label": "hey",
"type": "image"
}
}'