AI-generated Key Takeaways
- 
          The Google Chat API enables the development of Chat apps to integrate services with Google Chat. 
- 
          It allows management of Chat resources such as spaces, members, and messages through various REST resources. 
- 
          Developers can leverage client libraries or utilize the provided discovery document and service endpoint for API requests. 
- 
          Features like custom emojis and space notification settings are currently in Developer Preview and may be subject to change. 
- 
          The API facilitates actions like creating, reading, updating, and deleting Chat entities and provides access to user read states and space events. 
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.
- REST Resource: v1.customEmojis
- REST Resource: v1.media
- REST Resource: v1.spaces
- REST Resource: v1.spaces.members
- REST Resource: v1.spaces.messages
- REST Resource: v1.spaces.messages.attachments
- REST Resource: v1.spaces.messages.reactions
- REST Resource: v1.spaces.spaceEvents
- REST Resource: v1.users.spaces
- REST Resource: v1.users.spaces.spaceNotificationSetting
- REST Resource: v1.users.spaces.threads
Service: chat.googleapis.com
To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.
Discovery document
A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:
Service endpoint
A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:
- https://chat.googleapis.com
REST Resource: v1.customEmojis
| Methods | |
|---|---|
| create | POST /v1/customEmojisCreates a custom emoji. | 
| delete | DELETE /v1/{name=customEmojis/*}Deletes a custom emoji. | 
| get | GET /v1/{name=customEmojis/*}Returns details about a custom emoji. | 
| list | GET /v1/customEmojisLists custom emojis visible to the authenticated user. | 
REST Resource: v1.media
| Methods | |
|---|---|
| download | GET /v1/media/{resourceName=**}Downloads media. | 
| upload | POST /upload/v1/{parent=spaces/*}/attachments:uploadUploads an attachment. | 
REST Resource: v1.spaces
| Methods | |
|---|---|
| completeImport | POST /v1/{name=spaces/*}:completeImportCompletes the import process for the specified space and makes it visible to users. | 
| create | POST /v1/spacesCreates a space. | 
| delete | DELETE /v1/{name=spaces/*}Deletes a named space. | 
| findDirectMessage | GET /v1/spaces:findDirectMessageReturns the existing direct message with the specified user. | 
| findGroupChats | GET /v1/spaces:findGroupChatsReturns all spaces with spaceType == GROUP_CHAT, whose human memberships contain exactly the calling user, and the users specified inFindGroupChatsRequest.memberships. | 
| get | GET /v1/{name=spaces/*}Returns details about a space. | 
| list | GET /v1/spacesLists spaces the caller is a member of. | 
| patch | PATCH /v1/{space.name=spaces/*}Updates a space. | 
| search | GET /v1/spaces:searchReturns a list of spaces in a Google Workspace organization based on an administrator's search. | 
| setup | POST /v1/spaces:setupCreates a space and adds specified users to it. | 
REST Resource: v1.spaces.members
| Methods | |
|---|---|
| create | POST /v1/{parent=spaces/*}/membersCreates a membership for the calling Chat app, a user, or a Google Group. | 
| delete | DELETE /v1/{name=spaces/*/members/*}Deletes a membership. | 
| get | GET /v1/{name=spaces/*/members/*}Returns details about a membership. | 
| list | GET /v1/{parent=spaces/*}/membersLists memberships in a space. | 
| patch | PATCH /v1/{membership.name=spaces/*/members/*}Updates a membership. | 
REST Resource: v1.spaces.messages
| Methods | |
|---|---|
| create | POST /v1/{parent=spaces/*}/messagesCreates a message in a Google Chat space. | 
| delete | DELETE /v1/{name=spaces/*/messages/*}Deletes a message. | 
| get | GET /v1/{name=spaces/*/messages/*}Returns details about a message. | 
| list | GET /v1/{parent=spaces/*}/messagesLists messages in a space that the caller is a member of, including messages from blocked members and spaces. | 
| patch | PATCH /v1/{message.name=spaces/*/messages/*}Updates a message. | 
| update | PUT /v1/{message.name=spaces/*/messages/*}Updates a message. | 
REST Resource: v1.spaces.messages.attachments
| Methods | |
|---|---|
| get | GET /v1/{name=spaces/*/messages/*/attachments/*}Gets the metadata of a message attachment. | 
REST Resource: v1.spaces.messages.reactions
| Methods | |
|---|---|
| create | POST /v1/{parent=spaces/*/messages/*}/reactionsCreates a reaction and adds it to a message. | 
| delete | DELETE /v1/{name=spaces/*/messages/*/reactions/*}Deletes a reaction to a message. | 
| list | GET /v1/{parent=spaces/*/messages/*}/reactionsLists reactions to a message. | 
REST Resource: v1.spaces.spaceEvents
| Methods | |
|---|---|
| get | GET /v1/{name=spaces/*/spaceEvents/*}Returns an event from a Google Chat space. | 
| list | GET /v1/{parent=spaces/*}/spaceEventsLists events from a Google Chat space. | 
REST Resource: v1.users.spaces
| Methods | |
|---|---|
| getSpaceReadState | GET /v1/{name=users/*/spaces/*/spaceReadState}Returns details about a user's read state within a space, used to identify read and unread messages. | 
| updateSpaceReadState | PATCH /v1/{spaceReadState.name=users/*/spaces/*/spaceReadState}Updates a user's read state within a space, used to identify read and unread messages. | 
REST Resource: v1.users.spaces.spaceNotificationSetting
| Methods | |
|---|---|
| get | GET /v1/{name=users/*/spaces/*/spaceNotificationSetting}Gets the space notification setting. | 
| patch | PATCH /v1/{spaceNotificationSetting.name=users/*/spaces/*/spaceNotificationSetting}Updates the space notification setting. | 
REST Resource: v1.users.spaces.threads
| Methods | |
|---|---|
| getThreadReadState | GET /v1/{name=users/*/spaces/*/threads/*/threadReadState}Returns details about a user's read state within a thread, used to identify read and unread messages. |