Method: spaces.messages.get
HTTP request
GET https://chat.googleapis.com/v1/{name=spaces/*/messages/*}
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
name |
string
Required. Resource name of the message. Format: spaces/{space}/messages/{message} If you've set a custom ID for your message, you can use the value from the clientAssignedMessageId field for {message} . For details, see Name a message.
|
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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-22 UTC.
[null,null,["Last updated 2024-11-22 UTC."],[[["Returns detailed information about a specific message within a space."],["Requires providing the message's resource name using the format `spaces/{space}/messages/{message}`."],["Supports both app and user authentication methods for accessing message details."],["The response includes a `Message` object containing the message data if the request is successful."],["Requires specific authorization scopes like `chat.bot`, `chat.messages`, or `chat.messages.readonly`."]]],["This outlines retrieving message details using a `GET` request to `https://chat.googleapis.com/v1/{name=spaces/*/messages/*}`. The message's resource name, found in the `name` path parameter (`spaces/{space}/messages/{message}`), is required. The request body must be empty. The successful response returns a `Message` instance. Authentication is achieved through either App or User authentication, requiring one of three specified OAuth scopes. This may include message from blocked member.\n"]]