Skip to main content

spaces

Overview

Namespaces
TypeResource
Idgoogleworkspace.chat.spaces

Fields

NameDatatypeDescription
namestringResource name of the space. Format: spaces/{space}
displayNamestringThe space's display name. Required when creating a space. For direct messages, this field may be empty.
singleUserBotDmbooleanOptional. Whether the space is a DM between a Chat app and a single human.
spaceDetailsobjectDetails about the space including description and rules.
spaceThreadingStatestringOutput only. The threading state in the Chat space.
threadedbooleanOutput only. Deprecated: Use spaceThreadingState instead. Whether messages are threaded in this space.
typestringOutput only. Deprecated: Use singleUserBotDm or spaceType (developer preview) instead. The type of a space.

Methods

NameAccessible byRequired ParamsDescription
getSELECTspacesIdReturns a space. Requires authentication. Fully supports service account authentication. Supports user authentication as part of the Google Workspace Developer Preview Program, which grants early access to certain features. User authentication requires the chat.spaces or chat.spaces.readonly authorization scope.
listSELECTLists spaces the caller is a member of. Requires authentication. Fully supports service account authentication. Supports user authentication as part of the Google Workspace Developer Preview Program, which grants early access to certain features. User authentication requires the chat.spaces or chat.spaces.readonly authorization scope. Lists spaces visible to the caller or authenticated user. Group chats and DMs aren't listed until the first message is sent.