---
title: "Query Conversation Messages"
method: GET
path: "/conversations/messages"
tags: ["Conversation"]
---

# Query Conversation Messages

`GET /conversations/messages`

Used to query conversation messages

## Query parameters

- `workspace_id` string, required
- `branch_name` string, required
- `entity_type` 'branch' | 'test' | 'flow', required
- `entity_id` string, required
- `limit` integer
- `cursor` string

## Response `200`

Results of the query

- ConversationMessageQueryResult
  - `conversation_messages` ConversationMessage[] — All conversation messages that matched the query
    - `id` string — Unique ID for this conversation message
    - `conversation_id` string — The ID of the conversation associated with this message
    - `branch_name` string — The name of the branch associated with this conversation
    - `branch_id` string — The ID of the branch associated with this conversation
    - `workspace_id` string — The ID of the workspace associated with this conversation
    - `entity_type` 'branch' | 'test' | 'flow' — The type of entity associated with this conversation
    - `entity_id` string — The ID of the entity associated with this conversation (branchId, testInvariantId, flowInvarianId)
    - `content` string — The content of the conversation message
    - `created_time` integer — Time at which the conversation was created
    - `created_by_id` string — The ID of the user who created this conversation
    - `last_updated_time` integer — Time at which the conversation was created
    - `last_updated_by_id` string — The ID of the user who updated this conversation
  - `cursor` string — Cursor used for pagination

## Other responses

- `400` — Invalid or missing parameter
- `401` — User not authenticated
- `403` — User not authorized
- `default` — Unknown error

---

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