Chat History
Page describing the API for consulting the chat history.
Chat History
GET
https://api.jelou.ai/v1/bots/<botId>/users/<userId>/history
This endpoint allows you to get the chat history between a user and its respective bot.
Path Parameters
Name
Type
Description
botId
string
Bot id
userId
string
User phone number(Without "+" sign.
Query Parameters
Name
Type
Description
limit
string
Number of messages to request
direction
string
The direction in which messages, new or old will be searched(values: "newer"
| "older"
).
messageId
string
message Id
of the message that will be taken as a reference for the query
In case of skipping the optional fields the Default values will be handled.
Request example
Last updated