CardWithId

A card in a Google Chat message.

Chat apps can create cards with app authentication. As part of the Developer Preview Program, if your Chat app authenticates as a 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.

Design and preview cards with the Card Builder.

Open the Card Builder

JSON representation
{
  "cardId": string,
  "card": {
    object (Card)
  },
  "ownerUser": {
    object (User)
  }
}
Fields
cardId

string

Required if the message contains multiple cards. A unique identifier for a card in a message.

card

object (Card)

A card. Maximum size is 32 KB.

ownerUser

object (User)

Output only. The app that owns the card.