Managing landingpages

Reading a collection of landing pages

Endpoint: GET /v2/landings

This endpoint provides you with a collection of your landing pages. See the data type definition below..

Read an individual landing page

Endpoint: Get /v2/landings/{landingId}

This endpoint gives you a single specific landing page.

Update a landing page

Endpoint: PUT /v2/landings/{landingId}

This endpoint allows you to update a specific landing page, change the stored data. Everything except elements, views and links are replaced with the new data.

Create a landing page

Endpoint: POST /v2/landings

This endpoint allows you to create a new landing page.

Delete landing page

Endpoint: POST /v2/landings/{landingId}

This endpoint allows you to delete a specific landing page.

The data type

{ "id": "615d9900792a81c7e32841ee", "name": "Welcome Page", "views": { "2021": 6, "2021-10": 4, "2021-10-19": 2, "2021- 10-19 09:00:00": 1, "2021-10-19 11:00:00": 1, "2021-10-22": 2, "2021-10-22 15:00:00": 2, "2021-11": 2, "2021-11-22": 2, "2021-11-22 05:00:00": 2 }, "link": "https://landing.ip1.net /615d9900792a81c7e32841ee", "shortLink": "https://url.ip1.net/sdkkas", "lastModified": "2021-10-06T12:56:30.854Z", "elements": [ { "type": " Title", "id": "615d9a0b792a81c7e32841ef", "order": 0, "backgroundColor": "#f7f7f7", "foregroundColor": "#111", "padding": "2", "margin": "0", " textAlignment": "Center", "font": "Roboto", "content": "Welcome to the Landing", "level": 1, "bold": false, "italic": false, "underline": false } ] }

id

The ID of the landing page, used to reference it..

name

The name of the landing page.

views

The number of times the landing page has been viewed by end users. A dictionary with keys as parts of timestamps (year, month, day, hour), and values as number of times the landing page has been viewed by end users during that part of time. Example below:

{ "2021": 6, "2021-10": 4, "2021-10-19": 2, "2021-10-19 09:00:00": 1, "2021-10-19 11:00: 00": 1, "2021-10-22": 2, "2021-10-22 15:00:00": 2, "2021-11": 2, "2021-11-22": 2, "2021 -11-22 05:00:00": 2 }

The link to where the page can be viewed..

A shorter link that redirects to linkThis one is used in SMS campaigns.

lastModified

Timestamp of last modification to the landing page.

elements

A collection of the content elements on the landing page. More on these in "Element types". Manage page elements.