---
title: "List messages"
method: GET
path: "/v1/Sessions/{sessionId}/Messages"
---

# List messages

`GET /v1/Sessions/{sessionId}/Messages`

## Request

- Base URL: `https://assistants.twilio.com`
- URL: `https://assistants.twilio.com/v1/Sessions/{sessionId}/Messages`
- Auth: HTTP basic

List messages

## Path parameters

- `sessionId` string, required

## Query parameters

- `Page` integer
- `PageSize` integer
- `PageToken` string

## Response `200`

OK

- object
  - `messages` AssistantsV1ServiceMessage[]
    - `id` string: The message ID.
    - `account_sid` string: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource.
    - `assistant_id` string: The Assistant ID.
    - `session_id` string: The Session ID.
    - `identity` string: The identity of the user.
    - `role` string: The role of the user associated with the message.
    - `content` object: The content of the message.
    - `meta` object: The metadata of the message.
    - `date_created` string, date-time: The date and time in GMT when the Message was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    - `date_updated` string, date-time: The date and time in GMT when the Message was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
  - `meta` object
    - `first_page_url` string, uri
    - `key` string
    - `next_page_url` string, uri, nullable
    - `page` integer
    - `page_size` integer
    - `previous_page_url` string, uri, nullable
    - `url` string, uri

## Changes

- **2025-05-13** (v1) `0852198458a0`: 2 info
  - the `messages/items/assistant_id` response's property pattern was changed from `^aia_asst_*$` to `^aia_asst_.+$` for the status `200`
  - the `messages/items/id` response's property pattern was changed from `^aia_msg_*$` to `^aia_msg_.+$` for the status `200`

[Operation history](https://skmtc.dev/twilio/apis/assistants-v1/changes/v1/Sessions/:sessionId/Messages/get.md)

---

[API](https://skmtc.dev/twilio/apis/assistants-v1.md) - [All operations](https://skmtc.dev/twilio/apis/assistants-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/twilio/apis/assistants-v1/revisions/c5ec7f024ee9?raw)
