Skip to content

Landing pages (management API)

View as Markdown

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.

MethodPathWhat it doesPermission
GET/v1/manage/pages/blocksThe blocks pages are made ofRead
GET/v1/manage/pages/templatesList the builder’s templatesRead
GET/v1/manage/pages/templates/{template}Get a template’s contentRead
GET/v1/manage/landing-pagesList landing pagesRead
POST/v1/manage/landing-pagesCreate a landing pageRead and write
GET/v1/manage/landing-pages/{page}Get a landing pageRead
PATCH/v1/manage/landing-pages/{page}Change a landing page’s settingsRead and write
DELETE/v1/manage/landing-pages/{page}Delete a landing pageRead and write
GET/v1/manage/landing-pages/{page}/previewPreview a landing pageRead
PUT/v1/manage/landing-pages/{page}/contentSave a landing page’s designRead and write
POST/v1/manage/landing-pages/{page}/publishPublish a landing pageRead and write
POST/v1/manage/landing-pages/{page}/duplicateCopy a landing pageRead and write
POST/v1/manage/landing-pages/{page}/restoreRestore a deleted landing pageRead and write
GET/v1/manage/pages/blocks

Permission: 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.

GET/v1/manage/pages/templates

Permission: 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:

ParameterTypeRequiredDescription
kindlanding, bioNoOnly 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:

FieldTypeDescription
idstring
namestring
categorystring
descriptionstring
kindlanding, bio
GET/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:

ParameterDescription
template

Response 200: the result in data.

FieldTypeDescription
idstring
namestring
categorystring
descriptionstring
contentobject
GET/v1/manage/landing-pages

Permission: 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:

ParameterTypeRequiredDescription
limitintegerNoHow many to return, 1 to 100 (default 50).
cursorstringNoFrom 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:

FieldTypeDescription
idstringThe page’s id. Any endpoint taking {page} also takes its name.
namestring
ab_eligibleboolean
brandinginherit, 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.
publishedbooleanWhether it has published content. Links show it once a route uses it.
has_draftbooleanWhether there is an unpublished draft (from the builder, or saved through the API).
draft_bystring or null
draft_updated_atstring or null
used_by_routesarray of objectRoutes whose links show it (template “custom”).
used_by_routes[].idstring
used_by_routes[].namestring
used_by_routes[].prefixstring
store_pagebooleanThe App Store hand-off page, shown before sending people to the store; it can’t be deleted.
createdstring
updated_atstringSend as expected_updated_at when changing it.
POST/v1/manage/landing-pages

Permission: 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:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: check and preview the change without making it (the same as dry_run in the body).

Request body (JSON):

FieldTypeRequiredDescription
namestringYesA name for your team, such as “Spring sale”. Visitors don’t see it.
ab_eligiblebooleanNoWhether it can be a version in an A/B test. Default false.
templatestringNoStart 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.
contentobject or stringNoIts first design, saved as a draft (instead of a template).

Response 201: the result in data, with warnings. With dry_run, a preview instead.

FieldTypeDescription
idstringThe page’s id. Any endpoint taking {page} also takes its name.
namestring
ab_eligibleboolean
brandinginherit, 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.
publishedbooleanWhether it has published content. Links show it once a route uses it.
has_draftbooleanWhether there is an unpublished draft (from the builder, or saved through the API).
draft_bystring or null
draft_updated_atstring or null
used_by_routesarray of objectRoutes whose links show it (template “custom”).
used_by_routes[].idstring
used_by_routes[].namestring
used_by_routes[].prefixstring
store_pagebooleanThe App Store hand-off page, shown before sending people to the store; it can’t be deleted.
createdstring
updated_atstringSend as expected_updated_at when changing it.
contentobject or nullThe published design (Puck data), as PUT /content takes it.
draftobject or nullThe unpublished draft, if any.
GET/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:

ParameterDescription
pageThe page: its id or name (a bio page also its address). URL-encode a name.

Response 200: the result in data, with summary.

FieldTypeDescription
idstringThe page’s id. Any endpoint taking {page} also takes its name.
namestring
ab_eligibleboolean
brandinginherit, 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.
publishedbooleanWhether it has published content. Links show it once a route uses it.
has_draftbooleanWhether there is an unpublished draft (from the builder, or saved through the API).
draft_bystring or null
draft_updated_atstring or null
used_by_routesarray of objectRoutes whose links show it (template “custom”).
used_by_routes[].idstring
used_by_routes[].namestring
used_by_routes[].prefixstring
store_pagebooleanThe App Store hand-off page, shown before sending people to the store; it can’t be deleted.
createdstring
updated_atstringSend as expected_updated_at when changing it.
contentobject or nullThe published design (Puck data), as PUT /content takes it.
draftobject or nullThe unpublished draft, if any.
PATCH/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:

ParameterDescription
pageThe page: its id or name (a bio page also its address). URL-encode a name.

Query parameters:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: check and preview the change without making it (the same as dry_run in the body).

Request body (JSON):

FieldTypeRequiredDescription
namestringNoA new name.
ab_eligiblebooleanNoWhether it can be a version in an A/B test.
brandinginherit, show, hideNo”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_atstringNoThe 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.

FieldTypeDescription
idstringThe page’s id. Any endpoint taking {page} also takes its name.
namestring
ab_eligibleboolean
brandinginherit, 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.
publishedbooleanWhether it has published content. Links show it once a route uses it.
has_draftbooleanWhether there is an unpublished draft (from the builder, or saved through the API).
draft_bystring or null
draft_updated_atstring or null
used_by_routesarray of objectRoutes whose links show it (template “custom”).
used_by_routes[].idstring
used_by_routes[].namestring
used_by_routes[].prefixstring
store_pagebooleanThe App Store hand-off page, shown before sending people to the store; it can’t be deleted.
createdstring
updated_atstringSend as expected_updated_at when changing it.
contentobject or nullThe published design (Puck data), as PUT /content takes it.
draftobject or nullThe unpublished draft, if any.
DELETE/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:

