Use the Google Chat REST API

The Google Chat REST API provides programmatic, RESTful access to Chat resources like messages, spaces, and attachments.

To call the Google Chat REST API, authenticate with user or service account credentials.

For details, see the reference documentation or go directly to the documentation for specific methods:

Locating the discovery document

The discovery document for this API is located at the following URL: