---
title: "Get Chat History"
method: GET
path: "/v1/external/messages/history/{botId}"
tags: ["Conversations"]
---

# Get Chat History

`GET /v1/external/messages/history/{botId}`

Retrieve message history for a bot with pagination and date filters.

## Path parameters

- `botId` string, required

## Query parameters

- `limit` integer
- `page` integer
- `startAt` string, date-time
- `endAt` string, date-time
- `clientId` string
- `messageId` string

## Response `200`

History retrieved successfully

- ChatHistoryResponse
  - `pagination` Pagination
    - `limit` integer
    - `page` integer
    - `total` integer
    - `offset` integer
    - `totalPages` integer
  - `_metadata` object
  - `results` ChatMessage[]
    - `recipient` object
      - `id` string
      - `names` string
    - `sender` object
      - `id` string
      - `name` string
      - `type` string
    - `by` 'bot' | 'user'
    - `messageId` string
    - `status` string
    - `bubble` object
      - `type` string
      - `text` string
      - `mediaUrl` string
    - `createdAt` string, date-time

## Other responses

- `401` — Unauthorized - Invalid authentication credentials
- `404` — Not found - Resource not found
- `422` — Unprocessable entity - Validation error

---

[API](https://skmtc.net/jelou/apis/jelou-api.md) · [All operations](https://skmtc.net/jelou/apis/jelou-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/jelou/jelou-api/revisions/845ce127d94a/schema)
