- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- Try it!
Lists reactions to a message. For an example, see List reactions for a message.
Requires user authentication.
HTTP request
GET https://chat.googleapis.com/v1/{parent=spaces/*/messages/*}/reactions
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
parent |
Required. The message users reacted to. Format: |
Query parameters
Parameters | |
---|---|
page |
Optional. The maximum number of reactions returned. The service can return fewer reactions than this value. If unspecified, the default value is 25. The maximum value is 200; values above 200 are changed to 200. |
page |
Optional. (If resuming from a previous query.) A page token received from a previous list reactions call. Provide this to retrieve the subsequent page. When paginating, the filter value should match the call that provided the page token. Passing a different value might lead to unexpected results. |
filter |
Optional. A query filter. You can filter reactions by emoji (either To filter reactions for multiple emojis or users, join similar fields with the To filter reactions by emoji and user, use the If your query uses both For example, the following queries are valid:
The following queries are invalid:
Invalid queries are rejected by the server with an |
Request body
The request body must be empty.
Response body
Response to a list reactions request.
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"reactions": [
{
object ( |
Fields | |
---|---|
reactions[] |
List of reactions in the requested (or first) page. |
next |
Continuation token to retrieve the next page of results. It's empty for the last page of results. |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/chat.messages
https://www.googleapis.com/auth/chat.messages.readonly
https://www.googleapis.com/auth/chat.messages.reactions
https://www.googleapis.com/auth/chat.messages.reactions.readonly
For more information, see the Authorization guide.