If you want to retrieve only the buttons (suggestions) belonging to a specific message
⚡Quick start #
Quick Start (cURL)
Copy to clipboard
curl -X GET https://api.ip1.net/v3/messages/suggestions \
-H "Authorization: Bearer DIN_API_TOKEN"
Call #
Endpoint: /messages/{messageId}/suggestions
Methodology: GET
Example of call data #
This call requires no body. The message ID is sent in the URL.
Anropsdata (URL)
Copy to clipboard
https://api.ip1.net/v3/messages/65eb3d14f784682890abc24f/suggestions
Fields for call data #
| Field name | Description of the project | Required | Type | Example |
|---|---|---|---|---|
| messageId | Message ID. | Yes | Query Parameter | 65eb3d14f1234567890abcdefHello. |
Responsibility #
Returns a list of all suggestions/buttons for the selected card
Example of response data #
Responsdata (JSON)
Copy to clipboard
[
{
"id": "65eb3d14f1234567890a1e2f3dg",
"messageId": "65eb3d14f1234567890abcdef",
"text": "Ring oss nu",
"type": 5,
"phoneNumber": "+468123456",
"postbackData": "call_clicked"
}
]
Fields for response data #
| Field name | Description of the project | Type | Example |
| id | Suggestion/button ID. | string | 65eb3d14f1234567890abcdefHello. |
| messageId | Message ID | string | 65eb3d14f1234567890abcdef |
| type | Type of suggestion/button | string | Phone |
| order | Button layout on the card. | Integer | 0 |
| text | The text on the Suggestion/button. | string | ”Call us” |
| postbackData | The code that is sent to your webhook on click. | string | ”call_button_clicked” |
| phone number | Phone number (Tied to type 4) | string | ”46101606060” |
| fallbackUrl | Fallback URL if functionality is not supported | URI | ”https://site.se/contact” |