> ## 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).

## Basic Parameters

| Parameter | Description |
| - | - |
| Filter | A query filter. You can filter spaces by the space type 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). To query for multiple space types, use the OR operator. For example: spaceType = "SPACE" 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. 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. When paginating, the filter value should match the call that provided the page token. Passing a different value may lead to unexpected results. |

## Advanced Parameters

| Parameter | Description |
| - | - |
| Delegated User Override | Perform the action on behalf of another user, overriding the delegated user defined in the connection. If not specified, the delegated user is the one provided in the connection. Has no effect when using an OAuth connection. NOTE: the connection details are not edited by this input. |

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

![Workflow Library](https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max\&auto=format\&n=ojHYuDeYX5FWuN8a\&q=85\&s=b8af968e71438a9499c3223c9bd29fb2)

Preview this Workflow on desktop

[https://library.blinkops.com/workflows/list-spaces-with-google-chat-and-send-results-via-email/canvas](https://library.blinkops.com/workflows/list-spaces-with-google-chat-and-send-results-via-email/canvas)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.