---
title: "Obter histórico de chat"
method: GET
path: "/{scope_id}/chats/{conversation_id}/history"
---

# Obter histórico de chat

`GET /{scope_id}/chats/{conversation_id}/history`

O método permite obter uma lista de mensagens em um chat específico.

## Path parameters

- `scope_id` string, required
- `conversation_id` string, required

## Query parameters

- `offset` integer
- `limit` integer

## Headers

- `Date` string, required
- `Content-type` string, required
- `Content-MD5` string
- `X-Signature` string

## Response `200`

200

- object
  - `messages` object[]
    - `timestamp` integer
    - `msec_timestamp` integer
    - `sender` object
      - `id` string
      - `name` string
      - `avatar` string
    - `receiver` object
      - `id` string
      - `client_id` string
      - `name` string
      - `avatar` string
      - `phone` string
    - `message` object
      - `id` string
      - `type` string
      - `text` string
      - `media` string
      - `thumbnail` string
      - `file_name` string
      - `file_size` integer

## Other responses

- `204` — 204
- `400` — 400
- `403` — 403

---

[API](https://skmtc.net/kommo/apis/referencias-de-api-da-kommo.md) · [All operations](https://skmtc.net/kommo/apis/referencias-de-api-da-kommo/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/referencias-de-api-da-kommo/revisions/98fdf05c2f5b/schema)
