For the complete documentation index, see llms.txt. This page is also available as Markdown.

Pages

Landing pages built in the drag-and-drop page editor and hosted by Gleantap. design_json holds the editor's design tree. Embedded forms must reference a Gleantap form. The helper endpoints under /pages/helpers/* generate valid design snippets (a page skeleton, a form block, an HTML wrapper).

List landing pages.

get

List responses omit design_json and html to keep payloads small; use retrievePage for full body.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

limitinteger Β· min: 1 Β· max: 100Optional

Page size. Default 25, max 100.

Default: 25
cursorstringOptional

Opaque cursor from a prior response's next_cursor, to fetch the NEXT page (alias - after). On listContacts and listSegmentContacts, use before with a prev_cursor to page backward; other list endpoints are forward-only.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
200

Page of pages.

application/json
objectconst: listRequired
has_morebooleanRequired

True if additional records exist beyond this page.

next_cursorstring Β· nullableRequired

Opaque cursor for the next page. Null on the last page.

prev_cursorstring Β· nullableRequired

Cursor for the previous page. Supported on listContacts and listSegmentContacts: pass it back as ?before=... to page backward; null on the first page. On every other list endpoint paging is forward-only and this is always null.

get/pages
GET /v3/pages HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Page of pages.

{
  "object": "text",
  "data": [
    {
      "object": "text",
      "id": "pg_66d9a11d0e5b7c1a4d8e2f1b",
      "workroom_id": "wrm_5ace370fd2a57d74d0548fb2",
      "name": "text",
      "slug": "text",
      "editor": "text",
      "is_published": true,
      "public_url": "text",
      "edit_url": "text",
      "lead_count": 1,
      "view_count": 1,
      "last_lead_at": "2026-01-01T00:00:00.000Z",
      "snapshot_url": "text",
      "action": "text",
      "action_value": "text",
      "page_settings": {
        "additional_css": "text",
        "additional_js": "text",
        "tracking_code_head": "text",
        "tracking_code_body": "text"
      },
      "design_json": null,
      "html": "text",
      "created_by": "text",
      "updated_by": "text",
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z"
    }
  ],
  "has_more": true,
  "next_cursor": "text",
  "prev_cursor": "text"
}

Create a landing page.

post

Three inputs supported:

  • design_json (preferred) β€” Unlayer canonical design tree

  • html only β€” auto-wrapped in a single html-tool design skeleton so the page still opens editable in Unlayer (as one block)

  • Neither β€” empty page created; edit in Unlayer afterwards

Advanced Forms enforcement: any built-in Unlayer type: form block is rejected with 422 advanced_forms_required. Use POST /pages/helpers/form_block to build a valid custom#gleantap_forms block.

Requires the name and the content. Optional fields fall back to a server-side default when omitted. That includes the workroom: an omitted workroom resolves to the account default, and a record created in the wrong workroom is invisible where it was expected. Half-specified records are created successfully and then have to be hunted down and fixed by hand.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Idempotency-Keystring Β· max: 255Optional

A unique key (≀255 chars) chosen by the client. Replays with the same key + same body return the cached response. Replays with the same key + different body return 409 idempotency_conflict. Required on messaging sends and bulk operations; recommended elsewhere.

Example: 8e3c7a90-7c4d-4f8e-8e3c-7a907c4d4f8e
Body
namestringRequired

Display name. Defaults to "Untitled Page" if omitted.

slugstringOptional

Optional URL slug. Slugified server-side; uniqueness enforced with numeric suffix fallback.

workroom_idstringOptionalExample: wrm_5ace370fd2a57d74d0548fb2Pattern: ^wrm_[0-9a-f]{24}$
is_publishedbooleanOptional

On create, defaults to true (published immediately) if omitted - the point of creating a page is usually to get a working public link right away; pass false to create it as an unpublished draft instead. On update (PATCH), omitting it leaves the current publish state unchanged - it is not reset to true.

design_jsonobjectOptional

Unlayer canonical design object. Preferred input β€” round-trips to the editor unchanged.

htmlstringOptional

