SpaceEvent
An event that represents a change or activity in a Google Chat space. To learn more, see [Work with events from Google Chat](https://developers.google.com/workspace/chat/events-overview).
Properties
| Name | Type | Description |
|---|---|---|
| reactionCreatedEventData | object | Event payload for a new reaction. Event type: `google.workspace.chat.reaction.v1.created` |
| membershipBatchDeletedEventData | object | Event payload for multiple deleted memberships. Event type: `google.workspace.chat.membership.v1.batchDeleted` |
| eventTime | string | Time when the event occurred. |
| reactionBatchCreatedEventData | object | Event payload for multiple new reactions. Event type: `google.workspace.chat.reaction.v1.batchCreated` |
| reactionBatchDeletedEventData | object | Event payload for multiple deleted reactions. Event type: `google.workspace.chat.reaction.v1.batchDeleted` |
| name | string | Resource name of the space event. Format: `spaces/{space}/spaceEvents/{spaceEvent}` |
| membershipUpdatedEventData | object | Event payload for an updated membership. Event type: `google.workspace.chat.membership.v1.updated` |
| membershipDeletedEventData | object | Event payload for a deleted membership. Event type: `google.workspace.chat.membership.v1.deleted` |
| reactionDeletedEventData | object | Event payload for a deleted reaction. Event type: `google.workspace.chat.reaction.v1.deleted` |
| membershipCreatedEventData | object | Event payload for a new membership. Event type: `google.workspace.chat.membership.v1.created` |
| membershipBatchCreatedEventData | object | Event payload for multiple new memberships. Event type: `google.workspace.chat.membership.v1.batchCreated` |
| messageBatchDeletedEventData | object | Event payload for multiple deleted messages. Event type: `google.workspace.chat.message.v1.batchDeleted` |
| messageUpdatedEventData | object | Event payload for an updated message. Event type: `google.workspace.chat.message.v1.updated` |
| messageBatchCreatedEventData | object | Event payload for multiple new messages. Event type: `google.workspace.chat.message.v1.batchCreated` |
| membershipBatchUpdatedEventData | object | Event payload for multiple updated memberships. Event type: `google.workspace.chat.membership.v1.batchUpdated` |
| spaceUpdatedEventData | object | Event payload for a space update. Event type: `google.workspace.chat.space.v1.updated` |
| messageCreatedEventData | object | Event payload for a new message. Event type: `google.workspace.chat.message.v1.created` |
| spaceBatchUpdatedEventData | object | Event payload for multiple updates to a space. Event type: `google.workspace.chat.space.v1.batchUpdated` |
| messageDeletedEventData | object | Event payload for a deleted message. Event type: `google.workspace.chat.message.v1.deleted` |
| eventType | string | Type of space event. Each event type has a batch version, which represents multiple instances of the event type that occur in a short period of time. For `spaceEvents.list()` requests, omit batch even |
| messageBatchUpdatedEventData | object | Event payload for multiple updated messages. Event type: `google.workspace.chat.message.v1.batchUpdated` |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/google-chat-integrations-for-workspace/json-schema/google-chat-integrations-for-workspace-space-event-schema.json",
"title": "SpaceEvent",
"description": "An event that represents a change or activity in a Google Chat space. To learn more, see [Work with events from Google Chat](https://developers.google.com/workspace/chat/events-overview).",
"x-generated": "2026-11-11",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/google-chat-integrations-for-workspace-spaces-api-openapi.yml#/components/schemas/SpaceEvent",
"type": "object",
"properties": {
"reactionCreatedEventData": {
"$ref": "#/$defs/ReactionCreatedEventData",
"description": "Event payload for a new reaction. Event type: `google.workspace.chat.reaction.v1.created`"
},
"membershipBatchDeletedEventData": {
"$ref": "#/$defs/MembershipBatchDeletedEventData",
"description": "Event payload for multiple deleted memberships. Event type: `google.workspace.chat.membership.v1.batchDeleted`"
},
"eventTime": {
"type": "string",
"description": "Time when the event occurred.",
"format": "google-datetime"
},
"reactionBatchCreatedEventData": {
"$ref": "#/$defs/ReactionBatchCreatedEventData",
"description": "Event payload for multiple new reactions. Event type: `google.workspace.chat.reaction.v1.batchCreated`"
},
"reactionBatchDeletedEventData": {
"$ref": "#/$defs/ReactionBatchDeletedEventData",
"description": "Event payload for multiple deleted reactions. Event type: `google.workspace.chat.reaction.v1.batchDeleted`"
},
"name": {
"type": "string",
"description": "Resource name of the space event. Format: `spaces/{space}/spaceEvents/{spaceEvent}`"
},
"membershipUpdatedEventData": {
"$ref": "#/$defs/MembershipUpdatedEventData",
"description": "Event payload for an updated membership. Event type: `google.workspace.chat.membership.v1.updated`"
},
"membershipDeletedEventData": {
"$ref": "#/$defs/MembershipDeletedEventData",
"description": "Event payload for a deleted membership. Event type: `google.workspace.chat.membership.v1.deleted`"
},
"reactionDeletedEventData": {
"$ref": "#/$defs/ReactionDeletedEventData",
"description": "Event payload for a deleted reaction. Event type: `google.workspace.chat.reaction.v1.deleted`"
},
"membershipCreatedEventData": {
"$ref": "#/$defs/MembershipCreatedEventData",
"description": "Event payload for a new membership. Event type: `google.workspace.chat.membership.v1.created`"
},
"membershipBatchCreatedEventData": {
"$ref": "#/$defs/MembershipBatchCreatedEventData",
"description": "Event payload for multiple new memberships. Event type: `google.workspace.chat.membership.v1.batchCreated`"
},
"messageBatchDeletedEventData": {
"$ref": "#/$defs/MessageBatchDeletedEventData",
"description": "Event payload for multiple deleted messages. Event type: `google.workspace.chat.message.v1.batchDeleted`"
},
"messageUpdatedEventData": {
"$ref": "#/$defs/MessageUpdatedEventData",
"description": "Event payload for an updated message. Event type: `google.workspace.chat.message.v1.updated`"
},
"messageBatchCreatedEventData": {
"$ref": "#/$defs/MessageBatchCreatedEventData",
"description": "Event payload for multiple new messages. Event type: `google.workspace.chat.message.v1.batchCreated`"
},
"membershipBatchUpdatedEventData": {
"$ref": "#/$defs/MembershipBatchUpdatedEventData",
"description": "Event payload for multiple updated memberships. Event type: `google.workspace.chat.membership.v1.batchUpdated`"
},
"spaceUpdatedEventData": {
"$ref": "#/$defs/SpaceUpdatedEventData",
"description": "Event payload for a space update. Event type: `google.workspace.chat.space.v1.updated`"
},
"messageCreatedEventData": {
"$ref": "#/$defs/MessageCreatedEventData",
"description": "Event payload for a new message. Event type: `google.workspace.chat.message.v1.created`"
},
"spaceBatchUpdatedEventData": {
"$ref": "#/$defs/SpaceBatchUpdatedEventData",
"description": "Event payload for multiple updates to a space. Event type: `google.workspace.chat.space.v1.batchUpdated`"
},
"messageDeletedEventData": {
"$ref": "#/$defs/MessageDeletedEventData",
"description": "Event payload for a deleted message. Event type: `google.workspace.chat.message.v1.deleted`"
},
"eventType": {
"description": "Type of space event. Each event type has a batch version, which represents multiple instances of the event type that occur in a short period of time. For `spaceEvents.list()` requests, omit batch event types in your query filter. By default, the server returns both event type and its batch version. Supported event types for [messages](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages): * New message: `google.workspace.chat.message.v1.created` * Updated message: `google.workspace.chat.message.v1.updated` * Deleted message: `google.workspace.chat.message.v1.deleted` * Multiple new messages: `google.workspace.chat.message.v1.batchCreated` * Multiple updated messages: `google.workspace.chat.message.v1.batchUpdated` * Multiple deleted messages: `google.workspace.chat.message.v1.batchDeleted` Supported event types for [memberships](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.members): * New membership: `google.workspace.chat.membership.v1.created` * Updated membership: `google.workspace.chat.membership.v1.updated` * Deleted membership: `google.workspace.chat.membership.v1.deleted` * Multiple new memberships: `google.workspace.chat.membership.v1.batchCreated` * Multiple updated memberships: `google.workspace.chat.membership.v1.batchUpdated` * Multiple deleted memberships: `google.workspace.chat.membership.v1.batchDeleted` Supported event types for [reactions](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.reactions): * New reaction: `google.workspace.chat.reaction.v1.created` * Deleted reaction: `google.workspace.chat.reaction.v1.deleted` * Multiple new reactions: `google.workspace.chat.reaction.v1.batchCreated` * Multiple deleted reactions: `google.workspace.chat.reaction.v1.batchDeleted` Supported event types about the [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces): * Updated space: `google.workspace.chat.space.v1.updated` * Multiple space updates: `google.workspace.chat.space.v1.batchUpdated`",
"type": "string"
},
"messageBatchUpdatedEventData": {
"$ref": "#/$defs/MessageBatchUpdatedEventData",
"description": "Event payload for multiple updated messages. Event type: `google.workspace.chat.message.v1.batchUpdated`"
}
},
"$defs": {
"AccessPermissionSetting": {
"properties": {
"principals": {
"type": "array",
"items": {
"$ref": "#/$defs/Principal"
},
"description": "Optional. Unordered list. Allowed principals for this permission."
}
},
"description": "An access permission setting.",
"type": "object"
},
"AccessPermissionSettings": {
"properties": {
"viewSpaceMembershipSetting": {
"$ref": "#/$defs/AccessPermissionSetting",
"description": "Optional. Access permission setting for viewing space membership. Must be specified together with `PermissionSettings.view_space_membership` in the update mask and request body when updating who can view space membership. When granting view access to a target audience, you must also grant `PermissionSettings.view_space_membership` to all members in the same request. To remove an existing target audience (for example, to restrict view access to space managers or assistant managers only), specify an empty `AccessPermissionSetting` (with no `principals`)."
},
"discoverSpaceSetting": {
"$ref": "#/$defs/AccessPermissionSetting",
"description": "Optional. Access permission setting for discovering the space."
},
"joinSpaceSetting": {
"$ref": "#/$defs/AccessPermissionSetting",
"description": "Optional. Access permission setting for joining the space."
}
},
"description": "Access permission settings for a space.",
"type": "object"
},
"AccessSettings": {
"type": "object",
"description": "Represents the [access setting](https://support.google.com/chat/answer/11971020) of the space.",
"properties": {
"accessPermissionSettings": {
"$ref": "#/$defs/AccessPermissionSettings",
"description": "Optional. Access permission settings for the space. To set the target audience when creating a space, specify the `accessSettings.audience` field in your request."
},
"audience": {
"description": "Optional. The resource name of the [target audience](https://support.google.com/a/answer/9934697) who can discover the space, join the space, and preview the messages in the space. If unset, only users or Google Groups who have been individually invited or added to the space can access it. For details, see [Make a space discoverable to a target audience](https://developers.google.com/workspace/chat/space-target-audience). Format: `audiences/{audience}` To use the default target audience for the Google Workspace organization, set to `audiences/default`. Reading the target audience supports: - [User authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) - [App authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) with [administrator approval](https://support.google.com/a?p=chat-app-auth) with the `chat.app.spaces` scope. This field is not populated when using the `chat.bot` scope with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). Setting the target audience requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user).",
"type": "string"
},
"accessState": {
"enum": [
"ACCESS_STATE_UNSPECIFIED",
"PRIVATE",
"DISCOVERABLE"
],
"readOnly": true,
"type": "string",
"description": "Output only. Indicates the access state of the space."
}
}
},
"AccessoryWidget": {
"description": "One or more interactive widgets that appear at the bottom of a message. For details, see [Add interactive widgets at the bottom of a message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets).",
"type": "object",
"properties": {
"buttonList": {
"$ref": "#/$defs/GoogleAppsCardV1ButtonList",
"description": "A list of buttons."
}
}
},
"ActionParameter": {
"type": "object",
"description": "List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze one day, snooze next week. You might use `action method = snooze()`, passing the snooze type and snooze time in the list of string parameters.",
"properties": {
"key": {
"description": "The name of the parameter for the action script.",
"type": "string"
},
"value": {
"description": "The value of the parameter.",
"type": "string"
}
}
},
"ActionResponse": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"TYPE_UNSPECIFIED",
"NEW_MESSAGE",
"UPDATE_MESSAGE",
"UPDATE_USER_MESSAGE_CARDS",
"REQUEST_CONFIG",
"DIALOG",
"UPDATE_WIDGET"
],
"description": "Input only. The type of Chat app response."
},
"url": {
"description": "Input only. URL for users to authenticate or configure. (Only for `REQUEST_CONFIG` response types.)",
"type": "string"
},
"dialogAction": {
"$ref": "#/$defs/DialogAction",
"description": "Input only. A response to an interaction event related to a [dialog](https://developers.google.com/workspace/chat/dialogs). Must be accompanied by `ResponseType.Dialog`."
},
"updatedWidget": {
"$ref": "#/$defs/UpdatedWidget",
"description": "Input only. The response of the updated widget."
}
},
"description": "Parameters that a Chat app can use to configure how its response is posted."
},
"ActionStatus": {
"properties": {
"statusCode": {
"description": "The status code.",
"type": "string",
"enum": [
"OK",
"CANCELLED",
"UNKNOWN",
"INVALID_ARGUMENT",
"DEADLINE_EXCEEDED",
"NOT_FOUND",
"ALREADY_EXISTS",
"PERMISSION_DENIED",
"UNAUTHENTICATED",
"RESOURCE_EXHAUSTED",
"FAILED_PRECONDITION",
"ABORTED",
"OUT_OF_RANGE",
"UNIMPLEMENTED",
"INTERNAL",
"UNAVAILABLE",
"DATA_LOSS"
]
},
"userFacingMessage": {
"description": "The message to send users about the status of their request. If unset, a generic message based on the `status_code` is sent.",
"type": "string"
}
},
"description": "Represents the status for a request to either invoke or submit a [dialog](https://developers.google.com/workspace/chat/dialogs).",
"type": "object"
},
"Annotation": {
"properties": {
"userMention": {
"$ref": "#/$defs/UserMentionMetadata",
"description": "The metadata of user mention."
},
"startIndex": {
"format": "int32",
"description": "Start index (0-based, inclusive) in the plain-text message body this annotation corresponds to.",
"type": "integer"
},
"type": {
"description": "The type of this annotation.",
"enum": [
"ANNOTATION_TYPE_UNSPECIFIED",
"USER_MENTION",
"SLASH_COMMAND",
"RICH_LINK",
"CUSTOM_EMOJI"
],
"type": "string"
},
"customEmojiMetadata": {
"$ref": "#/$defs/CustomEmojiMetadata",
"description": "The metadata for a custom emoji."
},
"slashCommand": {
"$ref": "#/$defs/SlashCommandMetadata",
"description": "The metadata for a slash command."
},
"richLinkMetadata": {
"$ref": "#/$defs/RichLinkMetadata",
"description": "The metadata for a rich link."
},
"length": {
"description": "Length of the substring in the plain-text message body this annotation corresponds to. If not present, indicates a length of 0.",
"type": "integer",
"format": "int32"
}
},
"description": "Annotations can be associated with the plain-text body of the message or with chips that link to Google Workspace resources like Google Docs or Sheets with `start_index` and `length` of 0. To add basic formatting to a text message, see [Format text messages](https://developers.google.com/workspace/chat/format-messages). Example plain-text message body: ``` Hello @FooBot how are you!\" ``` The corresponding annotations metadata: ``` \"annotations\":[{ \"type\":\"USER_MENTION\", \"startIndex\":6, \"length\":7, \"userMention\": { \"user\": { \"name\":\"users/{user}\", \"displayName\":\"FooBot\", \"avatarUrl\":\"https://goo.gl/aeDtrS\", \"type\":\"BOT\" }, \"type\":\"MENTION\" } }] ```",
"type": "object"
},
"AttachedGif": {
"properties": {
"uri": {
"type": "string",
"description": "Output only. The URL that hosts the GIF image.",
"readOnly": true
}
},
"description": "A GIF image that's specified by a URL.",
"type": "object"
},
"Attachment": {
"type": "object",
"description": "An attachment in Google Chat.",
"properties": {
"downloadUri": {
"readOnly": true,
"type": "string",
"description": "Output only. The download URL which should be used to allow a human user to download the attachment. Chat apps shouldn't use this URL to download attachment content."
},
"source": {
"description": "Output only. The source of the attachment.",
"enum": [
"SOURCE_UNSPECIFIED",
"DRIVE_FILE",
"UPLOADED_CONTENT"
],
"readOnly": true,
"type": "string"
},
"contentName": {
"readOnly": true,
"description": "Output only. The original file name for the content, not the full path.",
"type": "string"
},
"contentType": {
"description": "Output only. The content type (MIME type) of the file.",
"type": "string",
"readOnly": true
},
"name": {
"description": "Identifier. Resource name of the attachment. Format: `spaces/{space}/messages/{message}/attachments/{attachment}`.",
"type": "string"
},
"thumbnailUri": {
"readOnly": true,
"description": "Output only. The thumbnail URL which should be used to preview the attachment to a human user. Chat apps shouldn't use this URL to download attachment content.",
"type": "string"
},
"driveDataRef": {
"$ref": "#/$defs/DriveDataRef",
"description": "Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API."
},
"attachmentDataRef": {
"$ref": "#/$defs/AttachmentDataRef",
"description": "Optional. A reference to the attachment data. This field is used to create or update messages with attachments, or with the media API to download the attachment data."
}
}
},
"AttachmentDataRef": {
"properties": {
"attachmentUploadToken": {
"type": "string",
"description": "Optional. Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments."
},
"resourceName": {
"type": "string",
"description": "Optional. The resource name of the attachment data. This field is used with the media API to download the attachment data."
}
},
"description": "A reference to the attachment data.",
"type": "object"
},
"Audience": {
"description": "A target audience in Google Chat. A target audience represents a group of users within a Google Workspace organization, defined by an administrator. Target audiences are used to configure access and visibility settings for resources, such as making a space discoverable to a specific group of users. For more details, see [Target audiences](https://support.google.com/a/answer/9934697) and [Make a space discoverable to a target audience](https://developers.google.com/workspace/chat/space-target-audience).",
"type": "object",
"properties": {
"name": {
"description": "The resource name of the [target audience](https://support.google.com/a/answer/9934697) who can discover or join the space. For details, see [Make a space discoverable to a target audience](https://developers.google.com/workspace/chat/space-target-audience). Format: `audiences/{audience}` To use the default target audience for the Google Workspace organization, set to `audiences/default`.",
"type": "string"
}
}
},
"Button": {
"description": "A button. Can be a text button or an image button.",
"type": "object",
"properties": {
"textButton": {
"$ref": "#/$defs/TextButton",
"description": "A button with text and `onclick` action."
},
"imageButton": {
"$ref": "#/$defs/ImageButton",
"description": "A button with image and `onclick` action."
}
}
},
"CalendarEventLinkData": {
"properties": {
"calendarId": {
"type": "string",
"description": "The [Calendar identifier](https://developers.google.com/workspace/calendar/api/v3/reference/calendars) of the linked Calendar."
},
"eventId": {
"type": "string",
"description": "The [Event identifier](https://developers.google.com/workspace/calendar/api/v3/reference/events) of the linked Calendar event."
}
},
"type": "object",
"description": "Data for Calendar event links."
},
"Card": {
"description": "A card is a UI element that can contain UI widgets such as text and images.",
"type": "object",
"properties": {
"cardActions": {
"items": {
"$ref": "#/$defs/CardAction"
},
"type": "array",
"description": "The actions of this card."
},
"name": {
"description": "Name of the card.",
"type": "string"
},
"header": {
"$ref": "#/$defs/CardHeader",
"description": "The header of the card. A header usually contains a title and an image."
},
"sections": {
"type": "array",
"description": "Sections are separated by a line divider.",
"items": {
"$ref": "#/$defs/Section"
}
}
}
},
"CardAction": {
"properties": {
"onClick": {
"$ref": "#/$defs/OnClick",
"description": "The onclick action for this action item."
},
"actionLabel": {
"description": "The label used to be displayed in the action menu item.",
"type": "string"
}
},
"type": "object",
"description": "A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser. Not supported by Google Chat apps."
},
"CardHeader": {
"properties": {
"imageUrl": {
"description": "The URL of the image in the card header.",
"type": "string"
},
"title": {
"type": "string",
"description": "The title must be specified. The header has a fixed height: if both a title and subtitle is specified, each takes up one line. If only the title is specified, it takes up both lines."
},
"imageStyle": {
"description": "The image's type (for example, square border or circular border).",
"enum": [
"IMAGE_STYLE_UNSPECIFIED",
"IMAGE",
"AVATAR"
],
"type": "string"
},
"subtitle": {
"description": "The subtitle of the card header.",
"type": "string"
}
},
"type": "object"
},
"CardWithId": {
"type": "object",
"description": "A [card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) in a Google Chat message. Chat apps can create cards with [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app). As part of the [Developer Preview Program](https://developers.google.com/workspace/preview), if your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), it can create card messages. If your Chat app is not part of Developer Preview Program, it can't create cards with user authentication. To learn how to create a message that contains cards, see [Send a message](https://developers.google.com/workspace/chat/create-messages). [Card builder](https://addons.gsuite.google.com/uikit/builder)",
"properties": {
"ownerUser": {
"$ref": "#/$defs/User",
"description": "Output only. The app that owns the card."
},
"cardId": {
"description": "Required if the message contains multiple cards. A unique identifier for a card in a message.",
"type": "string"
},
"card": {
"$ref": "#/$defs/GoogleAppsCardV1Card",
"description": "A card. Maximum size is 32 KB."
}
}
},
"ChatClientDataSourceMarkup": {
"properties": {
"spaceDataSource": {
"$ref": "#/$defs/SpaceDataSource",
"description": "Google Chat spaces that the user is a member of."
}
},
"description": "For a `SelectionInput` widget that uses a multiselect menu, a data source from Google Chat. The data source populates selection items for the multiselect menu. For example, a user can select Google Chat spaces that they're a member of. [Google Chat apps](https://developers.google.com/workspace/chat):",
"type": "object"
},
"ChatSpaceLinkData": {
"properties": {
"space": {
"description": "The space of the linked Chat space resource. Format: `spaces/{space}`",
"type": "string"
},
"thread": {
"type": "string",
"description": "The thread of the linked Chat space resource. Format: `spaces/{space}/threads/{thread}`"
},
"message": {
"description": "The message of the linked Chat space resource. Format: `spaces/{space}/messages/{message}`",
"type": "string"
}
},
"type": "object",
"description": "Data for Chat space links."
},
"Citation": {
"description": "Citations are inline references that can provide users more detailed information about the inline reference. Corresponding inline citations should be present in the message text in a markup format of `{text}`. Citations are only supported when the message's `markup_syntax` is set to `MARKDOWN`. Unreferenced citations in `Elements.citations` (those without a matching `` tag in the message text) are ignored and do not cause the message to be rejected.",
"properties": {
"id": {
"description": "Required. The ID of the citation. This ID is defined by the app creating the citation and must match the `data-id` attribute of the `` tag in the message text. Must contain only ASCII letters and numbers, and less than 63 characters.",
"type": "string"
},
"citedSources": {
"description": "Optional. A list of sources that are relevant to the citation. Sources are displayed in the citation hover card.",
"items": {
"$ref": "#/$defs/CitedSource"
},
"type": "array"
}
},
"type": "object"
},
"CitedSource": {
"properties": {
"snippet": {
"$ref": "#/$defs/Snippet",
"description": "Optional. Snippet containing information directly from the source."
},
"footer": {
"$ref": "#/$defs/Footer",
"description": "Optional. Additional information to show alongside the snippet in the form of a footer."
},
"uri": {
"description": "Required. The URI pointing to the resource referenced by this `CitedSource`.",
"type": "string"
},
"title": {
"type": "string",
"description": "Required. The plaintext title of the `CitedSource`. Does not support markdown format."
}
},
"type": "object",
"description": "A reference to a source of information."
},
"Color": {
"type": "object",
"description": "Represents a color in the RGBA color space. This representation is designed for simplicity of conversion to and from color representations in various languages over compactness. For example, the fields of this representation can be trivially provided to the constructor of `java.awt.Color` in Java; it can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha` method in iOS; and, with just a little work, it can be easily formatted into a CSS `rgba()` string in JavaScript. This reference page doesn't have information about the absolute color space that should be used to interpret the RGB value—for example, sRGB, Adobe RGB, DCI-P3, and BT.2020. By default, applications should assume the sRGB color space. When color equality needs to be decided, implementations, unless documented otherwise, treat two colors as equal if all their red, green, blue, and alpha values each differ by at most `1e-5`. Example (Java): import com.google.type.Color; // ... public static java.awt.Color fromProto(Color protocolor) { float alpha = protocolor.hasAlpha() ? protocolor.getAlpha().getValue() : 1.0; return new java.awt.Color( protocolor.getRed(), protocolor.getGreen(), protocolor.getBlue(), alpha); } public static Color toProto(java.awt.Color color) { float red = (float) color.getRed(); float green = (float) color.getGreen(); float blue = (float) color.getBlue(); float denominator = 255.0; Color.Builder resultBuilder = Color .newBuilder() .setRed(red / denominator) .setGreen(green / denominator) .setBlue(blue / denominator); int alpha = color.getAlpha(); if (alpha != 255) { result.setAlpha( FloatValue .newBuilder() .setValue(((float) alpha) / denominator) .build()); } return resultBuilder.build(); } // ... Example (iOS / Obj-C): // ... static UIColor* fromProto(Color* protocolor) { float red = [protocolor red]; float green = [protocolor green]; float blue = [protocolor blue]; FloatValue* alpha_wrapper = [protocolor alpha]; float alpha = 1.0; if (alpha_wrapper != nil) { alpha = [alpha_wrapper value]; } return [UIColor colorWithRed:red green:green blue:blue alpha:alpha]; } static Color* toProto(UIColor* color) { CGFloat red, green, blue, alpha; if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) { return nil; } Color* result = [[Color alloc] init]; [result setRed:red]; [result setGreen:green]; [result setBlue:blue]; if (alpha <= 0.9999) { [result setAlpha:floatWrapperWithValue(alpha)]; } [result autorelease]; return result; } // ... Example (JavaScript): // ... var protoToCssColor = function(rgb_color) { var redFrac = rgb_color.red || 0.0; var greenFrac = rgb_color.green || 0.0; var blueFrac = rgb_color.blue || 0.0; var red = Math.floor(redFrac * 255); var green = Math.floor(greenFrac * 255); var blue = Math.floor(blueFrac * 255); if (!('alpha' in rgb_color)) { return rgbToCssColor(red, green, blue); } var alphaFrac = rgb_color.alpha.value || 0.0; var rgbParams = [red, green, blue].join(','); return ['rgba(', rgbParams, ',', alphaFrac, ')'].join(''); }; var rgbToCssColor = function(red, green, blue) { var rgbNumber = new Number((red << 16) | (green << 8) | blue); var hexString = rgbNumber.toString(16); var missingZeros = 6 - hexString.length; var resultBuilder = ['#']; for (var i = 0; i < missingZeros; i++) { resultBuilder.push('0'); } resultBuilder.push(hexString); return resultBuilder.join(''); }; // ...",
"properties": {
"green": {
"format": "float",
"type": "number",
"description": "The amount of green in the color as a value in the interval [0, 1]."
},
"alpha": {
"description": "The fraction of this color that should be applied to the pixel. That is, the final pixel color is defined by the equation: `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)` This means that a value of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to a completely transparent color. This uses a wrapper message rather than a simple float scalar so that it is possible to distinguish between a default value and the value being unset. If omitted, this color object is rendered as a solid color (as if the alpha value had been explicitly given a value of 1.0).",
"type": "number",
"format": "float"
},
"red": {
"type": "number",
"format": "float",
"description": "The amount of red in the color as a value in the interval [0, 1]."
},
"blue": {
"type": "number",
"format": "fl
# --- truncated at 32 KB (190 KB total) ---
# Full source: https://artifacts.apis.io/google-chat-integrations-for-workspace/json-schema/google-chat-integrations-for-workspace-space-event-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
curl "https://apis.io/api/v1/json-schemas/google-chat-integrations-for-workspace-space-event"
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.