Forward Message
POST
https://api.wapim.io/api/v1/whatsapp/message/forward
Request Body
Recipient Phone Number or Group ID
{
"status": true,
"code": 200,
"data": "OK"
}
{
"status": false,
"code": 400,
"message": "Bad Request",
"error": {
"Forward Message": [
"Malformed or missing message_id!"
]
}
}
curl
-X POST https://api.wapim.io/api/v1/whatsapp/message/forward
-H 'Token: YOUR_WAPIM_TOKEN'
-d '{"phone_number": "PHONENUMBER_OR_GROUPID", "message_id": "WHATSAPP_MESSAGE_ID"}'
const axios = require('axios');
axios
.post(
'https://api.wapim.io/api/v1/whatsapp/message/forward',
{
message_id: 'WHATSAPP_MESSAGE_ID',
phone_number: 'PHONENUMBER_OR_GROUPID'
},
{
headers: {
token: 'YOUR_WAPIM_TOKEN',
}
}
)
.then(response => console.log(response.data))
.catch(error => console.log(error.response.data))