---
title: "Get Messages"
method: GET
path: "/api/external/chatbot/{chatbotId}/conversations/{sessionId}/messages"
---

# Get Messages

`GET /api/external/chatbot/{chatbotId}/conversations/{sessionId}/messages`

Get Messages

## Query parameters

- `page` string
- `limit` string

## Headers

- `x-api-key` string

## Response `200`

Example

- object
  - `data` object[]
    - `attachments` object[], nullable
      - `name` string
      - `url` string
    - `content` string
    - `created_at` string
    - `id` string
    - `metadata` object
      - `mid` string
    - `migrated_data` boolean
    - `model` string, nullable
    - `provider` string, nullable
    - `sender_type` string
    - `session_id` string
    - `session_token` unknown
    - `tokens_used` number
    - `tool_calls` unknown[], nullable
      - unknown
    - `tool_results` unknown[], nullable
      - unknown
  - `metadata` object
    - `currentPage` number
    - `pageSize` number
    - `totalCount` number
    - `totalPages` number

## Changes

- **2025-03-08** `71505b70f6aa` — 1 warning, 4 info
  - removed the optional property `messages` from the response with the `200` status
  - added the new optional `query` request parameter `limit`
  - added the new optional `query` request parameter `page`
  - added the optional property `data` to the response with the `200` status
  - …1 more
- **2025-01-22** `ed6a626deb6d` — 1 info
  - endpoint added
- **2025-01-22** `9a74b2d0931e` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/dasomx/apis/okchat2-0/changes/api/external/chatbot/:chatbotId/conversations/:sessionId/messages/get.md)

---

[API](https://skmtc.dev/dasomx/apis/okchat2-0.md) · [All operations](https://skmtc.dev/dasomx/apis/okchat2-0/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dasomx/okchat2-0/revisions/53c69266d405/schema)
