Get Chat History
Conversations
Chat history
Query the message history of a bot
GET
Get Chat History
Retrieve the conversation history of a bot to audit interactions, analyze metrics, or debug flows. This endpoint returns sent and received messages with support for pagination and time filters.Documentation Index
Fetch the complete documentation index at: https://docs.jelou.ai/llms.txt
Use this file to discover all available pages before exploring further.
Endpoint
Path Parameters
| Field | Location | Type | Required | Description |
|---|---|---|---|---|
| botId | Path | string | Yes | Unique identifier of the bot whose history you want to query. |
Query Parameters
| Field | Location | Type | Required | Default value | Description |
|---|---|---|---|---|---|
| limit | Query | integer | No | 10 | Number of messages to request. Maximum: 50. |
| page | Query | integer | No | 1 | Page number. |
| startAt | Query | date | No | - | Start date of the range to query. ISO 8601 format. |
| endAt | Query | date | No | - | End date of the range to query. ISO 8601 format. |
| clientId | Query | string | No | - | Filters the history by a specific clientId associated with your integrations. |
| messageId | Query | string | No | - | Returns the conversation that contains the message with this identifier. |
Request Examples
Basic query
With date filter
With client filter
Responses
200 - Successful response
200 - Successful response
401 - Unauthorized
401 - Unauthorized
404 - Not Found
404 - Not Found
422 - Unprocessable Entity
422 - Unprocessable Entity
500 - Internal Server Error
500 - Internal Server Error
Response Detail
pagination object
| Field | Type | Description |
|---|---|---|
| limit | integer | Number of records per page. |
| page | integer | Current page. |
| total | integer | Total records. |
| offset | integer | Offset from the beginning. |
| totalPages | integer | Total available pages. |
results object
| Field | Type | Description |
|---|---|---|
| recipient | object | Recipient information (id, names). |
| sender | object | Sender information (id, name, type). |
| by | string | Indicates who sent the message: bot or user. |
| messageId | string | Unique message identifier. |
| status | string | Message status: DELIVERED_USER, DELIVERED_CHANNEL, READ, etc. |
| bubble | object | Message content (type, text, mediaUrl, etc.). |
| createdAt | date | Message creation date in ISO 8601 format. |
Limits and restrictions
Important limits:
- limit: Maximum allowed value is
50 - page: Must be a positive integer
- startAt/endAt: Must be in ISO 8601 format (e.g.:
2025-01-15T10:30:00.000Z)
Authorizations
Basic authentication using Base64 encoded clientId:clientSecret
Path Parameters
Query Parameters
Required range:
x <= 50