Landing pages (management API)
Landing pages made in the visual builder. A design is saved as a draft until you publish it, and a landing page shows on links only when a route uses it (the route’s template is custom and its landing_page_id is the page). The blocks and templates endpoints are shared with bio pages. For what each setting does, see the user guide.
Every path also works under /v1/manage/appspaces/{appspace}, which you need when an OAuth token reaches more than one Appspace. See the management API overview for signing in, errors, dry runs and paging.
| Method | Path | What it does | Permission |
|---|---|---|---|
GET | /v1/manage/pages/blocks | The blocks pages are made of | Read |
GET | /v1/manage/pages/templates | List the builder’s templates | Read |
GET | /v1/manage/pages/templates/{template} | Get a template’s content | Read |
GET | /v1/manage/landing-pages | List landing pages | Read |
POST | /v1/manage/landing-pages | Create a landing page | Read and write |
GET | /v1/manage/landing-pages/{page} | Get a landing page | Read |
PATCH | /v1/manage/landing-pages/{page} | Change a landing page’s settings | Read and write |
DELETE | /v1/manage/landing-pages/{page} | Delete a landing page | Read and write |
GET | /v1/manage/landing-pages/{page}/preview | Preview a landing page | Read |
PUT | /v1/manage/landing-pages/{page}/content | Save a landing page’s design | Read and write |
POST | /v1/manage/landing-pages/{page}/publish | Publish a landing page | Read and write |
POST | /v1/manage/landing-pages/{page}/duplicate | Copy a landing page | Read and write |
POST | /v1/manage/landing-pages/{page}/restore | Restore a deleted landing page | Read and write |
The blocks pages are made of
Section titled “The blocks pages are made of”/v1/manage/pages/blocksPermission: Read.
Every block a landing page or bio page can hold, with its fields (kind, limits, choices), its defaults and which pages can use it, and the page settings. Generated from the visual builder’s own config, so it is exactly what the builder offers.
Response 200: the result in data.
List the builder’s templates
Section titled “List the builder’s templates”/v1/manage/pages/templatesPermission: Read.
The visual builder’s templates, without their content: id, name, category and what each looks like. Create a page from one with template; a landing page can use a bio template too.
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | landing, bio | No | Only landing page or bio page templates. |
Response 200: a page of results in data, and next_cursor for the next page (see Paging). Each item:
| Field | Type | Description |
|---|---|---|
id | string | |
name | string | |
category | string | |
description | string | |
kind | landing, bio |
Get a template’s content
Section titled “Get a template’s content”/v1/manage/pages/templates/{template}Permission: Read.
One template with its content (Puck data), to read or change before creating a page with it.
Path parameters:
| Parameter | Description |
|---|---|
template |
Response 200: the result in data.
| Field | Type | Description |
|---|---|---|
id | string | |
name | string | |
category | string | |
description | string | |
content | object |
List landing pages
Section titled “List landing pages”/v1/manage/landing-pagesPermission: Read.
The Appspace’s landing pages, oldest first, paged with cursor, each with the routes that show it. Without content: get one for that.
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | How many to return, 1 to 100 (default 50). |
cursor | string | No | From the previous page’s next_cursor, to get the page after it. |
Response 200: a page of results in data, and next_cursor for the next page (see Paging). Each item:
| Field | Type | Description |
|---|---|---|
id | string | The page’s id. Any endpoint taking {page} also takes its name. |
name | string | |
ab_eligible | boolean | |
branding | inherit, show, hide | ”Powered by Tolinku” on this page: inherit (follow the Appspace’s branding setting), show or hide. Free and the trial always show it. |
published | boolean | Whether it has published content. Links show it once a route uses it. |
has_draft | boolean | Whether there is an unpublished draft (from the builder, or saved through the API). |
draft_by | string or null | |
draft_updated_at | string or null | |
used_by_routes | array of object | Routes whose links show it (template “custom”). |
used_by_routes[].id | string | |
used_by_routes[].name | string | |
used_by_routes[].prefix | string | |
store_page | boolean | The App Store hand-off page, shown before sending people to the store; it can’t be deleted. |
created | string | |
updated_at | string | Send as expected_updated_at when changing it. |
Create a landing page
Section titled “Create a landing page”/v1/manage/landing-pagesPermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
A paid plan and a name, as the dashboard. Blank, or from a template (saved as its draft), or with content (a draft too). It shows on links once a route uses it (template “custom”, landing_page_id). Send Idempotency-Key so a retry never makes two. Content is the builder’s Puck data, checked against its blocks (GET /pages/blocks): unknown block types, fields of the wrong kind, links that could run code (javascript:, data:) and images the page can’t show are refused with 422 and each problem’s path; links that go nowhere and images from outside Media come back as warnings. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Request body (JSON):
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | A name for your team, such as “Spring sale”. Visitors don’t see it. |
ab_eligible | boolean | No | Whether it can be a version in an A/B test. Default false. |
template | string | No | Start from one of the builder’s templates, by id or name (GET /pages/templates or list_page_templates): app-download-classic, app-download-hero, app-download-bold, app-download-social, app-download-features, product-showcase, content-article, profile-card, content-event, content-recipe, referral-invite, referral-reward, referral-share, minimal-clean, minimal-store-only, minimal-notification, minimal-urgency; the bio templates work too. Saved as the page’s draft, to change and publish. Leave out for a blank page. |
content | object or string | No | Its first design, saved as a draft (instead of a template). |
Response 201: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The page’s id. Any endpoint taking {page} also takes its name. |
name | string | |
ab_eligible | boolean | |
branding | inherit, show, hide | ”Powered by Tolinku” on this page: inherit (follow the Appspace’s branding setting), show or hide. Free and the trial always show it. |
published | boolean | Whether it has published content. Links show it once a route uses it. |
has_draft | boolean | Whether there is an unpublished draft (from the builder, or saved through the API). |
draft_by | string or null | |
draft_updated_at | string or null | |
used_by_routes | array of object | Routes whose links show it (template “custom”). |
used_by_routes[].id | string | |
used_by_routes[].name | string | |
used_by_routes[].prefix | string | |
store_page | boolean | The App Store hand-off page, shown before sending people to the store; it can’t be deleted. |
created | string | |
updated_at | string | Send as expected_updated_at when changing it. |
content | object or null | The published design (Puck data), as PUT /content takes it. |
draft | object or null | The unpublished draft, if any. |
Get a landing page
Section titled “Get a landing page”/v1/manage/landing-pages/{page}Permission: Read.
One page in full: its settings, its published content and its draft (Puck data, as PUT /content takes them), and the routes that show it.
Path parameters:
| Parameter | Description |
|---|---|
page | The page: its id or name (a bio page also its address). URL-encode a name. |
Response 200: the result in data, with summary.
| Field | Type | Description |
|---|---|---|
id | string | The page’s id. Any endpoint taking {page} also takes its name. |
name | string | |
ab_eligible | boolean | |
branding | inherit, show, hide | ”Powered by Tolinku” on this page: inherit (follow the Appspace’s branding setting), show or hide. Free and the trial always show it. |
published | boolean | Whether it has published content. Links show it once a route uses it. |
has_draft | boolean | Whether there is an unpublished draft (from the builder, or saved through the API). |
draft_by | string or null | |
draft_updated_at | string or null | |
used_by_routes | array of object | Routes whose links show it (template “custom”). |
used_by_routes[].id | string | |
used_by_routes[].name | string | |
used_by_routes[].prefix | string | |
store_page | boolean | The App Store hand-off page, shown before sending people to the store; it can’t be deleted. |
created | string | |
updated_at | string | Send as expected_updated_at when changing it. |
content | object or null | The published design (Puck data), as PUT /content takes it. |
draft | object or null | The unpublished draft, if any. |
Change a landing page’s settings
Section titled “Change a landing page’s settings”/v1/manage/landing-pages/{page}Permission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Its name, A/B eligibility and “Powered by Tolinku” (branding: inherit, show or hide; hiding needs a paid plan); only what is sent changes. The design is PUT /content. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
page | The page: its id or name (a bio page also its address). URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Request body (JSON):
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | A new name. |
ab_eligible | boolean | No | Whether it can be a version in an A/B test. |
branding | inherit, show, hide | No | ”Powered by Tolinku” at the bottom of this page: “inherit” follows the Appspace’s setting (branding in get_settings), “show” always shows it, “hide” never does. Only paid plans (Standard and up) can hide it; on Free and the trial it always shows, and asking to hide it changes nothing. |
expected_updated_at | string | No | The updated_at you read. If the thing has changed since, nothing is saved and the answer is 412 precondition_failed: read it again and retry. |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The page’s id. Any endpoint taking {page} also takes its name. |
name | string | |
ab_eligible | boolean | |
branding | inherit, show, hide | ”Powered by Tolinku” on this page: inherit (follow the Appspace’s branding setting), show or hide. Free and the trial always show it. |
published | boolean | Whether it has published content. Links show it once a route uses it. |
has_draft | boolean | Whether there is an unpublished draft (from the builder, or saved through the API). |
draft_by | string or null | |
draft_updated_at | string or null | |
used_by_routes | array of object | Routes whose links show it (template “custom”). |
used_by_routes[].id | string | |
used_by_routes[].name | string | |
used_by_routes[].prefix | string | |
store_page | boolean | The App Store hand-off page, shown before sending people to the store; it can’t be deleted. |
created | string | |
updated_at | string | Send as expected_updated_at when changing it. |
content | object or null | The published design (Puck data), as PUT /content takes it. |
draft | object or null | The unpublished draft, if any. |
Delete a landing page
Section titled “Delete a landing page”/v1/manage/landing-pages/{page}Permission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Routes that show it go back to the generic page at once (and aren’t put back on restore). It goes to the trash with its draft and can be restored for 30 days; the hand-off page can’t be deleted (409). With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
page | The page: its id or name (a bio page also its address). URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
deleted | true | |
id | string | |
name | string | |
trash_id | string | |
restorable_until | string |
Preview a landing page
Section titled “Preview a landing page”/v1/manage/landing-pages/{page}/previewPermission: Read.
The page as the live renderer draws it (with a sample link), its draft or its published version, and a summary in words. Send Accept: text/html for the page itself. There is no PNG.
Path parameters:
| Parameter | Description |
|---|---|
page | The page: its id or name (a bio page also its address). URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
version | draft, published | No | Default: the draft if there is one, otherwise the published page. |
Response 200: the result in data.
| Field | Type | Description |
|---|---|---|
html | string | A whole HTML document, from the same renderer as the live page; open it in a phone-sized frame. |
version | draft, published | |
summary | string | |
png | null |
Save a landing page’s design
Section titled “Save a landing page’s design”/v1/manage/landing-pages/{page}/contentPermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Saved as the page’s draft (replacing any draft), to preview and publish; with publish: true, published at once. Content is the builder’s Puck data, checked against its blocks (GET /pages/blocks): unknown block types, fields of the wrong kind, links that could run code (javascript:, data:) and images the page can’t show are refused with 422 and each problem’s path; links that go nowhere and images from outside Media come back as warnings. Not on Free. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
page | The page: its id or name (a bio page also its address). URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Request body (JSON):
| Field | Type | Required | Description |
|---|---|---|---|
content | object or string | Yes | The landing page’s design as the visual builder saves it (Puck data): { “root”: { “props”: { “bgColor”: “#ffffff” } }, “content”: [ { “type”: “Heading”, “props”: { “id”: “h1”, “text”: “Hello” } } ], “zones”: { “<Section id>:content”: [ …blocks in that Section ] } }. Blocks and their fields: Heading (source: static|api, text, dataPath, fontSize, color, alignment: left|center|right); TextBlock (source: static|api, content, dataPath, fontSize, color, alignment: left|center|right); Image (source: static|api, url, dataPath, alt, width, height, borderRadius, borderWidth, borderColor); Button (label, emoji, urlSource: static|api|store|fallback, action, urlDataPath, style: filled|outline|soft, bgColor, textColor, fontSize, borderRadius, fullWidth: false|true); Section (bgColor, bgImage, bgSize: cover|contain|auto, padding, borderRadius); Spacer (height); Divider (color, thickness); AppIcon (size, borderRadius); StoreButtons (alignment: left|center|right, height, showIos: true|false, showAndroid: true|false, iosUrlOverride, androidUrlOverride); DeepLinkButton (label, bgColor, textColor, fontSize, borderRadius, fullWidth: false|true); Avatar (url, size, borderWidth, borderColor); SocialRow (platforms, iconSize, iconColor, spacing); ProfileHeader (avatarUrl, avatarSize, name, nameFontSize, nameColor, bio, bioFontSize, bioColor). Full field types and limits: GET /pages/blocks (get_page_blocks). Text is shown as text, never HTML. Links can’t use javascript: or data:; images must be https, a path on this site, or one of this Appspace’s Media files. At most 1024 KB. Also a JSON string of the same. |
publish | boolean | No | true: publish it at once (live wherever a route uses the page). Default false: saved as the draft, to preview and publish. |
expected_updated_at | string | No | The updated_at you read. If the thing has changed since, nothing is saved and the answer is 412 precondition_failed: read it again and retry. |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The page’s id. Any endpoint taking {page} also takes its name. |
name | string | |
ab_eligible | boolean | |
branding | inherit, show, hide | ”Powered by Tolinku” on this page: inherit (follow the Appspace’s branding setting), show or hide. Free and the trial always show it. |
published | boolean | Whether it has published content. Links show it once a route uses it. |
has_draft | boolean | Whether there is an unpublished draft (from the builder, or saved through the API). |
draft_by | string or null | |
draft_updated_at | string or null | |
used_by_routes | array of object | Routes whose links show it (template “custom”). |
used_by_routes[].id | string | |
used_by_routes[].name | string | |
used_by_routes[].prefix | string | |
store_page | boolean | The App Store hand-off page, shown before sending people to the store; it can’t be deleted. |
created | string | |
updated_at | string | Send as expected_updated_at when changing it. |
content | object or null | The published design (Puck data), as PUT /content takes it. |
draft | object or null | The unpublished draft, if any. |
Publish a landing page
Section titled “Publish a landing page”/v1/manage/landing-pages/{page}/publishPermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Publishes the draft (or content sent with it): live at once on the links of every route that shows it. The draft is cleared and the published version kept in the publish history, as the builder’s Publish does. There is no unpublishing, as in the dashboard: a page is live wherever a route uses it. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
page | The page: its id or name (a bio page also its address). URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Request body (JSON):
| Field | Type | Required | Description |
|---|---|---|---|
content | object or string | No | Content to publish. Leave out to publish the page’s draft. |
expected_updated_at | string | No | The updated_at you read. If the thing has changed since, nothing is saved and the answer is 412 precondition_failed: read it again and retry. |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The page’s id. Any endpoint taking {page} also takes its name. |
name | string | |
ab_eligible | boolean | |
branding | inherit, show, hide | ”Powered by Tolinku” on this page: inherit (follow the Appspace’s branding setting), show or hide. Free and the trial always show it. |
published | boolean | Whether it has published content. Links show it once a route uses it. |
has_draft | boolean | Whether there is an unpublished draft (from the builder, or saved through the API). |
draft_by | string or null | |
draft_updated_at | string or null | |
used_by_routes | array of object | Routes whose links show it (template “custom”). |
used_by_routes[].id | string | |
used_by_routes[].name | string | |
used_by_routes[].prefix | string | |
store_page | boolean | The App Store hand-off page, shown before sending people to the store; it can’t be deleted. |
created | string | |
updated_at | string | Send as expected_updated_at when changing it. |
content | object or null | The published design (Puck data), as PUT /content takes it. |
draft | object or null | The unpublished draft, if any. |
Copy a landing page
Section titled “Copy a landing page”/v1/manage/landing-pages/{page}/duplicatePermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
A new page, “<name> (copy)”, with the published content. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
page | The page: its id or name (a bio page also its address). URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Response 201: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The page’s id. Any endpoint taking {page} also takes its name. |
name | string | |
ab_eligible | boolean | |
branding | inherit, show, hide | ”Powered by Tolinku” on this page: inherit (follow the Appspace’s branding setting), show or hide. Free and the trial always show it. |
published | boolean | Whether it has published content. Links show it once a route uses it. |
has_draft | boolean | Whether there is an unpublished draft (from the builder, or saved through the API). |
draft_by | string or null | |
draft_updated_at | string or null | |
used_by_routes | array of object | Routes whose links show it (template “custom”). |
used_by_routes[].id | string | |
used_by_routes[].name | string | |
used_by_routes[].prefix | string | |
store_page | boolean | The App Store hand-off page, shown before sending people to the store; it can’t be deleted. |
created | string | |
updated_at | string | Send as expected_updated_at when changing it. |
content | object or null | The published design (Puck data), as PUT /content takes it. |
draft | object or null | The unpublished draft, if any. |
Restore a deleted landing page
Section titled “Restore a deleted landing page”/v1/manage/landing-pages/{page}/restorePermission: Read and write. Changes something: takes dry_run and Idempotency-Key, and needs the Standard plan or above.
Brings back a page deleted in the last 30 days, with the same id, content, draft and history. {page} is its old id or name, or the trash entry’s id. With dry_run, nothing changes: the answer is { dry_run: true, before, after, changes, warnings }.
Path parameters:
| Parameter | Description |
|---|---|
page | The page: its id or name (a bio page also its address). URL-encode a name. |
Query parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
dry_run | true, false | No | true: check and preview the change without making it (the same as dry_run in the body). |
Response 200: the result in data, with warnings. With dry_run, a preview instead.
| Field | Type | Description |
|---|---|---|
id | string | The page’s id. Any endpoint taking {page} also takes its name. |
name | string | |
ab_eligible | boolean | |
branding | inherit, show, hide | ”Powered by Tolinku” on this page: inherit (follow the Appspace’s branding setting), show or hide. Free and the trial always show it. |
published | boolean | Whether it has published content. Links show it once a route uses it. |
has_draft | boolean | Whether there is an unpublished draft (from the builder, or saved through the API). |
draft_by | string or null | |
draft_updated_at | string or null | |
used_by_routes | array of object | Routes whose links show it (template “custom”). |
used_by_routes[].id | string | |
used_by_routes[].name | string | |
used_by_routes[].prefix | string | |
store_page | boolean | The App Store hand-off page, shown before sending people to the store; it can’t be deleted. |
created | string | |
updated_at | string | Send as expected_updated_at when changing it. |
content | object or null | The published design (Puck data), as PUT /content takes it. |
draft | object or null | The unpublished draft, if any. |