---
title: "List Run Messages"
method: GET
path: "/v1/agents/runs/{runId}/messages"
---

# List Run Messages

`GET /v1/agents/runs/{runId}/messages`

Returns a paginated list of messages produced by a run, in chronological order, with the oldest messages first.

Messages conform to the [AI SDK UIMessage format](https://ai-sdk.dev/docs/reference/ai-sdk-core/ui-message).

## Path parameters

- `runId` string, uuid, required

## Query parameters

- `since` string
- `limit` integer
- `all` boolean

## Response `200`

The page of messages, in chronological order, with the oldest messages first.

- object
  - `data` object[], required — The page of messages, in chronological order, with the oldest messages first.
    - `id` string, required
    - `createdAt` string, date-time, required
    - `message` object, required — An AI SDK response message (assistant or tool).
      - `role` 'assistant' | 'tool', required
      - `content` union, required — Plain string (assistant text) or an array of typed parts.
        - string
        - object[]
          - `type` string, required — text | reasoning | file | tool-call | tool-result
          - `text` string
          - `toolCallId` string
          - `toolName` string
          - `input` unknown
          - `output` unknown
          - `mediaType` string
          - `data` string
  - `nextSince` string, nullable, required — The `id` of the last message in `data`. Pass it back as `since` on the next request to continue paging, or to poll for new messages. `null` only when the run has no messages yet; in that case, omit `since` and retry.

---

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