Overview
The Chat service provides access to Google Chat v1 API for sending messages, managing spaces, and interacting with Chat apps. API:chat (v1)
Common Use Cases
- Send messages to spaces
- List and manage spaces
- Create and manage chat apps
- Upload attachments
- Manage memberships
Helper Commands
+send
Send a plain text message to a space:
- Simple text messaging
- For cards or threaded replies, use the raw API
Command Examples
List Spaces
Example Response
Example Response
Get Space Details
Create a Space
Send a Message
Example Response
Example Response
Send a Card Message
List Messages
Update a Message
Delete a Message
Manage Memberships
List members
Add member
Remove member
Upload Attachment
React to a Message
Add reaction
List reactions
Remove reaction
Search Spaces
Message Threading
Chat supports threaded conversations. When creating a message, you can:- Start a new thread (default)
- Reply to an existing thread by passing
thread.name - Use
messageReplyOptionto control fallback behavior
Reply to thread
Resources
spaces- Chat spaces (rooms, DMs)spaces.messages- Messages in spacesspaces.members- Space membershipsspaces.messages.reactions- Message reactionsspaces.messages.attachments- Message attachmentsmedia- Upload media files
gws chat <resource> --help to see all available methods.
Related Commands
Gmail
Email communication
Calendar
Schedule meetings