---
title: "List messages by chat"
method: GET
path: "/v2/messages/chat/{chatId}"
tags: ["Messages"]
---

# List messages by chat

`GET /v2/messages/chat/{chatId}`

Retrieve a paginated list of messages for a specific chat (WHATSAPP_OFFICIAL, WHATSAPP or INSTAGRAM). Messages are sorted by created_at descending.

## Path parameters

- `chatId` string, uuid, required

## Query parameters

- `limit` integer
- `offset` integer
- `page` integer
- `content_type` 'TEXT' | 'IMAGE' | 'AUDIO' | 'VIDEO' | 'DOCUMENT'
- `created_at_start` string, date-time
- `created_at_end` string, date-time
- `updated_at_start` string, date-time
- `updated_at_end` string, date-time

## Headers

- `api-token` string, required

## Response `200`

A paginated list of messages

- object — V2 paginated response with snake_case keys
  - `status` integer — Response status
  - `total_count` integer — Total items based on current filters
  - `page` integer — Current page
  - `total_pages` integer — Total pages based on current filters
  - `has_next` boolean — Indicates that has next page
  - `has_previous` boolean — Indicates that has previous page
  - `data` Message[]
    - `id` string, uuid
    - `created_at` string, date-time
    - `updated_at` string, date-time
    - `chat_id` string, uuid, nullable
    - `user_id` string, uuid, nullable
    - `content` string
    - `type` 'USER' | 'CUSTOMER' | 'EVENT' | 'NOTE'
    - `sent` boolean
    - `seen` boolean
    - `delivered` boolean
    - `content_type` string
    - `content_url` string, nullable
    - `external_id` string, nullable
    - `content_object` object, nullable
    - `content_action` object, nullable
    - `status` 'QUEUED' | 'SENT' | 'DELIVERED' | 'READ' — Derived from sent/delivered/seen flags
    - `source` string, nullable — Origin of the message (e.g. API, CAMPAIGN, WEB)

## Other responses

- `400` — Invalid UUID format
- `401` — Authentication error - invalid or missing api-token

---

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