REST Resource: spaces

Resource: Space

A space in Google Chat. Spaces are conversations between two or more users or 1:1 messages between a user and a Chat app.

JSON representation
{
  "name": string,
  "type": enum (Type),
  "spaceType": enum (SpaceType),
  "singleUserBotDm": boolean,
  "threaded": boolean,
  "displayName": string
}
Fields
name

string

Resource name of the space.

Format: spaces/{space}

type
(deprecated)

enum (Type)

Output only. Deprecated: Use singleUserBotDm or spaceType (developer preview) instead.

The type of a space.

spaceType

enum (SpaceType)

The type of space. Required when creating a space. Output only for other usage.

singleUserBotDm

boolean

Output only. Whether the space is a DM between a Chat app and a single human.

threaded

boolean

Output only. Whether messages are threaded in this space.

displayName

string

The space's display name. For direct messages between humans, this field might be empty.

Type

Deprecated: The type of a space. Use singleUserBotDm or spaceType (developer preview) instead.

Enums
TYPE_UNSPECIFIED
ROOM Conversations between two or more humans.
DM 1:1 Direct Message between a human and a Chat app, where all messages are flat. Note that this does not include direct messages between two humans.

SpaceType

The type of space. Required when creating a space. Output only for other usage.

Enums
SPACE_TYPE_UNSPECIFIED Reserved.
SPACE A place where people send messages, share files, and collaborate. A SPACE can include Chat apps.
GROUP_CHAT Group conversations between 3 or more people. A GROUP_CHAT can include Chat apps.
DIRECT_MESSAGE 1:1 messages between two humans or a human and a Chat app.

Methods

create

Creates a named space.

get

Returns a space.

list

Lists spaces the caller is a member of.

webhooks

Legacy path for creating message.