Message
A message in a Google Chat space.
Google WorkspaceTeam ChatMessagingCollaborationChat AppsSpacesSlash CommandsBots
Properties
| Name | Type | Description |
|---|---|---|
| accessoryWidgets | array | Optional. One or more interactive widgets that appear at the bottom of a message. You can add accessory widgets to messages that contain text, cards, or both text and cards. Not supported for messages |
| thread | object | The thread the message belongs to. For example usage, see [Start or reply to a message thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread). |
| elements | object | Optional. Additional message components, including inline `citations` (where each citation is associated with a specific portion of the message text) and `cited_sources` (which are general references |
| slashCommand | object | Output only. Slash command information, if applicable. |
| emojiReactionSummaries | array | Output only. The list of emoji reaction summaries on the message. |
| quotedMessageMetadata | object | Optional. Information about a message that another message quotes. When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. Howev |
| argumentText | string | Output only. Plain-text body of the message with all Chat app mentions stripped out. |
| actionResponse | object | Input only. Parameters that a Chat app can use to configure how its response is posted. |
| cards | array | Deprecated: Use `cards_v2` instead. Rich, formatted, and interactive cards that you can use to display UI elements such as: formatted texts, buttons, and clickable images. Cards are normally displayed |
| attachment | array | Optional. User-uploaded attachment. |
| attachedGifs | array | Output only. GIF images that are attached to the message. |
| space | object | Output only. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output only populates the [space](https://developers.google. |
| cardsV2 | array | Optional. An array of [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). Chat apps can create cards with [app authentication](https://developers.google.com/workspace/ch |
| name | string | Identifier. Resource name of the message. Format: `spaces/{space}/messages/{message}` Where `{space}` is the ID of the space where the message is posted and `{message}` is a system-assigned ID for the |
| formattedText | string | Output only. Contains the message `text` with markups added to communicate formatting. This field might not capture all formatting visible in the UI, but includes the following: * [Markup syntax](http |
| lastUpdateTime | string | Output only. The time at which the message was last edited by a user. If the message has never been edited, this field is empty. |
| createTime | string | Optional. Immutable. For spaces created in Chat, the time at which the message was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to |
| fallbackText | string | Optional. A plain-text description of the message's cards, used when the actual cards can't be displayed—for example, mobile notifications. |
| matchedUrl | object | Output only. A URL in the Chat message `text` field that matches a link preview pattern. For more information, see [Preview links](https://developers.google.com/workspace/chat/preview-links). |
| privateMessageViewer | object | Optional. Immutable. Input for creating a message, otherwise output only. The user that can view the message. When set, the message is private and only visible to the specified user and the Chat app. |
| text | string | Optional. Plain-text body of the message. The first link to an image, video, or web page generates a [preview chip](https://developers.google.com/workspace/chat/preview-links). You can also [@mention |
| deletionMetadata | object | Output only. Information about a deleted message. A message is deleted when `delete_time` is set. |
| silent | boolean | Output only. Whether this is a silent message. Silent messages are messages where Chat suppresses push notifications for recipients. |
| threadReply | boolean | Output only. When `true`, the message is a response in a reply thread. When `false`, the message is visible in the space's top-level conversation as either the first message of a thread or a message w |
| deleteTime | string | Output only. The time at which the message was deleted in Google Chat. If the message is never deleted, this field is empty. |
| markupSyntax | string | Optional. Specifies how the server interprets the message `text` field content when creating a message or updating the `text` field of a message. When calling `UpdateMessage`, set `markup_syntax` and |
| clientAssignedMessageId | string | Optional. A custom ID for the message. You can use field to identify a message, or to get, delete, or update a message. To set a custom ID, specify the [`messageId`](https://developers.google.com/work |
| sender | object | Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output only populates the |
| annotations | array | Output only. 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 |
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-message-schema.json",
"title": "Message",
"description": "A message in a Google Chat space.",
"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/Message",
"type": "object",
"properties": {
"accessoryWidgets": {
"description": "Optional. One or more interactive widgets that appear at the bottom of a message. You can add accessory widgets to messages that contain text, cards, or both text and cards. Not supported for messages that contain dialogs. For details, see [Add interactive widgets at the bottom of a message](https://developers.google.com/workspace/chat/create-messages#add-accessory-widgets). Creating a message with accessory widgets requires [app authentication] (https://developers.google.com/workspace/chat/authenticate-authorize-chat-app).",
"type": "array",
"items": {
"$ref": "#/$defs/AccessoryWidget"
}
},
"thread": {
"$ref": "#/$defs/Thread",
"description": "The thread the message belongs to. For example usage, see [Start or reply to a message thread](https://developers.google.com/workspace/chat/create-messages#create-message-thread)."
},
"elements": {
"$ref": "#/$defs/Elements",
"description": "Optional. Additional message components, including inline `citations` (where each citation is associated with a specific portion of the message text) and `cited_sources` (which are general references used to generate the response and are not directly linked to specific segments of the text). On input, provide `elements` when creating or updating a message. On output, both `citations` and `cited_sources` are populated when reading a message that contains them. Callers can read structured citation metadata from `elements`, while `formatted_text` also includes inline citation tags or source links depending on `markup_syntax`. These differ from `annotations`, which are output-only and offer supplementary information tied to message fragments or the entire message text."
},
"slashCommand": {
"$ref": "#/$defs/SlashCommand",
"description": "Output only. Slash command information, if applicable."
},
"emojiReactionSummaries": {
"items": {
"$ref": "#/$defs/EmojiReactionSummary"
},
"readOnly": true,
"type": "array",
"description": "Output only. The list of emoji reaction summaries on the message."
},
"quotedMessageMetadata": {
"$ref": "#/$defs/QuotedMessageMetadata",
"description": "Optional. Information about a message that another message quotes. When you create a message, you can quote messages within the same thread, or quote a root message to create a new root message. However, you can't quote a message reply from a different thread. When you update a message, you can't add or replace the `quotedMessageMetadata` field, but you can remove it. For example usage, see [Quote another message](https://developers.google.com/workspace/chat/create-messages#quote-a-message)."
},
"argumentText": {
"readOnly": true,
"description": "Output only. Plain-text body of the message with all Chat app mentions stripped out.",
"type": "string"
},
"actionResponse": {
"$ref": "#/$defs/ActionResponse",
"description": "Input only. Parameters that a Chat app can use to configure how its response is posted."
},
"cards": {
"description": "Deprecated: Use `cards_v2` instead. Rich, formatted, and interactive cards that you can use to display UI elements such as: formatted texts, buttons, and clickable images. Cards are normally displayed below the plain-text body of the message. `cards` and `cards_v2` can have a maximum size of 32 KB.",
"items": {
"$ref": "#/$defs/Card"
},
"type": "array",
"deprecated": true
},
"attachment": {
"items": {
"$ref": "#/$defs/Attachment"
},
"description": "Optional. User-uploaded attachment.",
"type": "array"
},
"attachedGifs": {
"description": "Output only. GIF images that are attached to the message.",
"readOnly": true,
"items": {
"$ref": "#/$defs/AttachedGif"
},
"type": "array"
},
"space": {
"$ref": "#/$defs/Space",
"description": "Output only. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output only populates the [space](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) `name`."
},
"cardsV2": {
"description": "Optional. An array of [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards). 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)",
"items": {
"$ref": "#/$defs/CardWithId"
},
"type": "array"
},
"name": {
"description": "Identifier. Resource name of the message. Format: `spaces/{space}/messages/{message}` Where `{space}` is the ID of the space where the message is posted and `{message}` is a system-assigned ID for the message. For example, `spaces/AAAAAAAAAAA/messages/BBBBBBBBBBB.BBBBBBBBBBB`. If you set a custom ID when you create a message, you can use this ID to specify the message in a request by replacing `{message}` with the value from the `clientAssignedMessageId` field. For example, `spaces/AAAAAAAAAAA/messages/client-custom-name`. For details, see [Name a message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message).",
"type": "string"
},
"formattedText": {
"type": "string",
"description": "Output only. Contains the message `text` with markups added to communicate formatting. This field might not capture all formatting visible in the UI, but includes the following: * [Markup syntax](https://developers.google.com/workspace/chat/format-messages) for bold, italic, strikethrough, monospace, monospace block, bulleted list, and block quote. * [User mentions](https://developers.google.com/workspace/chat/format-messages#messages-@mention) using the format ``. * Custom hyperlinks using the format `<{url}|{rendered_text}>` where the first string is the URL and the second is the rendered text—for example, ``. * Custom emoji using the format `:{emoji_name}:`—for example, `:smile:`. This doesn't apply to Unicode emoji, such as `U+1F600` for a grinning face emoji. * Bullet list items using asterisks (`*`)—for example, `* item`. For more information, see [View text formatting sent in a message](https://developers.google.com/workspace/chat/format-messages#view_text_formatting_sent_in_a_message)",
"readOnly": true
},
"lastUpdateTime": {
"readOnly": true,
"format": "google-datetime",
"description": "Output only. The time at which the message was last edited by a user. If the message has never been edited, this field is empty.",
"type": "string"
},
"createTime": {
"type": "string",
"description": "Optional. Immutable. For spaces created in Chat, the time at which the message was created. This field is output only, except when used in import mode spaces. For import mode spaces, set this field to the historical timestamp at which the message was created in the source in order to preserve the original creation time.",
"format": "google-datetime"
},
"fallbackText": {
"type": "string",
"description": "Optional. A plain-text description of the message's cards, used when the actual cards can't be displayed—for example, mobile notifications."
},
"matchedUrl": {
"$ref": "#/$defs/MatchedUrl",
"description": "Output only. A URL in the Chat message `text` field that matches a link preview pattern. For more information, see [Preview links](https://developers.google.com/workspace/chat/preview-links)."
},
"privateMessageViewer": {
"$ref": "#/$defs/User",
"description": "Optional. Immutable. Input for creating a message, otherwise output only. The user that can view the message. When set, the message is private and only visible to the specified user and the Chat app. To include this field in your request, you must call the Chat API using [app authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) and omit the following: * [Attachments](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages.attachments) For details, see [Send a message privately](https://developers.google.com/workspace/chat/create-messages#private)."
},
"text": {
"type": "string",
"description": "Optional. Plain-text body of the message. The first link to an image, video, or web page generates a [preview chip](https://developers.google.com/workspace/chat/preview-links). You can also [@mention a Google Chat user](https://developers.google.com/workspace/chat/format-messages#messages-@mention), or everyone in the space. To learn about creating text messages, see [Send a message](https://developers.google.com/workspace/chat/create-messages)."
},
"deletionMetadata": {
"$ref": "#/$defs/DeletionMetadata",
"description": "Output only. Information about a deleted message. A message is deleted when `delete_time` is set."
},
"silent": {
"readOnly": true,
"description": "Output only. Whether this is a silent message. Silent messages are messages where Chat suppresses push notifications for recipients.",
"type": "boolean"
},
"threadReply": {
"type": "boolean",
"readOnly": true,
"description": "Output only. When `true`, the message is a response in a reply thread. When `false`, the message is visible in the space's top-level conversation as either the first message of a thread or a message with no threaded replies. If the space doesn't support reply in threads, this field is always `false`."
},
"deleteTime": {
"description": "Output only. The time at which the message was deleted in Google Chat. If the message is never deleted, this field is empty.",
"readOnly": true,
"type": "string",
"format": "google-datetime"
},
"markupSyntax": {
"type": "string",
"description": "Optional. Specifies how the server interprets the message `text` field content when creating a message or updating the `text` field of a message. When calling `UpdateMessage`, set `markup_syntax` and `text` on the `Message` resource and include `text` (not `markup_syntax`) in `update_mask`.",
"enum": [
"MARKUP_SYNTAX_UNSPECIFIED",
"MARKUP_SYNTAX_CHAT",
"MARKUP_SYNTAX_MARKDOWN"
]
},
"clientAssignedMessageId": {
"type": "string",
"description": "Optional. A custom ID for the message. You can use field to identify a message, or to get, delete, or update a message. To set a custom ID, specify the [`messageId`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces.messages/create#body.QUERY_PARAMETERS.message_id) field when you create the message. For details, see [Name a message](https://developers.google.com/workspace/chat/create-messages#name_a_created_message)."
},
"sender": {
"$ref": "#/$defs/User",
"description": "Output only. The user who created the message. If your Chat app [authenticates as a user](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user), the output only populates the [user](https://developers.google.com/workspace/chat/api/reference/rest/v1/User) `name` and `type` fields for both internal and external users, unless they are members of the space or have a prior affinity, like a direct message (DM) conversation, with the calling user."
},
"annotations": {
"readOnly": true,
"items": {
"$ref": "#/$defs/Annotation"
},
"type": "array",
"description": "Output only. 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."
}
},
"$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": "Re
# --- truncated at 32 KB (172 KB total) ---
# Full source: https://artifacts.apis.io/google-chat-integrations-for-workspace/json-schema/google-chat-integrations-for-workspace-message-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
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-chat-integrations-for-workspace-message"
All schemas
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.