Replying Message
Response to be sent to Eko’s server from the webhook is sent using POST method with the parameter below.
post
https://customer-h1.ekoapp.com
/bot/v1/message/text
Reply text message to user
#example command for replying text message to user.
curl -X POST \
https://customer-api.ekoapp.com/bot/v1/message/text \
-H 'Autorization: Bearer 53a0295873d08e6bd21a9c8f27d0f13acba5d62f' \
-H 'Content-Type: multipart/form-data' \
-F 'message=Hello There' \
-F replyToken=8350939af2afb69a969649e1e8a9436669da9e83
post
https://customer-h1.ekoapp.com
/bot/v1/message/picture
Reply picture to user
#example command for replying picture to user.
curl -X POST \
https://customer-api.ekoapp.com/bot/v1/message/picture \
-H 'Autorization: Bearer 53a0295873d08e6bd21a9c8f27d0f13acba5d62f' \
-H 'Content-Type: multipart/form-data' \
-F [email protected]/Users/don/Desktop/api/1mb.jpg \
-F replyToken=8350939af2afb69a969649e1e8a9436669da9e83
post
https://customer-h1.ekoapp.com
/bot/v1/message/quickreply
Sending quick reply
curl -X POST \
https://app-h1.sea.ekoapp.com/bot/v1/message/quickreply \
-H 'Authorization: Bearer 835c1bc124ca99be1c6a8a175018252c84b22bbf' \
-H 'Content-Type: application/json' \
-d '{
"replyToken": "d2247696a330525b20bc858c84b0997477a8aacf",
"message": {
"data": "What do you want?",
"meta": {
"quickreply": {
"template": "default",
"items": [{
"data": {
"text": "I want coffee."
},
"type": "label",
"value": "I want coffee."
}, {
"data": {
"text": "I want food."
},
"type": "label",
"value": "I want food."
}, {
"data": {
"text": "I want travel."
},
"type": "label",
"value": "I want travel."
}]
}
}
}
}
'
Copy link
On this page
post
Reply text message to user
post
Reply picture to user
post
Sending quick reply