Banner in-app made of one or more slides.

One item in media.items is a single card; more than one is a carousel. A carousel still has type: "Message" — use media.items.length to tell them apart.

{
"type": "Message",
"style": {
"position": "center",
"backgroundColor": "#2d2020",
"backgroundImage": null,
"borderColor": "#1953c8",
"shadow": true,
"titleColor": "#901d1d",
"bodyColor": "#901d1d"
},
"expiration": { "date": "", "hours": "", "minutes": "" },
"media": {
"position": "TOP",
"items": [
{
"image": "https://img.cdndsgni.com/preview/12138337.jpg",
"imageType": "fill",
"content": { "title": "Title 1", "body": "Message 1" },
"actions": {
"backgroundClick": null,
"buttons": [
{
"text": "Open",
"style": { "backgroundColor": "#3B82F6", "textColor": "#FFFFFF", "hoverColor": "#2563EB" },
"action": { "type": "deeplink", "url": "scla://run/eitri-doctor" }
}
]
}
},
{
"image": "https://img.cdndsgni.com/preview/12138337.jpg",
"imageType": "fill",
"content": { "title": "Title 2", "body": "Message 2" },
"actions": {
"backgroundClick": null,
"buttons": [
{
"text": "Metadata",
"style": { "backgroundColor": "#3B82F6", "textColor": "#FFFFFF", "hoverColor": "#2563EB" },
"action": { "type": "metadata", "metadata": { "chaveCustom 1": "valorFixoCustom" } }
},
{
"text": "Website",
"style": { "backgroundColor": "#661976", "textColor": "#a91e1e", "hoverColor": "#e5e7eb" },
"action": { "type": "weblink", "url": "https://scolados.com.br", "target": "_blank" }
}
]
}
}
]
},
"notId": "bfecaee5992301e4c5ab59da"
}
interface InngageInAppMessageCard {
    expiration: InngageInAppExpiration;
    media: { items: InngageInAppMediaItem[]; position: string };
    notId: string;
    style: InngageInAppStyle;
    type: "Message";
}

Hierarchy (View Summary)

Properties

Expiration of the in-app.

media: { items: InngageInAppMediaItem[]; position: string }

Type declaration

  • items: InngageInAppMediaItem[]

    Slides, in display order.

  • position: string

    Position of the media relative to the text. Observed value: "TOP".

notId: string

Identifier of this delivery in Inngage.

Style of the in-app container.

type: "Message"