Google Chat API

Enables bots to fetch information and perform actions in Google Chat.

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

Methods
messages POST /v1/{parent=dms/*}/messages
Legacy path for creating message.
webhooks POST /v1/{parent=dms/*}/webhooks
Legacy path for creating message.

REST Resource: v1.dms.conversations

Methods
messages POST /v1/{parent=dms/*/conversations/*}/messages
Legacy path for creating message.

REST Resource: v1.media

Methods
download GET /v1/media/{resourceName=**}
Downloads media.

REST Resource: v1.rooms

Methods
messages POST /v1/{parent=rooms/*}/messages
Legacy path for creating message.
webhooks POST /v1/{parent=rooms/*}/webhooks
Legacy path for creating message.

REST Resource: v1.rooms.conversations

Methods
messages POST /v1/{parent=rooms/*/conversations/*}/messages
Legacy path for creating message.

REST Resource: v1.spaces

Methods
get GET /v1/{name=spaces/*}
Returns a space.
list GET /v1/spaces
Lists spaces the caller is a member of.
webhooks POST /v1/{parent=spaces/*}/webhooks
Legacy path for creating message.

REST Resource: v1.spaces.members

Methods
get GET /v1/{name=spaces/*/members/*}
Returns a membership.
list GET /v1/{parent=spaces/*}/members
Lists human memberships in a space.

REST Resource: v1.spaces.messages

Methods
create POST /v1/{parent=spaces/*}/messages
Creates a message.
delete DELETE /v1/{name=spaces/*/messages/*}
Deletes a message.
get GET /v1/{name=spaces/*/messages/*}
Returns 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.