> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Messages

Lists messages in space or chat that the caller is a member of, including messages from blocked members and spaces.

<Note>
  External Documentation

  To learn more, visit the [Google Chat documentation](https://developers.google.com/chat/api/reference/rest/v1/spaces.messages/list).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                                                                                                                                               |
  | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Chat      | The resource name of the chat.<br />Format: spaces/{space}.                                                                                                                                                                                               |
  | Filter    | A query filter. You can filter messages by date (createTime) and thread (thread.name).                                                                                                                                                                    |
  | Page Size | The maximum number of messages returned. The service might return fewer messages than this value.<br />If unspecified, at most 25 are returned.<br />The maximum value is 1,000. If you use a value more than 1,000, it's automatically changed to 1,000. |
  | Read From | Choose from which space type to read messages.                                                                                                                                                                                                            |
  | Space     | The resource name of the space.<br />Format: spaces/{space}.                                                                                                                                                                                              |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter               | Description                                                                                                                                                                                                                                                                                                                  |
  | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection.<br /><br />If not specified, the delegated user is the one provided in the connection.<br /><br />Has no effect when using an OAuth connection.<br /><br />NOTE: the connection details are not edited by this input. |
  | Order By                | How the list of messages is ordered. Specify a value to order by an ordering operation. Valid ordering operation values are as follows:<br />ASC for ascending.<br />DESC for descending.<br /><br />The default ordering is `createTime ASC`.                                                                               |
</div>

## Example Output

```json theme={"dark"}
{
	"messages": [
		{
			"name": "spaces/AAAbnh123/messages/DGLE231_dsa2.DAuNixz5M_U",
			"sender": {
				"name": "users/23427349871239123",
				"type": "HUMAN"
			},
			"createTime": "2023-08-23T10:48:02.634495Z",
			"text": "hellooo",
			"thread": {
				"name": "spaces/AAAbnh123/threads/DGLE231_dsa2"
			},
			"space": {
				"name": "spaces/AAAbnh123"
			},
			"argumentText": "test",
			"emojiReactionSummaries": [
				{
					"emoji": {
						"unicode": "😅"
					},
					"reactionCount": 1
				}
			]
		}
	]
}
```

## Workflow Library Example

[List Messages with Google Chat and Send Results Via Email](https://library.blinkops.com/workflows/list-messages-with-google-chat-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-messages-with-google-chat-and-send-results-via-email/canvas" />
</div>