Raw HTML. If provided without design_json, auto-wrapped in a single Unlayer html-tool block so the page still opens editable in Unlayer (as one block).

actionstring Β· enumOptional

Post-submit behavior, stored exactly as the dashboard page builder stores it. Case-insensitive; the forms-style aliases redirect / message are accepted and canonicalized. Anything else is rejected with 422.

Possible values:
action_valuestringOptional
Responses
201

Page created.

application/json
objectconst: pageOptional
idstringOptional

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
workroom_idstringOptionalExample: wrm_5ace370fd2a57d74d0548fb2Pattern: ^wrm_[0-9a-f]{24}$
namestring Β· nullableOptional
slugstring Β· nullableOptional

URL slug within the workroom. Auto-derived from name on create; unique per workroom.

editorconst: unlayerOptional
is_publishedbooleanOptional
public_urlstring Β· nullableOptional

Dashboard-hosted public URL where the rendered page is served.

edit_urlstring Β· nullableOptional

Dashboard URL that opens the Unlayer editor for this page.

lead_countintegerOptional
view_countintegerOptional
last_lead_atstring Β· date-time Β· nullableOptional
snapshot_urlstring Β· nullableOptional

S3 thumbnail regenerated on save by the dashboard.

actionstring Β· nullableOptional

"Redirect URL" or "Confirmation message" β€” post-submit behavior for pages that contain a form.

action_valuestring Β· nullableOptional
design_jsonobject Β· nullableOptional

Unlayer canonical design tree β€” {counters, body: {rows: [...], values: {...}}, schemaVersion}. Round-trips via unlayer.loadDesign() / unlayer.exportHtml(). Omitted on list responses.

htmlstring Β· nullableOptional

Rendered HTML. Populated when the caller supplies it OR when the dashboard editor autosaves. Omitted on list responses.

created_bystring Β· nullableOptional
updated_bystring Β· nullableOptional
created_atstring Β· date-time Β· nullableOptional
updated_atstring Β· date-time Β· nullableOptional
post/pages
POST /v3/pages HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 292

