# Create cards in Herald

> Where to set card type, pinning, dismissal, categories, extras and expiry on a message variant in Herald, with the default and limit of each option and a worked example.

You set how a content card looks and how long it lives on the message variant, in a section called **Delivery options (mobile SDK)**. Agents read these options at send time, so every card an agent sends from that variant carries them.

## Before you start

- A message variant on the **content card** channel, in an agent's message manager or in a content library.
- The SDK installed in your app. See the [quickstart](/docs/overview/quickstart-ios). The SDK already reads every option on this page, so no app update is needed.

## Find the options

1. Open the variant with **Edit**. The section appears when you edit an existing variant, not while you create one.
2. Open **Delivery options (mobile SDK)**. It is collapsed by default, with a one-line summary of the choices that differ from the defaults.
3. Change the options, then choose **Save delivery options**. The variant's own **Save** does not store them. **Reset to defaults** restores every option below.

Options apply to cards sent after you save. Cards already sent keep the options they were sent with. A variant with no saved options behaves as the defaults below, so variants you wrote before 0.2 send the same cards as before.

## Options

| Option | Default | Limit | What it does |
|---|---|---|---|
| Card type | Automatic | Automatic, Classic, Captioned image or Image only | Automatic sends a captioned image card when the variant has an image, and a classic card otherwise. |
| Pinned | Off | | The default feed lists pinned cards first. See [Pinning, expiry and categories](/docs/content-cards/pinning-expiry-categories). |
| Dismissible | On | | When off, the default feed does not let the user swipe the card away. |
| Categories | None | Up to 10, each 1 to 50 characters | Labels your app can filter on. Press Enter to add one. |
| Extras | None | Up to 20 pairs; key up to 100 characters, value up to 1,000 | Key and value pairs your app reads from the card, for example to choose a layout. |
| Expires after (hours) | Never | 1 to 8,760 (one year) | The card disappears from the feed this long after it is sent. Leave it empty to never expire. |

An image-only card shows the image and nothing else, so it needs a variant with an image.

## Video

A card can show a video in place of its image. Pick one with **Choose media** (see the [media library](/docs/concepts/media-library)); the card's image is then the video's poster. Video needs SDK 0.6.0.

- **Where it plays.** Captioned-image cards show the poster with a play button ("Play video" for VoiceOver and TalkBack). A tap plays the video inline, with sound, in the platform's standard player. Classic and image-only cards show no video.
- **Autoplay.** A card sent with `videoAutoplay: true` (through the [Send API](/docs/reference/rest-endpoints) or a campaign; the editor has no switch) plays muted and looped in the SDK's `ContentCardFeed` while at least half of it is visible, and pauses when it isn't. It never autoplays when the device has Reduce Motion (iOS) or "remove animations" (Android) on. On Android an autoplaying video has no controls, and a tap opens the card's URL like any other tap on the card. On iOS autoplay only happens inside the `ContentCardFeed`; a custom UI plays nothing on its own.
- **What Herald sends.** The card gets `videoUrl`, `videoPosterUrl` (the same as `imageUrl`), `videoAutoplay` (`false` unless set) and, for a stock photo or video, `credit`.
- **Events.** `video_play` when the video starts and `video_complete` when it ends, once per play. A loop of an autoplaying video is not a new play. See [Event payload](/docs/reference/event-payload#interaction).

## Worked example

Lumen, a fitness app, wants a card that stays at the top of the feed when a user's 6-week strength plan is ready, and goes away after three days.

1. Open the variant, set the title to "Your 6-week strength plan is ready", add the plan image, and save.
2. Open **Delivery options (mobile SDK)** and set:

| Option | Value |
|---|---|
| Card type | Captioned image |
| Pinned | On |
| Dismissible | On (default) |
| Categories | `programs` |
| Expires after (hours) | 72 |

3. Choose **Save delivery options**.

An agent that sends this variant on Monday at 9:00 creates a pinned captioned image card tagged `programs`. It leaves every user's feed on Thursday at 9:00. A custom UI can show only the program cards by filtering on the `programs` category. See [Building a custom UI](/docs/content-cards/custom-ui).

## Verify it works

1. Send the variant to a test user. [Send a test from Herald](/docs/push-notifications/testing#send-a-test-from-the-mobile-sdk-card) can send a card that expires in 24 hours.
2. Open the screen with the feed. The card shows in the type you chose, in the position its pinned setting gives.
3. After the expiry time passes, refresh the feed. The card is gone.

## Troubleshooting

- **The section is missing.** The variant is on a channel that has no delivery options, or it is still being created. Save it, then edit it.
- **Save delivery options is disabled.** A field has an error, shown under it, or nothing has changed.
- **An image-only card shows nothing.** The variant has no image.

## Next

- [Pinning, expiry and categories](/docs/content-cards/pinning-expiry-categories)
- [Content cards overview](/docs/content-cards/overview)
