Skip to content

Pages, links, forms and privacy

Look up the REST routes for pages, previews, domains, tracked links, tags, lead forms and visitor privacy, with their fields and who may call them.

Updated

The REST routes for pages, links, forms and privacy, generated with npm run openapi from the schemas Handline validates every request with. Routes are under https://app.handline.io/api/v1 and take Authorization: Bearer <key or token>; the ids in braces are path parameters. The OpenAPI document is at https://app.handline.io/api/v1/openapi.json.

A GET or DELETE takes its fields as query parameters: numbers and true or false are read as such, and a repeated key is a list. Other methods take a JSON body with content-type: application/json.

GET /products/{productId}/pages#

List pages, by concept or status, with each page’s address.

Operation: pages.list, MCP tool pages_list. Who: owners, admins, editors and viewers (record.read); agent keys with read.

QueryTypeRequiredRules
conceptIdstringNo
statusstringNoOne of draft, published, retired.

GET /products/{productId}/pages/{pageId}#

Read a page: its blocks, its address and its revision.

Operation: pages.get, MCP tool pages_get. Who: owners, admins, editors and viewers (record.read); agent keys with read.

No query parameters.

GET /products/{productId}/page-templates#

List page templates, each with a starting set of blocks to edit.

Operation: pages.templates, MCP tool pages_templates. Who: owners, admins, editors and viewers (record.read); agent keys with read.

QueryTypeRequiredRules
headlinestringNoDefault State the promise in one line.
supportingstringNoDefault Say who it is for and what changes for them..
ctaLabelstringNoDefault Start now.
ctaHrefstringNo
proofPointIdsstring[]NoDefault [].
priceFactstringNo

POST /products/{productId}/pages/preview#

Render a page that isn’t saved yet, as HTML, for a live preview.

Operation: pages.preview, MCP tool pages_preview. Who: owners, admins, editors and viewers (record.read); agent keys with read.

BodyTypeRequiredRules
pageobjectYesAny keys; each value any.
themeobjectNo
theme.colorsobjectYes
theme.colors.backgroundstringYesMatches ^#[0-9a-fA-F]{6}$.
theme.colors.surfacestringYesMatches ^#[0-9a-fA-F]{6}$.
theme.colors.textstringYesMatches ^#[0-9a-fA-F]{6}$.
theme.colors.mutedstringYesMatches ^#[0-9a-fA-F]{6}$.
theme.colors.primarystringYesMatches ^#[0-9a-fA-F]{6}$.
theme.colors.onPrimarystringYesMatches ^#[0-9a-fA-F]{6}$.
theme.colors.borderstringYesMatches ^#[0-9a-fA-F]{6}$.
theme.fontsobjectYes
theme.fonts.headingstringYesOne of system-sans, system-serif, atkinson, inter, source-sans, ibm-plex-sans, lora, merriweather.
theme.fonts.bodystringYesOne of system-sans, system-serif, atkinson, inter, source-sans, ibm-plex-sans, lora, merriweather.
theme.radiusintegerYesFrom 0 to 24.
theme.logoobject or nullYes
theme.logo.srcstringYesA URL.
theme.logo.altstringYes1 to 100 characters.
theme.logo.heightintegerNoFrom 16 to 64. Default 28.
theme.faviconstring or nullYesA URL.
theme.allowThirdPartyFontsbooleanNoDefault false.

POST /products/{productId}/pages/{pageId}/preview-link#

Make a signed preview link for a page, as it is or as a change set would publish it. It expires.

Operation: pages.previewLink, MCP tool pages_previewLink. Who: owners, admins, editors and viewers (record.read); agent keys with read.

BodyTypeRequiredRules
changeSetIdstringNo
daysintegerNoFrom 1 to 14. Default 7.

GET /products/{productId}/domains#

List the domains a product’s pages are served on, with their status and the DNS records to create.

Operation: domains.list, MCP tool domains_list. Who: owners, admins, editors and viewers (record.read); agent keys with read.

No query parameters.

POST /products/{productId}/placements/{placementId}/link#

Get the tracked landing URL for an ad placement. Use it as the ad’s final URL. The platform adds its own click id when the ad is clicked. One link per placement; asking again returns the same one.

Operation: links.forPlacement, MCP tool links_forPlacement. Who: owners, admins and editors (placements.record); agent keys with report.

No body.

POST /products/{productId}/placements/{placementId}/recipient-links#

Issue tracked links for the recipients of an email or outbound placement: one random token each. Your sending tool matches each token to a person. Handline stores the token and the placement only, never who it is for. Up to 10,000 per call.

Operation: links.issueRecipients, MCP tool links_issueRecipients. Who: owners, admins and editors (placements.record); agent keys with report.

BodyTypeRequiredRules
countintegerYesFrom 1 to 10000.

List a placement’s tracked links: its ad link, and how many recipient links were issued in each batch.

Operation: links.list, MCP tool links_list. Who: owners, admins, editors and viewers (record.read); agent keys with read.

No query parameters.

POST /products/{productId}/privacy/delete#

Delete one visitor’s data: by visit token, or every visit tied to an outcome. What identifies them goes; a de-identified record of what was sent stays. Rollups are not changed.

Operation: privacy.deleteVisits, MCP tool privacy_deleteVisits. Who: owners and admins (products.settings); agent keys with report; product keys.

BodyTypeRequiredRules
tokenstringNo
outcomeIdstringNo

GET /products/{productId}/privacy#

Describe, in plain words, what Handline keeps about visitors and for how long, for the client’s privacy notice.

Operation: privacy.describe, MCP tool privacy_describe. Who: owners, admins, editors and viewers (record.read); agent keys with read.

No query parameters.

GET /products/{productId}/tags#

List the platform tags a product can turn on, which are on, and what each sends.

Operation: tags.list, MCP tool tags_list. Who: owners, admins, editors and viewers (record.read); agent keys with read.

No query parameters.

GET /products/{productId}/forms#

List the product’s lead forms, with their fields, stage and consent wording.

Operation: forms.list, MCP tool forms_list. Who: owners, admins, editors and viewers (record.read); agent keys with read.

No query parameters.

GET /products/{productId}/forms/endpoint#

Where lead forms deliver, and how deliveries went: delivered, retrying, lost and turned away as spam.

Operation: forms.endpoint, MCP tool forms_endpoint. Who: owners, admins, editors and viewers (record.read); agent keys with read.

No query parameters.

GET /products/{productId}/forms/submissions#

List recent form submissions: their stage, visit and delivery status. Never the answers.

Operation: forms.submissions, MCP tool forms_submissions. Who: owners, admins, editors and viewers (record.read); agent keys with read. Outside text: submissions.[].attempts.[].error.

QueryTypeRequiredRules
formIdstringNo
limitintegerNoFrom 1 to 200. Default 50.

Was this page helpful?