Body
-
phone
string Phone number with country code
-
link
string Link to send
-
caption
string Caption to send
-
is_forwarded
boolean Whether this is a forwarded message
POST
/send/link
curl \
--request POST 'http://localhost:3000/send/link' \
--user "username:password" \
--header "Content-Type: application/json" \
--data '{"phone":"6289685024051@s.whatsapp.net","link":"https://google.com","caption":"Halo ini contoh caption","is_forwarded":false}'
Request examples
{
"phone": "6289685024051@s.whatsapp.net",
"link": "https://google.com",
"caption": "Halo ini contoh caption",
"is_forwarded": false
}
Response examples (200)
{
"code": "SUCCESS",
"message": "Success",
"results": {
"message_id": "3EB0B430B6F8F1D0E053AC120E0A9E5C",
"status": "<feature> success ...."
}
}
Response examples (400)
{
"code": 400,
"message": "field cannot be blank",
"results": {}
}
Response examples (500)
{
"code": "INTERNAL_SERVER_ERROR",
"message": "you are not loggin",
"results": {}
}