{
  "name": "text",
  "slug": "text",
  "workroom_id": "wrm_5ace370fd2a57d74d0548fb2",
  "is_published": true,
  "design_json": {},
  "html": "text",
  "action": "Redirect URL",
  "action_value": "text",
  "page_settings": {
    "additional_css": "text",
    "additional_js": "text",
    "tracking_code_head": "text",
    "tracking_code_body": "text"
  }
}
{
  "object": "text",
  "id": "pg_66d9a11d0e5b7c1a4d8e2f1b",
  "workroom_id": "wrm_5ace370fd2a57d74d0548fb2",
  "name": "text",
  "slug": "text",
  "editor": "text",
  "is_published": true,
  "public_url": "text",
  "edit_url": "text",
  "lead_count": 1,
  "view_count": 1,
  "last_lead_at": "2026-01-01T00:00:00.000Z",
  "snapshot_url": "text",
  "action": "text",
  "action_value": "text",
  "page_settings": {
    "additional_css": "text",
    "additional_js": "text",
    "tracking_code_head": "text",
    "tracking_code_body": "text"
  },
  "design_json": null,
  "html": "text",
  "created_by": "text",
  "updated_by": "text",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Retrieve a landing page (with design_json + html).

get
Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequired

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
200

Page.

application/json
objectconst: pageOptional
idstringOptional

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
workroom_idstringOptionalExample: wrm_5ace370fd2a57d74d0548fb2Pattern: ^wrm_[0-9a-f]{24}$
namestring Β· nullableOptional
slugstring Β· nullableOptional

URL slug within the workroom. Auto-derived from name on create; unique per workroom.

editorconst: unlayerOptional
is_publishedbooleanOptional
public_urlstring Β· nullableOptional

Dashboard-hosted public URL where the rendered page is served.

edit_urlstring Β· nullableOptional

Dashboard URL that opens the Unlayer editor for this page.

lead_countintegerOptional
view_countintegerOptional
last_lead_atstring Β· date-time Β· nullableOptional
snapshot_urlstring Β· nullableOptional

S3 thumbnail regenerated on save by the dashboard.

actionstring Β· nullableOptional

"Redirect URL" or "Confirmation message" β€” post-submit behavior for pages that contain a form.

action_valuestring Β· nullableOptional
design_jsonobject Β· nullableOptional

Unlayer canonical design tree β€” {counters, body: {rows: [...], values: {...}}, schemaVersion}. Round-trips via unlayer.loadDesign() / unlayer.exportHtml(). Omitted on list responses.

htmlstring Β· nullableOptional

Rendered HTML. Populated when the caller supplies it OR when the dashboard editor autosaves. Omitted on list responses.

created_bystring Β· nullableOptional
updated_bystring Β· nullableOptional
created_atstring Β· date-time Β· nullableOptional
updated_atstring Β· date-time Β· nullableOptional
get/pages/{id}
GET /v3/pages/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "object": "text",
  "id": "pg_66d9a11d0e5b7c1a4d8e2f1b",
  "workroom_id": "wrm_5ace370fd2a57d74d0548fb2",
  "name": "text",
  "slug": "text",
  "editor": "text",
  "is_published": true,
  "public_url": "text",
  "edit_url": "text",
  "lead_count": 1,
  "view_count": 1,
  "last_lead_at": "2026-01-01T00:00:00.000Z",
  "snapshot_url": "text",
  "action": "text",
  "action_value": "text",
  "page_settings": {
    "additional_css": "text",
    "additional_js": "text",
    "tracking_code_head": "text",
    "tracking_code_body": "text"
  },
  "design_json": null,
  "html": "text",
  "created_by": "text",
  "updated_by": "text",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Update a landing page.

patch

Sending design_json OR html replaces the design/html pair. Same Advanced Forms validation as create. Slug edits are enforced-unique per workroom; conflicts get numeric suffixes automatically.

design_json is an Unlayer canonical design tree, not a Gleantap format β€” it round-trips through unlayer.loadDesign() / unlayer.exportHtml(). Its structure is documented at https://docs.unlayer.com. Call getPageDesignSkeleton for a valid empty tree to build on rather than composing one from scratch.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequired

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Body
namestringRequired

Display name. Defaults to "Untitled Page" if omitted.

slugstringOptional

Optional URL slug. Slugified server-side; uniqueness enforced with numeric suffix fallback.

workroom_idstringOptionalExample: wrm_5ace370fd2a57d74d0548fb2Pattern: ^wrm_[0-9a-f]{24}$
is_publishedbooleanOptional

On create, defaults to true (published immediately) if omitted - the point of creating a page is usually to get a working public link right away; pass false to create it as an unpublished draft instead. On update (PATCH), omitting it leaves the current publish state unchanged - it is not reset to true.

design_jsonobjectOptional

Unlayer canonical design object. Preferred input β€” round-trips to the editor unchanged.

htmlstringOptional

Raw HTML. If provided without design_json, auto-wrapped in a single Unlayer html-tool block so the page still opens editable in Unlayer (as one block).

actionstring Β· enumOptional

Post-submit behavior, stored exactly as the dashboard page builder stores it. Case-insensitive; the forms-style aliases redirect / message are accepted and canonicalized. Anything else is rejected with 422.

Possible values:
action_valuestringOptional
Responses
200

Updated page.

application/json
objectconst: pageOptional
idstringOptional

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
workroom_idstringOptionalExample: wrm_5ace370fd2a57d74d0548fb2Pattern: ^wrm_[0-9a-f]{24}$
namestring Β· nullableOptional
slugstring Β· nullableOptional

URL slug within the workroom. Auto-derived from name on create; unique per workroom.

editorconst: unlayerOptional
is_publishedbooleanOptional
public_urlstring Β· nullableOptional

Dashboard-hosted public URL where the rendered page is served.

edit_urlstring Β· nullableOptional

Dashboard URL that opens the Unlayer editor for this page.

lead_countintegerOptional
view_countintegerOptional
last_lead_atstring Β· date-time Β· nullableOptional
snapshot_urlstring Β· nullableOptional

S3 thumbnail regenerated on save by the dashboard.

actionstring Β· nullableOptional

"Redirect URL" or "Confirmation message" β€” post-submit behavior for pages that contain a form.

action_valuestring Β· nullableOptional
design_jsonobject Β· nullableOptional

Unlayer canonical design tree β€” {counters, body: {rows: [...], values: {...}}, schemaVersion}. Round-trips via unlayer.loadDesign() / unlayer.exportHtml(). Omitted on list responses.

htmlstring Β· nullableOptional

Rendered HTML. Populated when the caller supplies it OR when the dashboard editor autosaves. Omitted on list responses.

created_bystring Β· nullableOptional
updated_bystring Β· nullableOptional
created_atstring Β· date-time Β· nullableOptional
updated_atstring Β· date-time Β· nullableOptional
patch/pages/{id}
PATCH /v3/pages/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 292

{
  "name": "text",
  "slug": "text",
  "workroom_id": "wrm_5ace370fd2a57d74d0548fb2",
  "is_published": true,
  "design_json": {},
  "html": "text",
  "action": "Redirect URL",
  "action_value": "text",
  "page_settings": {
    "additional_css": "text",
    "additional_js": "text",
    "tracking_code_head": "text",
    "tracking_code_body": "text"
  }
}
{
  "object": "text",
  "id": "pg_66d9a11d0e5b7c1a4d8e2f1b",
  "workroom_id": "wrm_5ace370fd2a57d74d0548fb2",
  "name": "text",
  "slug": "text",
  "editor": "text",
  "is_published": true,
  "public_url": "text",
  "edit_url": "text",
  "lead_count": 1,
  "view_count": 1,
  "last_lead_at": "2026-01-01T00:00:00.000Z",
  "snapshot_url": "text",
  "action": "text",
  "action_value": "text",
  "page_settings": {
    "additional_css": "text",
    "additional_js": "text",
    "tracking_code_head": "text",
    "tracking_code_body": "text"
  },
  "design_json": null,
  "html": "text",
  "created_by": "text",
  "updated_by": "text",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Permanently delete a landing page.

delete

Hard-deletes the page from storage (mirrors the dashboard's own delete behavior) after archiving a full copy into an internal audit collection. Not reversible via the API.

Permanent. There is no undo and no trash to restore from. Anything that references the deleted record is affected too.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequired

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
204

Deleted.

No content

delete/pages/{id}
DELETE /v3/pages/{id} HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*

No content

Publish a landing page.

post

Sets is_published=true. Page becomes viewable at public_url immediately.

Goes live. Once live it keeps reaching real contacts on its own, with no further call.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequired

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
200

Published page.

application/json
objectconst: pageOptional
idstringOptional

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
workroom_idstringOptionalExample: wrm_5ace370fd2a57d74d0548fb2Pattern: ^wrm_[0-9a-f]{24}$
namestring Β· nullableOptional
slugstring Β· nullableOptional

URL slug within the workroom. Auto-derived from name on create; unique per workroom.

editorconst: unlayerOptional
is_publishedbooleanOptional
public_urlstring Β· nullableOptional

Dashboard-hosted public URL where the rendered page is served.

edit_urlstring Β· nullableOptional

Dashboard URL that opens the Unlayer editor for this page.

lead_countintegerOptional
view_countintegerOptional
last_lead_atstring Β· date-time Β· nullableOptional
snapshot_urlstring Β· nullableOptional

S3 thumbnail regenerated on save by the dashboard.

actionstring Β· nullableOptional

"Redirect URL" or "Confirmation message" β€” post-submit behavior for pages that contain a form.

action_valuestring Β· nullableOptional
design_jsonobject Β· nullableOptional

Unlayer canonical design tree β€” {counters, body: {rows: [...], values: {...}}, schemaVersion}. Round-trips via unlayer.loadDesign() / unlayer.exportHtml(). Omitted on list responses.

htmlstring Β· nullableOptional

Rendered HTML. Populated when the caller supplies it OR when the dashboard editor autosaves. Omitted on list responses.

created_bystring Β· nullableOptional
updated_bystring Β· nullableOptional
created_atstring Β· date-time Β· nullableOptional
updated_atstring Β· date-time Β· nullableOptional
post/pages/{id}/publish
POST /v3/pages/{id}/publish HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "object": "text",
  "id": "pg_66d9a11d0e5b7c1a4d8e2f1b",
  "workroom_id": "wrm_5ace370fd2a57d74d0548fb2",
  "name": "text",
  "slug": "text",
  "editor": "text",
  "is_published": true,
  "public_url": "text",
  "edit_url": "text",
  "lead_count": 1,
  "view_count": 1,
  "last_lead_at": "2026-01-01T00:00:00.000Z",
  "snapshot_url": "text",
  "action": "text",
  "action_value": "text",
  "page_settings": {
    "additional_css": "text",
    "additional_js": "text",
    "tracking_code_head": "text",
    "tracking_code_body": "text"
  },
  "design_json": null,
  "html": "text",
  "created_by": "text",
  "updated_by": "text",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Unpublish a landing page.

post

Sets is_published=false. Page returns 404 at public_url until republished.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequired

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
200

Unpublished page.

application/json
objectconst: pageOptional
idstringOptional

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
workroom_idstringOptionalExample: wrm_5ace370fd2a57d74d0548fb2Pattern: ^wrm_[0-9a-f]{24}$
namestring Β· nullableOptional
slugstring Β· nullableOptional

URL slug within the workroom. Auto-derived from name on create; unique per workroom.

editorconst: unlayerOptional
is_publishedbooleanOptional
public_urlstring Β· nullableOptional

Dashboard-hosted public URL where the rendered page is served.

edit_urlstring Β· nullableOptional

Dashboard URL that opens the Unlayer editor for this page.

lead_countintegerOptional
view_countintegerOptional
last_lead_atstring Β· date-time Β· nullableOptional
snapshot_urlstring Β· nullableOptional

S3 thumbnail regenerated on save by the dashboard.

actionstring Β· nullableOptional

"Redirect URL" or "Confirmation message" β€” post-submit behavior for pages that contain a form.

action_valuestring Β· nullableOptional
design_jsonobject Β· nullableOptional

Unlayer canonical design tree β€” {counters, body: {rows: [...], values: {...}}, schemaVersion}. Round-trips via unlayer.loadDesign() / unlayer.exportHtml(). Omitted on list responses.

htmlstring Β· nullableOptional

Rendered HTML. Populated when the caller supplies it OR when the dashboard editor autosaves. Omitted on list responses.

created_bystring Β· nullableOptional
updated_bystring Β· nullableOptional
created_atstring Β· date-time Β· nullableOptional
updated_atstring Β· date-time Β· nullableOptional
post/pages/{id}/unpublish
POST /v3/pages/{id}/unpublish HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "object": "text",
  "id": "pg_66d9a11d0e5b7c1a4d8e2f1b",
  "workroom_id": "wrm_5ace370fd2a57d74d0548fb2",
  "name": "text",
  "slug": "text",
  "editor": "text",
  "is_published": true,
  "public_url": "text",
  "edit_url": "text",
  "lead_count": 1,
  "view_count": 1,
  "last_lead_at": "2026-01-01T00:00:00.000Z",
  "snapshot_url": "text",
  "action": "text",
  "action_value": "text",
  "page_settings": {
    "additional_css": "text",
    "additional_js": "text",
    "tracking_code_head": "text",
    "tracking_code_body": "text"
  },
  "design_json": null,
  "html": "text",
  "created_by": "text",
  "updated_by": "text",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Duplicate a landing page as a draft.

post

Clones the page (design_json + html + settings), regenerating the slug from the new name with a "-copy" suffix. The clone starts unpublished.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Path parameters
idstringRequired

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
201

Duplicated page (unpublished).

application/json
objectconst: pageOptional
idstringOptional

Landing page ID.

Example: pg_66d9a11d0e5b7c1a4d8e2f1bPattern: ^pg_[0-9a-fA-F]{24}$
workroom_idstringOptionalExample: wrm_5ace370fd2a57d74d0548fb2Pattern: ^wrm_[0-9a-f]{24}$
namestring Β· nullableOptional
slugstring Β· nullableOptional

URL slug within the workroom. Auto-derived from name on create; unique per workroom.

editorconst: unlayerOptional
is_publishedbooleanOptional
public_urlstring Β· nullableOptional

Dashboard-hosted public URL where the rendered page is served.

edit_urlstring Β· nullableOptional

Dashboard URL that opens the Unlayer editor for this page.

lead_countintegerOptional
view_countintegerOptional
last_lead_atstring Β· date-time Β· nullableOptional
snapshot_urlstring Β· nullableOptional

S3 thumbnail regenerated on save by the dashboard.

actionstring Β· nullableOptional

"Redirect URL" or "Confirmation message" β€” post-submit behavior for pages that contain a form.

action_valuestring Β· nullableOptional
design_jsonobject Β· nullableOptional

Unlayer canonical design tree β€” {counters, body: {rows: [...], values: {...}}, schemaVersion}. Round-trips via unlayer.loadDesign() / unlayer.exportHtml(). Omitted on list responses.

htmlstring Β· nullableOptional

Rendered HTML. Populated when the caller supplies it OR when the dashboard editor autosaves. Omitted on list responses.

created_bystring Β· nullableOptional
updated_bystring Β· nullableOptional
created_atstring Β· date-time Β· nullableOptional
updated_atstring Β· date-time Β· nullableOptional
post/pages/{id}/duplicate
POST /v3/pages/{id}/duplicate HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "object": "text",
  "id": "pg_66d9a11d0e5b7c1a4d8e2f1b",
  "workroom_id": "wrm_5ace370fd2a57d74d0548fb2",
  "name": "text",
  "slug": "text",
  "editor": "text",
  "is_published": true,
  "public_url": "text",
  "edit_url": "text",
  "lead_count": 1,
  "view_count": 1,
  "last_lead_at": "2026-01-01T00:00:00.000Z",
  "snapshot_url": "text",
  "action": "text",
  "action_value": "text",
  "page_settings": {
    "additional_css": "text",
    "additional_js": "text",
    "tracking_code_head": "text",
    "tracking_code_body": "text"
  },
  "design_json": null,
  "html": "text",
  "created_by": "text",
  "updated_by": "text",
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Get an empty Unlayer design skeleton.

get

Returns a valid empty Unlayer design_json an AI can start populating with rows/columns/contents. Compute-only β€” no storage side effects.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Responses
200

Empty design skeleton.

application/json
objectconst: page_design_skeletonOptional
design_jsonanyOptional

Empty Unlayer design tree ready to be populated.

notesstringOptional
get/pages/helpers/design_skeleton
GET /v3/pages/helpers/design_skeleton HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
200

Empty design skeleton.

{
  "object": "text",
  "design_json": null,
  "notes": "text"
}

Build a `custom#gleantap_forms` content block for a form.

post

Returns the exact Unlayer content block an AI should drop into design_json.body.rows[].columns[].contents[] to embed a Gleantap form on a page. values.formLibrary.html is prefilled with an iframe embed of /form/embedView/{form_id} β€” the existing Forms-module embed path β€” so any edits to the source form show up live on rendered pages without a page re-save. When the block is saved on a page (create / update / duplicate) the iframe becomes /form/embedView/{form_id}?page_id={page_id}, so its submissions can be credited to the page once the dashboard's embedView reads that parameter (a pending dashboard change; until then they credit the form only).

This is the sanctioned path for embedding forms β€” the Advanced Forms enforcement on POST /pages rejects built-in Unlayer type: form blocks.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Body
form_idstringRequiredExample: fom_6a616204a33b04c59a01f7f2Pattern: ^fom_[0-9a-f]{24}$
Responses
200

Ready-to-embed form block.

application/json
objectconst: page_form_blockOptional
content_blockanyOptional

The Unlayer custom#gleantap_forms content block for the requested form. Drop into design_json.body.rows[<i>].columns[<j>].contents[].

notesstringOptional
post/pages/helpers/form_block
POST /v3/pages/helpers/form_block HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 89

{
  "form_id": "fom_6a616204a33b04c59a01f7f2",
  "style": {
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
{
  "object": "text",
  "content_block": null,
  "notes": "text"
}

Wrap raw HTML in an Unlayer design skeleton.

post

Compute-only helper. Takes AI-generated raw HTML and returns a valid Unlayer design_json with the HTML embedded in a single html-tool content block. Opens editable in the Unlayer editor as one block. For per-section editability, generate design_json directly instead of wrapping HTML.

Authorizations
AuthorizationstringRequired

The API Secret from the Gleantap dashboard under Settings β†’ API (Generate New Key if none exists). Send it bare (40 hex characters) or prefixed as gltp_sk_live_<40-hex>. There is no sandbox: every key acts on the live account.

Keys are account-scoped and carry all permissions on that account (no per-key scope selection). Cross-workroom reads are unrestricted by default β€” narrow with ?workroom= / Gleantap-Workroom on each request. Revoke via the dashboard.

For per-user consent, per-workroom scoping, and short-lived tokens, use OAuth 2.1 instead.

Query parameters
workroomstringOptional

Same semantics as the Gleantap-Workroom header, including that a write should never be sent without a workroom the user actually chose, and that an omitted workroom scopes a read to the account default rather than spanning the account. Prefer this on GETs so proxies and caches can key on it. Accepts name, prefixed ID, raw hex, or all.

Header parameters
Gleantap-VersionstringOptional

Minor version to run the request under (date-based). Older dates remain supported for at least 24 months. If omitted, the account's default pinned version is used.

Example: 2026-05-27Pattern: ^\d{4}-\d{2}-\d{2}$
Gleantap-AccountstringOptional

Target customer account, as acc_<24-hex> or a bare 24-hex ID. Only for Gleantap staff (CSM) tokens, which authenticate against the internal staff directory and are bound to no account; for a normal customer token the account is fixed by the token and this header is ignored.

A staff token MUST name an account on every request β€” there is no default, and omitting it returns 400 admin_account_required rather than falling back to some first account. Switching accounts is just a different value here; no re-authorization. Account names are rejected (400 admin_account_invalid) because they are neither unique nor stable β€” list IDs with GET /v3/accounts.

Every impersonated response carries an impersonation block naming the account actually acted on, so an account switch mid-session is always visible. Also settable via ?account=.

Example: acc_59fca1e3d2a57d28a10b0442
Gleantap-WorkroomstringOptional

Which workroom to act in. Accepts a workroom name (case-insensitive), a prefixed ID (wrm_<hex>), a raw 24-hex ID, or the literal all.

On any write, ask the user which workroom β€” do not omit this. Optional here means the server has a fallback, not that the fallback is what anyone wanted: an omitted workroom sends the write to the account's default workroom, and accounts routinely have dozens. Creating a contact, flow, campaign or segment in the wrong workroom puts it where nobody is looking, and moving it afterwards is manual.

The one case where you need not ask: the account has exactly one workroom. Call listWorkrooms to find out β€” if it returns a single row, use it; if it returns several, ask which one before writing.

Reads are scoped too. Omitting a workroom on a read does not span the account β€” it narrows to the same default workroom a write would go to, and the response carries a workroom_defaulted warning saying so. So a count, a list or a segment preview describes one workroom unless you said otherwise. Pass all to deliberately span every workroom; that is the only way to get account-wide figures, and it is never the default. listWorkrooms itself is never narrowed, since it is how you discover what to ask for.

Also settable via ?workroom= or a workroom body field (POST/PATCH only) β€” query wins over header wins over body.

Example: G Test1
Body
htmlstring Β· min: 1Required
Responses
200

Wrapped design.

application/json
objectconst: page_wrap_htmlOptional
design_jsonanyOptional

Unlayer design tree wrapping the supplied HTML in a single html-tool block.

notesstringOptional
post/pages/helpers/wrap_html
POST /v3/pages/helpers/wrap_html HTTP/1.1
Host: api.gleantap.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 15

{
  "html": "text"
}
{
  "object": "text",
  "design_json": null,
  "notes": "text"
}