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/cardsRequest fields
| Field name | Description | Required | Type | Example |
|---|---|---|---|---|
| messageId | ID of the message whose cards you want to list. | Yes | Query Param | 65eb3d14f1234567890abcdef |
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 name | Description | Type | Example |
|---|---|---|---|
| id | Unique ID of the card. | String | 65eb3d14f1234567890a1b2c3d4 |
| messageId | ID of the message that contains the card. | String | 65eb3d14f784682890abc24f |
| type | Card type. | String (enum) | ”Standalone” |
| order | Position of the card. | Integer | 0 |
| title | Card title (maximum 100 characters). | String | ”Our big summer sale!” |
| content | Descriptive text (maximum 2,000 characters). | String | ”Klicka nedan…” |
| mediaUrl | URL of the image or video. | URI | ”https://cdn.se/image.jpg” |
| height | Height (1=Small, 2=Medium, 3=Large). | String (enum) | ”Medium” |
| width | Width (1=Small, 2=Large). | String (enum) | ”Large” |
| orientation | Orientation (1=Horizontal, 2=Vertical). | String (enum) | ”Horizontal” |
| suggestions | A 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/suggestionsRequest fields
| Field name | Description | Required | Type | Example |
|---|---|---|---|---|
| messageId | Message ID. | Yes | Query Param | |
| cardId | Unique ID of the card. | Yes | Query Param | 65eb3d14f1234567890a1b2c3d4 |
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 name | Description | Type | Example |
| id | Suggestion or button ID. | String | |
| messageId | Message ID | String | 65eb3d14f1234567890abcdef |
| cardId | Unique ID of the card that the suggestion or button belongs to. | String | 65eb3d14f1234567890a1b2c3d4 |
| type | Suggestion or button type. | String | ”DialAction” |
| order | Position of the suggestion or button on the card. | Integer | 0 |
| text | Text displayed on the suggestion or button. | String | ”Call us” |
| postbackData | Code sent to your webhook when clicked. | String | ”call_button_clicked” |
| phoneNumber | Phone 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