Lists spaces the caller is a member of. Requires service account authentication.
HTTP request
GET https://chat.googleapis.com/v1/spaces
The URL uses gRPC Transcoding syntax.
Query parameters
Parameters | |
---|---|
pageSize |
Optional. Requested page size. The value is capped at 1000. Server may return fewer results than requested. If unspecified, server will default to 100. |
pageToken |
Optional. A token identifying a page of results the server should return. |
Request body
The request body must be empty.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"spaces": [
{
object ( |
Fields | |
---|---|
spaces[] |
List of spaces in the requested (or first) page. |
nextPageToken |
Continuation token to retrieve the next page of results. It will be empty for the last page of results. Tokens expire in an hour. An error is thrown if an expired token is passed. |
Authorization Scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/chat.bot
For more information, see the OAuth 2.0 Overview.