AI-generated Key Takeaways
-
This request returns an event from a Google Chat space, providing the most recent version of the changed resource in the payload.
-
To get an event, the authenticated user must be a member of the space and use the
GETmethod with the specified URL structure. -
The request body should be empty, and a successful response returns a
SpaceEventobject. -
This action requires specific OAuth scopes related to Google Chat spaces, messages, memberships, and reactions for authorization.
Returns an event from a Google Chat space. The event payload contains the most recent version of the resource that changed. For example, if you request an event about a new message but the message was later updated, the server returns the updated Message resource in the event payload.
Note: The permissionSettings field is not returned in the Space object of the Space event data for this request.
Supports the following types of authentication with an authorization scope appropriate for reading the requested data:
App authentication with administrator approval in Developer Preview with one of the following authorization scopes:
https://www.googleapis.com/auth/chat.app.spaceshttps://www.googleapis.com/auth/chat.app.messages.readonlyhttps://www.googleapis.com/auth/chat.app.memberships
User authentication with one of the following authorization scopes:
https://www.googleapis.com/auth/chat.spaces.readonlyhttps://www.googleapis.com/auth/chat.spaceshttps://www.googleapis.com/auth/chat.messages.readonlyhttps://www.googleapis.com/auth/chat.messageshttps://www.googleapis.com/auth/chat.messages.reactions.readonlyhttps://www.googleapis.com/auth/chat.messages.reactionshttps://www.googleapis.com/auth/chat.memberships.readonlyhttps://www.googleapis.com/auth/chat.memberships
To get an event, the authenticated caller must be a member of the space.
For an example, see Get details about an event from a Google Chat space.
HTTP request
GET https://chat.googleapis.com/v1/{name=spaces/*/spaceEvents/*}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name |
Required. The resource name of the space event. Format: |
Request body
The request body must be empty.
Response body
If successful, the response body contains an instance of SpaceEvent.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/chat.app.membershipshttps://www.googleapis.com/auth/chat.app.messages.readonlyhttps://www.googleapis.com/auth/chat.app.spaceshttps://www.googleapis.com/auth/chat.spaceshttps://www.googleapis.com/auth/chat.spaces.readonlyhttps://www.googleapis.com/auth/chat.messageshttps://www.googleapis.com/auth/chat.messages.readonlyhttps://www.googleapis.com/auth/chat.membershipshttps://www.googleapis.com/auth/chat.memberships.readonlyhttps://www.googleapis.com/auth/chat.messages.reactionshttps://www.googleapis.com/auth/chat.messages.reactions.readonly
For more information, see the Authorization guide.