---
title: "GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages"
method: GET
path: "/v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages"
tags: ["ChatV2Message"]
---

# GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages

`GET /v2/Services/{ServiceSid}/Channels/{ChannelSid}/Messages`

## Path parameters

- `ServiceSid` string, required
- `ChannelSid` string, required

## Query parameters

- `Order` 'asc' | 'desc'
- `PageSize` integer
- `Page` integer
- `PageToken` string

## Response `200`

OK

- object
  - `messages` ChatV2ServiceChannelMessage[]
    - `sid` string, nullable — The unique string that we created to identify the Message resource.
    - `account_sid` string, nullable — The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Message resource.
    - `attributes` string, nullable — The JSON string that stores application-specific data. If attributes have not been set, `{}` is returned.
    - `service_sid` string, nullable — The SID of the [Service](https://www.twilio.com/docs/chat/rest/service-resource) the Message resource is associated with.
    - `to` string, nullable — The SID of the [Channel](https://www.twilio.com/docs/chat/channels) that the message was sent to.
    - `channel_sid` string, nullable — The SID of the [Channel](https://www.twilio.com/docs/chat/channels) the Message resource belongs to.
    - `date_created` string, date-time, nullable — The date and time in GMT when the resource was created specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    - `date_updated` string, date-time, nullable — The date and time in GMT when the resource was last updated specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
    - `last_updated_by` string, nullable — The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable.
    - `was_edited` boolean, nullable — Whether the message has been edited since it was created.
    - `from` string, nullable — The [Identity](https://www.twilio.com/docs/chat/identity) of the message's author. The default value is `system`.
    - `body` string, nullable — The content of the message.
    - `index` integer — The index of the message within the [Channel](https://www.twilio.com/docs/chat/channels). Indices may skip numbers, but will always be in order of when the message was received.
    - `type` string, nullable — The Message type. Can be: `text` or `media`.
    - `media` unknown
    - `url` string, uri, nullable — The absolute URL of the Message resource.
  - `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

---

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