ParameterDescription
pageThe page: its id or name (a bio page also its address). URL-encode a name.

Query parameters:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: 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.

FieldTypeDescription
deletedtrue
idstring
namestring
trash_idstring
restorable_untilstring
GET/v1/manage/landing-pages/{page}/preview

Permission: 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:

ParameterDescription
pageThe page: its id or name (a bio page also its address). URL-encode a name.

Query parameters:

ParameterTypeRequiredDescription
versiondraft, publishedNoDefault: the draft if there is one, otherwise the published page.

Response 200: the result in data.

FieldTypeDescription
htmlstringA whole HTML document, from the same renderer as the live page; open it in a phone-sized frame.
versiondraft, published
summarystring
pngnull
PUT/v1/manage/landing-pages/{page}/content

Permission: 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:

ParameterDescription
pageThe page: its id or name (a bio page also its address). URL-encode a name.

Query parameters:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: check and preview the change without making it (the same as dry_run in the body).

Request body (JSON):

FieldTypeRequiredDescription
contentobject or stringYesThe 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.
publishbooleanNotrue: publish it at once (live wherever a route uses the page). Default false: saved as the draft, to preview and publish.
expected_updated_atstringNoThe 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.

FieldTypeDescription
idstringThe page’s id. Any endpoint taking {page} also takes its name.
namestring
ab_eligibleboolean
brandinginherit, 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.
publishedbooleanWhether it has published content. Links show it once a route uses it.
has_draftbooleanWhether there is an unpublished draft (from the builder, or saved through the API).
draft_bystring or null
draft_updated_atstring or null
used_by_routesarray of objectRoutes whose links show it (template “custom”).
used_by_routes[].idstring
used_by_routes[].namestring
used_by_routes[].prefixstring
store_pagebooleanThe App Store hand-off page, shown before sending people to the store; it can’t be deleted.
createdstring
updated_atstringSend as expected_updated_at when changing it.
contentobject or nullThe published design (Puck data), as PUT /content takes it.
draftobject or nullThe unpublished draft, if any.
POST/v1/manage/landing-pages/{page}/publish

Permission: 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:

ParameterDescription
pageThe page: its id or name (a bio page also its address). URL-encode a name.

Query parameters:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: check and preview the change without making it (the same as dry_run in the body).

Request body (JSON):

FieldTypeRequiredDescription
contentobject or stringNoContent to publish. Leave out to publish the page’s draft.
expected_updated_atstringNoThe 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.

FieldTypeDescription
idstringThe page’s id. Any endpoint taking {page} also takes its name.
namestring
ab_eligibleboolean
brandinginherit, 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.
publishedbooleanWhether it has published content. Links show it once a route uses it.
has_draftbooleanWhether there is an unpublished draft (from the builder, or saved through the API).
draft_bystring or null
draft_updated_atstring or null
used_by_routesarray of objectRoutes whose links show it (template “custom”).
used_by_routes[].idstring
used_by_routes[].namestring
used_by_routes[].prefixstring
store_pagebooleanThe App Store hand-off page, shown before sending people to the store; it can’t be deleted.
createdstring
updated_atstringSend as expected_updated_at when changing it.
contentobject or nullThe published design (Puck data), as PUT /content takes it.
draftobject or nullThe unpublished draft, if any.
POST/v1/manage/landing-pages/{page}/duplicate

Permission: 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:

ParameterDescription
pageThe page: its id or name (a bio page also its address). URL-encode a name.

Query parameters:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: 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.

FieldTypeDescription
idstringThe page’s id. Any endpoint taking {page} also takes its name.
namestring
ab_eligibleboolean
brandinginherit, 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.
publishedbooleanWhether it has published content. Links show it once a route uses it.
has_draftbooleanWhether there is an unpublished draft (from the builder, or saved through the API).
draft_bystring or null
draft_updated_atstring or null
used_by_routesarray of objectRoutes whose links show it (template “custom”).
used_by_routes[].idstring
used_by_routes[].namestring
used_by_routes[].prefixstring
store_pagebooleanThe App Store hand-off page, shown before sending people to the store; it can’t be deleted.
createdstring
updated_atstringSend as expected_updated_at when changing it.
contentobject or nullThe published design (Puck data), as PUT /content takes it.
draftobject or nullThe unpublished draft, if any.
POST/v1/manage/landing-pages/{page}/restore

Permission: 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:

ParameterDescription
pageThe page: its id or name (a bio page also its address). URL-encode a name.

Query parameters:

ParameterTypeRequiredDescription
dry_runtrue, falseNotrue: 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.

FieldTypeDescription
idstringThe page’s id. Any endpoint taking {page} also takes its name.
namestring
ab_eligibleboolean
brandinginherit, 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.
publishedbooleanWhether it has published content. Links show it once a route uses it.
has_draftbooleanWhether there is an unpublished draft (from the builder, or saved through the API).
draft_bystring or null
draft_updated_atstring or null
used_by_routesarray of objectRoutes whose links show it (template “custom”).
used_by_routes[].idstring
used_by_routes[].namestring
used_by_routes[].prefixstring
store_pagebooleanThe App Store hand-off page, shown before sending people to the store; it can’t be deleted.
createdstring
updated_atstringSend as expected_updated_at when changing it.
contentobject or nullThe published design (Puck data), as PUT /content takes it.
draftobject or nullThe unpublished draft, if any.
Was this page helpful?