Landing Platform Landing Platform
Developer Embeds & Widgets
POST /api/public/embeds/{embed}/continue Public · no auth

Add second-step answers to a popup sign-up

Popup step two: add the remaining answers to the lead step one saved. The token came back in step one's response and names that lead and this embed; it expires after an hour. Only the questions the embed puts on step two are accepted, and an answer already given is never overwritten.

Rate limited.

Path parameters

embed
string required
Numeric id of the form embed. pattern: [0-9]+

Body parameters

continue_token
string optional
The `continue_token` from the step-one submit response.
form_data
string optional
The step-two answers, keyed by field name.
screen
string optional
Multi-step popups: the position (0-based) of the screen posting. Only its questions are taken; its required questions must be answered.

Responses

200 { "success": true }
422 { "success": false }
POST /api/public/embeds/{embed}/continue
response
{ "success": true }
GET /api/public/booking/widget/config Public · no auth

Get booking widget configuration for an event

Return the configuration needed to render the embeddable booking widget. Resolves the agency by branding-pack booking slug or numeric ID (preferred), or by team handle as an alternative. Returns the event definition, host avatars, custom fields, and branding colours so the widget can be rendered without additional API calls.

Query parameters

agency
string optional
Branding-pack booking slug or numeric agency ID. Preferred resolver.
user
string optional
Deprecated alias for agency — accepted for backwards compatibility.
team
string optional
Team handle — alternative to agency/user.

Body parameters

auto-derived
event
string required
Slug of the booking event to load. Required.

Responses

200 { "event": { "uuid": "550e8400-e29b-41d4-a716-446655440000", "name": "30-Minute...
400 { "error": "invalid_params", "message": "Either user or team must be specified"...
404 { "error": "agency_not_found", "message": "Agency not found" }
404 { "error": "team_not_found", "message": "Team not found" }
404 { "error": "event_not_found", "message": "Event not found or not active" }
response
{
  "event": {
    "uuid": "550e8400-e29b-41d4-a716-446655440000",
    "name": "30-Minute Intro Call",
    "slug": "intro-call",
    "description": "A quick chat to see how we can help.",
    "duration_minutes": 30,
    "location_type": "video",
    "event_type": "one_on_one",
    "allow_guests": false,
    "max_guests": 0,
    "color": "#6366f1",
    "fields": [
      { "id": 4, "type": "text", "label": "Company", "placeholder": "", "help_text": null, "required": false, "options": null }
    ],
    "hosts": [
      { "name": "Jane Smith", "avatar": "https://landing.pivotal.digital/storage/avatars/jane.jpg" }
    ]
  },
  "branding": {
    "logo": "https://landing.pivotal.digital/storage/logos/acme.png",
    "primary_color": "#6366f1",
    "secondary_color": "#4f46e5",
    "accent_color": "#a5b4fc"
  },
  "booking_url": "https://landing.pivotal.digital/book/acme/intro-call"
}
GET /api/public/embeds Public · no auth

List active embeds for a page

Return the active form embeds for a given tag container and page URL. Called by lt-embeds.js on every host pageview to decide which overlay, banner, or inline form to inject. Responses are server-cached for 60 s and invalidated automatically when an embed is saved or toggled.

Rate limited.

Query parameters

container_id
string · identifier optional
Public container ID (e.g. LT-ABC123). Required.
url
string · url optional
Path of the current page (e.g. /shoes), used for URL-targeting rules. A query string is ignored.
preview_id
string · identifier optional
Numeric embed ID — bypasses cache and active-only filter for admin preview.

Responses

200 { "embeds": [ { "id": 12, "version": "a1b2c3d4", "display_type": "modal", "posit...
400 { "embeds": [], "error": "container_id required" }
response
{
  "embeds": [
    {
      "id": 12,
      "version": "a1b2c3d4",
      "display_type": "modal",
      "position": "center",
      "trigger": { "type": "time_delay", "config": { "delay": 5 } },
      "targeting": { "visitor_type": "all", "device": [] },
      "frequency": { "cap": "once_per_visitor", "cap_value": 14 },
      "dismissal": { "show_close_button": true },
      "inline_selector": null,
      "banner": { "title": "Join our list", "submit_label": "Subscribe", "accent": "#4f46e5" },
      "form": { "id": 7 },
      "recaptcha": null,
      "html": "<form>...</form>",
      "css": ":host { ... }"
    }
  ],
  "submit_url": "https://landing.pivotal.digital/api/public/submit-lead"
}
POST /api/public/embeds/{embed}/track Public · no auth

Record an embed interaction event

Increment per-embed analytics counters for a visitor interaction. Accepts impression, engagement, or dismissal events from the embed client script. Submission counting is handled separately by the lead submission endpoint when it receives an embed_id in the payload.

Rate limited.

Path parameters

embed
string required
— pattern: [0-9]+

Body parameters

event
string optional
Interaction type: impression, engagement, or dismissal. Required.
v
string optional
Id of the A/B test version the visitor saw, when the embed is being tested (from the delivery payload's `ab.variants[].id`).

Responses

200 { "ok": true }
404 { "ok": false }
422 { "ok": false }
response
{ "ok": true }