Sending a Message

Sending a text message to a user

POST https://customer-h1.ekoapp.com/bot/v1/direct/message

Headers

Request Body

{
    "status": "success"
}
curl -X POST \
  https://app-h1.sea.ekoapp.com/bot/v1/direct/message \
  -H 'Authorization: Bearer 835c1bc124ca99be1c6a8a175018252c84b22bbf' \
  -H 'Content-Type: application/json' \
  -d '{
	"uid" : "5d8c318c22fba500114ed1c5",
	"message": {
		"type": "text",
		"data": "hi"
	}
}'

Sending a text message to a group chat

POST https://customer-h1.ekoapp.com/bot/v1/group/message

Headers

Request Body

{
    "status": "success"
}
curl -X POST \
  https://app-h1.sea.ekoapp.com/bot/v1/group/message \
  -H 'Authorization: Bearer 835c1bc124ca99be1c6a8a175018252c84b22bbf' \
  -H 'Content-Type: application/json' \
  -d '{
	"gid" : "5d8af2ff8a63093716267ecf",
	"tid" : "5d8af2ff8a6309492e267ed1",
	"message": {
		"type": "text",
		"data": "hi"
	}
}'

Sending a picture to a user

POST https://customer-h1.ekoapp.com/bot/v1/direct/picture

Headers

Request Body

{
    "status": "success"
}
curl -X POST \
  https://app-h1.sea.ekoapp.com/bot/v1/direct/picture \
  -H 'Authorization: Bearer 835c1bc124ca99be1c6a8a175018252c84b22bbf' \
  -H 'Content-Type: multipart/form-data' \
  -F uid=5d8af2ff164176ecaec49e5c \
  -F caption=test \
  -F file=@1mb.jpg

Sending a picture to a group chat

POST https://customer-h1.ekoapp.com/bot/v1/group/picture

Headers

Request Body

{
    "status": "success"
}
curl -X POST \
  https://app-h1.sea.ekoapp.com/bot/v1/group/picture \
  -H 'Authorization: Bearer 835c1bc124ca99be1c6a8a175018252c84b22bbf' \
  -H 'Content-Type: multipart/form-data' \
  -F gid=5d8af2ff164176ecaec49e5c \
  -F tid=d8a42f164176ecwec4sda95c \
  -F caption=test \
  -F file=@1mb.jpg

Sending a file to a user

POST https://customer-h1.ekoapp.com/bot/v1/direct/file

Headers

Request Body

{
    "status": "success"
}
curl -X POST \
  https://app-h1.sea.ekoapp.com/bot/v1/direct/file \
  -H 'Authorization: Bearer 835c1bc124ca99be1c6a8a175018252c84b22bbf' \
  -H 'Content-Type: multipart/form-data' \
  -F uid=5d8af2ff164176ecaec49e5c \
  -F file=@1mb.pdf

Sending a file to a group chat

POST https://customer-h1.ekoapp.com/bot/v1/group/file

Headers

Request Body

{
    "status": "success"
}
curl -X POST \
  https://app-h1.sea.ekoapp.com/bot/v1/group/file \
  -H 'Authorization: Bearer 835c1bc124ca99be1c6a8a175018252c84b22bbf' \
  -H 'Content-Type: multipart/form-data' \
  -F gid=5d8af2ff164176ecaec49e5c \
  -F tid=d8a42f164176ecwec4sda95c \
  -F file=@1mb.pdf

Last updated