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 bot.

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

string

Resource name of the space, in the form "spaces/*".

Example: spaces/AAAAAAAAAAAA

type

enum (Type)

Output only. The type of a space. This is deprecated. Use singleUserBotDm instead.

singleUserBotDm

boolean

Whether the space is a DM between a bot and a single human.

threaded

boolean

Whether the messages are threaded in this space.

displayName

string

The display name (only if the space is of type ROOM). Please note that this field might not be populated in direct messages between humans.

Type

The type of a space.

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

Methods

get

Returns a space.

list

Lists spaces the caller is a member of.

webhooks

Legacy path for creating message.