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 nameDescription of the projectRequiredTypeExample
messageIdMessage ID.YesQuery Parameter65eb3d14f1234567890abcdefHello.

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 nameDescription of the projectTypeExample
idSuggestion/button ID.string65eb3d14f1234567890abcdefHello.
messageIdMessage IDstring65eb3d14f1234567890abcdef
typeType of suggestion/buttonstringPhone
orderButton layout on the card.Integer0
textThe text on the Suggestion/button.string”Call us”
postbackDataThe code that is sent to your webhook on click.string”call_button_clicked”
phone numberPhone number (Tied to type 4)string”46101606060”
fallbackUrlFallback URL if functionality is not supportedURI”https://site.se/contact”