---
title: "Retrieve all messages in a conversation."
method: GET
path: "/v1/conversations/{conversation_id}/messages"
tags: ["beta.conversations"]
---

# Retrieve all messages in a conversation.

`GET /v1/conversations/{conversation_id}/messages`

Given a conversation_id retrieve all the messages belonging to that conversation. This is similar to retrieving all entries except we filter the messages only.

## Path parameters

- `conversation_id` string, required — ID of the conversation from which we are fetching messages.

## Response `200`

Successful Response

- ConversationMessages — Similar to the conversation history but only keep the messages
  - `object` 'conversation.messages'
  - `conversation_id` string, required
  - `messages` union[], required
    - union
      - MessageInputEntry — Representation of an input message inside the conversation.
        - `object` 'entry'
        - `type` 'message.input'
        - `created_at` string, date-time
        - `completed_at` string, date-time, nullable
        - `id` string
        - `role` 'assistant' | 'user', required
        - `content` union, required
          - string
          - union[]
            - union
              - …
        - `prefix` boolean
      - MessageOutputEntry
        - `object` 'entry'
        - `type` 'message.output'
        - `created_at` string, date-time
        - `completed_at` string, date-time, nullable
        - `agent_id` string, nullable
        - `model` string, nullable
        - `id` string
        - `role` 'assistant'
        - `content` union, required
          - string
          - union[]
            - union
              - …

## Other responses

- `422` — Validation Error

---

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