Method : POST
| GET
Endpoint: {{ env('APP_URL') }}/send-button
Request Body : (JSON If POST)
Parameter | Type | Required | Description |
---|---|---|---|
api_key | string | Yes | API Key |
sender | string | Yes | Number of your device |
number | string | Yes | recipient number ex 72888xxxx|62888xxxx |
message | string | Yes | Text of message |
button | array | Yes | Button array 5 |
footer | string | No | The footer text of message |
url/image | string | No | Image or video url |
Example json
{
"sender" : "6281284838163",
"api_key" : "yourapikey",
"number" : "082298859671",
"url" : null,
"footer" : "optional",
"message" : "Halo,ini pesan button",
"button" : [
{
"type": "reply",
"displayText": "mantaps"
},
{
"type": "call",
"displayText": "mantaps",
"phoneNumber" : "082298859671"
},
{
"type": "url",
"displayText": "mantaps",
"url" : "https://google.com"
},
{
"type": "copy",
"displayText": "mantaps",
"copyCode" : "xxxx"
}
]
}
Example URL
{{ env('APP_URL') }}/send-button?sender=6281284838163&api_key=yourapikey&number=082298859671&url=&footer=optional&message=Halo,ini pesan button&button=button 1,button 2,button 3