Webhook API

Webhooks allow developer to subscribe to events that are happening with Bot in Eko. Eko can send an HTTP request to an endpoint that you configure. There are 2 types of event including Create a chat and sending a message.

User create a chat room

When a user create a 1-1 chat room with bot for first time, Eko will send an event to customer endpoint.

"root":
    "events":
        0:
        "replyToken": "d4c1027bafd76d1ed1ab08dd0ffd9cdd15608fcb"
        "type": "join"
        "source":
            "type": "direct_chat"
            "uid": "5d8af2ff164176ecaec49e5c"
        "timestamp": 1569563054859

Message request

When the bot has sent a message, the endpoint will receive a request from the Eko server once the bot is sent a message as below

Request parameters

Last updated