> Documentation index: https://developers.google.com/workspace/chat/llms.txt

# Google Chat API

The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages.

## Service: chat.googleapis.com

The Service name `chat.googleapis.com` is needed to create RPC client stubs.

## `google.chat.v1.ChatService`

| Methods ||
|---|---|
| `` `AppendStreamMessageContent` `` | > [!WARNING] > **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview.md.txt), which grants early access to certain features. Appends content chunks to an existing stream message in a Google Chat space. |
| `` `CommitStreamMessage` `` | > [!WARNING] > **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview.md.txt), which grants early access to certain features. Commits an active stream message into a finalized message in a Google Chat space. |
| `` `CompleteImportSpace` `` | Completes the [import process](https://developers.google.com/workspace/chat/import-data.md.txt) for the specified space and makes it visible to users. |
| `` `CreateCustomEmoji` `` | Creates a custom emoji. |
| `` `CreateMembership` `` | Creates a membership for the calling Chat app, a user, or a Google Group. |
| `` `CreateMessage` `` | Creates a message in a Google Chat space. |
| `` `CreateMessagePin` `` | Creates a message pin. |
| `` `CreateReaction` `` | Creates a reaction and adds it to a message. |
| `` `CreateSection` `` | Creates a section in Google Chat. |
| `` `CreateSpace` `` | Creates a space. |
| `` `CreateStreamMessage` `` | > [!WARNING] > **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview.md.txt), which grants early access to certain features. Initiates a new stream message in a Google Chat space. |
| `` `DeleteCustomEmoji` `` | Deletes a custom emoji. |
| `` `DeleteMembership` `` | Deletes a membership. |
| `` `DeleteMessage` `` | Deletes a message. |
| `` `DeleteMessagePin` `` | Deletes a message pin. |
| `` `DeleteReaction` `` | Deletes a reaction to a message. |
| `` `DeleteSection` `` | Deletes a section of type `CUSTOM_SECTION`. |
| `` `DeleteSpace` `` | Deletes a named space. |
| `` `DeleteStreamMessage` `` | > [!WARNING] > **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview.md.txt), which grants early access to certain features. Deletes an active stream message in a Google Chat space. |
| `` `FindDirectMessage` `` | Returns the existing direct message with the specified user. |
| `` `FindGroupChats` `` | Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the calling user, and the users specified in `FindGroupChatsRequest.users`. |
| `` `GetAttachment` `` | Gets the metadata of a message attachment. |
| `` `GetAvailability` `` | Returns availability information for a human user in Google Chat. |
| `` `GetCustomEmoji` `` | Returns details about a custom emoji. |
| `` `GetMembership` `` | Returns details about a membership. |
| `` `GetMessage` `` | Returns details about a message. |
| `` `GetSpace` `` | Returns details about a space. |
| `` `GetSpaceEvent` `` | Returns an event from a Google Chat space. |
| `` `GetSpaceNotificationSetting` `` | Gets the space notification setting. |
| `` `GetSpaceReadState` `` | Returns details about a user's read state within a space, used to identify read and unread messages. |
| `` `GetThread` `` | > [!WARNING] > **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview.md.txt), which grants early access to certain features. Gets details about a thread in a 1:1 App DM space. |
| `` `GetThreadReadState` `` | Returns details about a user's read state within a thread, used to identify read and unread messages. |
| `` `ListCustomEmojis` `` | Lists custom emojis visible to the authenticated user. |
| `` `ListMemberships` `` | Lists memberships in a space. |
| `` `ListMessagePins` `` | Lists message pins in a space. |
| `` `ListMessages` `` | Lists messages in a space that the caller is a member of, including messages from blocked members and spaces. |
| `` `ListReactions` `` | Lists reactions to a message. |
| `` `ListSectionItems` `` | Lists items in a section. |
| `` `ListSections` `` | Lists sections available to the Chat user. |
| `` `ListSpaceEvents` `` | Lists events from a Google Chat space. |
| `` `ListSpaces` `` | Lists spaces the caller is a member of. |
| `` `ListThreads` `` | > [!WARNING] > **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview.md.txt), which grants early access to certain features. Lists threads in a 1:1 App DM space. |
| `` `MarkAsActive` `` | Marks user as `ACTIVE` in Google Chat. |
| `` `MarkAsAway` `` | Marks user as `AWAY` in Google Chat. |
| `` `MarkAsDoNotDisturb` `` | Marks user as `DO_NOT_DISTURB` in Google Chat. |
| `` `MoveSectionItem` `` | Moves an item from one section to another. |
| `` `PositionSection` `` | Changes the sort order of a section. |
| `` `ReplaceMessageCards` `` | Replaces the cards included in a message. |
| `` `SearchMessages` `` | Searches for messages in Google Chat that the calling user has access to. |
| `` `SearchSpaces` `` | Returns a list of spaces in a Google Workspace organization. |
| `` `SetUpSpace` `` | Creates a space and adds specified users to it. |
| `` `UpdateAvailability` `` | Updates availability information for a human user. |
| `` `UpdateMembership` `` | Updates a membership. |
| `` `UpdateMessage` `` | Updates a message. |
| `` `UpdateSection` `` | Updates a section. |
| `` `UpdateSpace` `` | Updates a space. |
| `` `UpdateSpaceNotificationSetting` `` | Updates the space notification setting. |
| `` `UpdateSpaceReadState` `` | Updates a user's read state within a space, used to identify read and unread messages. |
| `` `UpdateThread` `` | > [!WARNING] > **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview.md.txt), which grants early access to certain features. Updates a thread in a 1:1 App DM space. |
| `` `UpdateStreamMessage` `` | > [!WARNING] > **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview.md.txt), which grants early access to certain features. Updates fields in an active stream message in a Google Chat space. |
| `` `UpdateThreadReadState` `` | Updates a user's read state within a thread, used to identify read and unread messages. |