Updated 15 October 2026

Cards

Build and retrieve RCS rich cards and carousels with images, titles, content, and interactive suggestions using the API.

Cards are created as part of a message through /bundles or /conversations, but you can retrieve their details afterward through these endpoints.

Retrieve all cards for a message

⚡Quick start

curl -X GET https://api.ip1.net/v3/messages/msg-12345/cards \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Request

Endpoint: /messages/{messageId}/cards

Method: GET

Request example

This request does not require a body. The message ID is passed in the URL.

https://api.ip1.net/v3/messages/65eb3d14f1234567890abcdef/cards

Request fields

Field nameDescriptionRequiredTypeExample
messageIdID of the message whose cards you want to list.YesQuery Param65eb3d14f1234567890abcdef

Response

Returns a list of the cards in the message, such as one standalone card or several cards in a carousel.

Response example

[
  {
    "id": "65eb3d14f1234567890a1b2c3d4",
    "messageId": "msg-12345",
    "type": "Standalone",
    "order": 0,
    "title": "Our big summer sale!",
    "content": "Click below to view all our great offers.",
    "mediaUrl": "https://cdn.site.se/summer-sale.jpg",
    "height": "Medium",
    "width": 1,
    "orientation": "Horizontal",
    "suggestions": [
      {
        "text": "View sale",
        "type": "OpenUrlAction",
        "url": "https://site.se/rea"
      }
    ]
  }
]

Response fields

Field nameDescriptionTypeExample
idUnique ID of the card.String65eb3d14f1234567890a1b2c3d4
messageIdID of the message that contains the card.String65eb3d14f784682890abc24f
typeCard type.String (enum)”Standalone”
orderPosition of the card.Integer0
titleCard title (maximum 100 characters).String”Our big summer sale!”
contentDescriptive text (maximum 2,000 characters).String”Klicka nedan…”
mediaUrlURL of the image or video.URI”https://cdn.se/image.jpg”
heightHeight (1=Small, 2=Medium, 3=Large).String (enum)”Medium”
widthWidth (1=Small, 2=Large).String (enum)”Large”
orientationOrientation (1=Horizontal, 2=Vertical).String (enum)”Horizontal”
suggestionsA list of buttons attached directly to the card.Array[…]

Retrieve suggestions for a specific card

Use this endpoint to retrieve only the buttons (suggestions) associated with a specific card in a message.

⚡Quick start

curl -X GET https://api.ip1.net/v3/messages/msg-123/cards/card-888/suggestions \
  -H "Authorization: Bearer YOUR_API_TOKEN"

Request

Endpoint: /messages/{messageId}/cards/{cardId}/suggestions

Method: GET

Request example

This request does not require a body. The message ID is passed in the URL.

https://api.ip1.net/v3/messages/65eb3d14f784682890abc24f/cards/65eb3d14f1234567890a1b2c3d4/suggestions

Request fields

Field nameDescriptionRequiredTypeExample
messageIdMessage ID.YesQuery Param65eb3d14f1234567890abcdef
cardIdUnique ID of the card.YesQuery Param65eb3d14f1234567890a1b2c3d4

Response

Returns a list containing all suggestions and buttons for the selected card.

Response example

[
  {
    "id": "65eb3d14f1234567890a1e2f3dg",
    "messageId": "65eb3d14f1234567890abcdef",
    "cardId": "65eb3d14f1234567890a1b2c3d4",
    "type": "DialAction",
    "order": 0,
    "text": "Call us now",
    "postbackData": "call_clicked",
    "phoneNumber": "+468123456",
  }
]

Response fields

Field nameDescriptionTypeExample
idSuggestion or button ID.String65eb3d14f1234567890abcdef
messageIdMessage IDString65eb3d14f1234567890abcdef
cardIdUnique ID of the card that the suggestion or button belongs to.String65eb3d14f1234567890a1b2c3d4
typeSuggestion or button type.String”DialAction”
orderPosition of the suggestion or button on the card.Integer0
textText displayed on the suggestion or button.String”Call us”
postbackDataCode sent to your webhook when clicked.String”call_button_clicked”
phoneNumberPhone number associated with type 4.String”+46101606060”

Want to learn more?

Read our Rich Cards guide for best practices and code examples.

RCS Rich Cards – The Complete Guide
Was this page helpful?
⌘ K