---
title: "getConversationMessages - Get messages for a conversation"
method: GET
path: "/conversations/{conversationId}"
tags: ["Conversations"]
---

# getConversationMessages - Get messages for a conversation

`GET /conversations/{conversationId}`

<div class="extension-title">Description</div>

Returns messages of a conversation, ordered by channel creation date descending.

<div class="api-description-extension">
</div>

## Path parameters

- `conversationId` string, required

## Query parameters

- `message_after` string, date-time

## Response `200`

Messages for the conversation

- ConversationMessagesResponse
  - `messages` MessageResponse[], required — List of messages in the conversation
    - `attachments` MessageAttachment[] — List of file attachments on this message
      - `filename` string, required — Original filename of the attachment
      - `id` string, required — Unique identifier of the attachment in Connect
      - `size_in_bytes` integer, required — Size of the attachment in bytes
    - `body` string, required — Content of the message
    - `channel_created_at` string, date-time, required — Date and time when the message was created on the channel
    - `channel_message_id` string, required — Unique identifier of the message on the channel
    - `created_at` string, date-time, required — Date and time when the message was stored in Connect
    - `id` string, required — Unique identifier of the message in Connect
    - `sender` MessageSender, required
      - `id` string — Unique identifier of the sender. Null for type `CUSTOMER`
      - `name` string, required — Display name of the sender
      - `type` string, required — Type of the sender Enum: `"CUSTOMER"`, `"STORE"`, `"CHANNEL"`
    - `visible_to_customer` boolean — Whether the message is visible to the customer or not. When false the message is only visible to you and the channel. Note that when using createMessage API, the message is always sent to the customer.

## Other responses

- `404` — Conversation not found or anonymized

---

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