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.
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.
| Query | Type | Required | Rules |
|---|---|---|---|
conceptId | string | No | |
status | string | No | One 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.
| Query | Type | Required | Rules |
|---|---|---|---|
headline | string | No | Default State the promise in one line. |
supporting | string | No | Default Say who it is for and what changes for them.. |
ctaLabel | string | No | Default Start now. |
ctaHref | string | No | |
proofPointIds | string[] | No | Default []. |
priceFact | string | No |
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.
| Body | Type | Required | Rules |
|---|---|---|---|
page | object | Yes | Any keys; each value any. |
theme | object | No | |
theme.colors | object | Yes | |
theme.colors.background | string | Yes | Matches ^#[0-9a-fA-F]{6}$. |
theme.colors.surface | string | Yes | Matches ^#[0-9a-fA-F]{6}$. |
theme.colors.text | string | Yes | Matches ^#[0-9a-fA-F]{6}$. |
theme.colors.muted | string | Yes | Matches ^#[0-9a-fA-F]{6}$. |
theme.colors.primary | string | Yes | Matches ^#[0-9a-fA-F]{6}$. |
theme.colors.onPrimary | string | Yes | Matches ^#[0-9a-fA-F]{6}$. |
theme.colors.border | string | Yes | Matches ^#[0-9a-fA-F]{6}$. |
theme.fonts | object | Yes | |
theme.fonts.heading | string | Yes | One of system-sans, system-serif, atkinson, inter, source-sans, ibm-plex-sans, lora, merriweather. |
theme.fonts.body | string | Yes | One of system-sans, system-serif, atkinson, inter, source-sans, ibm-plex-sans, lora, merriweather. |
theme.radius | integer | Yes | From 0 to 24. |
theme.logo | object or null | Yes | |
theme.logo.src | string | Yes | A URL. |
theme.logo.alt | string | Yes | 1 to 100 characters. |
theme.logo.height | integer | No | From 16 to 64. Default 28. |
theme.favicon | string or null | Yes | A URL. |
theme.allowThirdPartyFonts | boolean | No | Default 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.
| Body | Type | Required | Rules |
|---|---|---|---|
changeSetId | string | No | |
days | integer | No | From 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.
| Body | Type | Required | Rules |
|---|---|---|---|
count | integer | Yes | From 1 to 10000. |
GET /products/{productId}/placements/{placementId}/links#
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.
| Body | Type | Required | Rules |
|---|---|---|---|
token | string | No | |
outcomeId | string | No |
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.
| Query | Type | Required | Rules |
|---|---|---|---|
formId | string | No | |
limit | integer | No | From 1 to 200. Default 50. |
Was this page helpful?