Returns a message. For example usage, see Read a message.
Requires authentication. Fully supports Service account authentication.
Supports user authentication as part of the Google Workspace Developer Preview Program, which grants early access to certain features. User authentication requires the chat.messages
or chat.messages.readonly
authorization scope.
Note: Might return a message from a blocked member or space.
HTTP request
GET https://chat.googleapis.com/v1/{name=spaces/*/messages/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
name |
Required. Resource name of the message to retrieve. Format: spaces/{space}/messages/{message} If the message begins with |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of Message
.
Authorization Scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/chat.bot
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
For more information, see the Authorization guide.