> ## 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 Spaces

Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent.

<Note>
  External Documentation

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

## Basic Parameters

<div className="integrations-table">
  | Parameter  | Description                                                                                                                                                                                                                                                                                                                                                                            |
  | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Filter     | A query filter. You can filter spaces by the space type<br />To filter by space type, you must specify valid enum value, such as SPACE or GROUP\_CHAT (the spaceType can't be SPACE\_TYPE\_UNSPECIFIED).<br />To query for multiple space types, use the OR operator.<br /><br />For example:<br />spaceType = "SPACE"<br />spaceType = "GROUP\_CHAT" OR spaceType = "DIRECT\_MESSAGE" |
  | Page Size  | The maximum number of spaces to return. The service might return fewer than this value. If unspecified, at most 100 spaces 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.                                                                                                                                     |
  | Page Token | A page token, received from a previous list spaces call. Provide this parameter to retrieve the subsequent page.<br />When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results.                                                                                                                  |
</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. |
</div>

## Example Output

```json theme={"dark"}
{
	"spaces": [
		{
			"name": "<string>",
			"type": "<string>",
			"displayName": "<string>",
			"spaceThreadingState": "<string>",
			"spaceType": "<string>",
			"spaceDetails": {
				"description": "<string>"
			},
			"spaceHistoryState": "<string>",
			"createTime": "2020-02-19T23:22:03",
			"lastActiveTime": "2023-12-29T21:41:46",
			"membershipCount": {
				"joinedDirectHumanUserCount": 568
			},
			"spaceUri": "<string>"
		}
	]
}
```

## Workflow Library Example

[List Spaces with Google Chat and Send Results Via Email](https://library.blinkops.com/workflows/list-spaces-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-spaces-with-google-chat-and-send-results-via-email/canvas" />
</div>
