/api/public/tag/{containerId}/embed
Public · no auth
Get the tag as loadable parts
The tag as parts: the loader URL and the small inline bootstrap that must run before it. For platforms that load scripts through their own loader (WordPress: wp_enqueue_script + wp_add_inline_script) instead of printing the pasted snippet. Built by TagContainer::embedParts(), the same source as the copy-paste snippet. Public: the container id is already public on every page that carries the tag, and nothing here is secret.
Rate limited.
Path parameters
|
containerId
string
required
|
The tag's LT- id. pattern: LT-[A-Z0-9]+ |
Responses
{ "container_id": "LT-9XK1PL", "script_src": "https://landing.pivotal.digital/js/lt.js?id=LT-9XK1PL", "inline_before": "(function(L){…})(window);", "inline_style": "", "hides_page": false }
/api/public/tag/auth-check
Public · no auth
Check session authentication for the support widget
Check whether the current browser session is authenticated and return basic user details for the support widget to pre-fill. When any form of impersonation is active the response reflects the original operator, not the impersonated subject, so support tickets are attributed correctly. The response is never cached and carries credentials-safe CORS headers.
Responses
curl "https://landing.pivotal.digital/api/public/tag/auth-check" \
-H "Origin: https://example.com" \
--cookie "laravel_session=..."
(authenticated) {
"authenticated": true,
"user": {
"id": 42,
"name": "Jane Smith",
"email": "jane@example.com",
"role": "agency"
}
}
(unauthenticated) { "authenticated": false }
/api/public/tag/{containerId}
Public · no auth
Get tag container configuration
Return the full configuration payload for a tag container, consumed by lt.js on every host pageview. The response includes active tags, conversion rules, an experimentation block (if an experiment site is linked), an analytics block (if a web-analytics property is linked), and an embeds flag so lt.js knows whether to load lt-embeds.js. Browsers revalidate every request (ETag/304); the edge keeps a copy for an hour and is purged by tag on every change.
Path parameters
|
containerId
string
required
|
— |
Query parameters
|
lt_preview
string
optional
|
Any value — bypasses cache, includes draft/paused experiences, and adds `"preview_mode": true` to the response. |
|
lt_exp
string
optional
|
Any value — alias for lt_preview. |
|
lt_qa
string
optional
|
Any value — alias for lt_preview. |
Responses
curl "https://landing.pivotal.digital/api/public/tag/LT-ABC123"
{
"containerId": "LT-ABC123",
"domain": "example.com",
"tags": [],
"conversions": [],
"scriptVersion": "a1b2c3d4",
"experimentation": {
"enabled": true,
"siteId": 5,
"settings": { "flickerPrevention": true, "flickerTimeout": 3000, "statsEngine": "frequentist" },
"globalCss": "",
"globalJs": "",
"experiences": []
},
"analytics": {
"enabled": true,
"key": "WA-XYZ789",
"siteId": 0,
"trackUrl": "https://landing.pivotal.digital/api/public/analytics/event"
},
"embeds": { "enabled": true }
}
(no body — ETag matched, use cached response)
{ "error": "Container not found or inactive" }
/api/public/tag/track
Public · no auth
Record a server-side conversion event
Record a server-side tag manager event for conversion tracking. Validates that the container is active and logs the event; can be extended for server-side analytics pipelines. The response is always 200 on success so a tracking failure never blocks the caller.
Body parameters
auto-derived Type, required, and constraints are read from this endpoint's validation rules at build time — they can't drift from the contract the API actually enforces.|
container_id
string
required
|
Public container ID (e.g. LT-ABC123). Required. |
|
event
string
required
|
Event name, max 100 characters. Required. max: 100 |
|
data
object
optional
|
Arbitrary key-value payload associated with the event. |
|
url
string · url
optional
|
Page URL where the event occurred. max: 500 |
|
referrer
string · url
optional
|
HTTP referrer URL. max: 500 |
Responses
curl -X POST https://landing.pivotal.digital/api/public/tag/track \
-H "Content-Type: application/json" \
-d '{
"container_id": "LT-ABC123",
"event": "purchase",
"data": { "order_id": "1042", "value": 49.00 },
"url": "https://example.com/checkout/thank-you"
}'
{ "success": true }
{ "error": "Invalid container" }
/api/public/tag/support-ticket
Public · no auth
Submit a support ticket from the on-site widget
Create a support ticket submitted from the agency's on-site support widget. Resolves the owning agency from the container ID, optionally stores a base64-encoded screenshot, and notifies subscribed agency owners and admins. An authenticated user ID may be supplied so the ticket is linked to the submitter's account for richer context in the ticket inbox. ticket_url is the page where a signed-in submitter can follow the ticket, or null.
Body parameters
|
container_id
string · identifier
optional
|
Public container ID identifying the agency. Required. |
|
subject
string
optional
|
Ticket subject line, max 255 characters. Required. |
|
message
string
optional
|
Ticket body text, max 5000 characters. Required. |
|
screenshot
string
optional
|
Base64-encoded image (data URI or raw). Stored on the public disk. |
|
page_url
string · url
optional
|
URL of the page the widget was open on, max 500 characters. |
|
submitter_name
string
optional
|
Display name of the person submitting, max 100 characters. |
|
submitter_email
string · email
optional
|
Email address for follow-up replies. |
|
diagnostics
string
optional
|
Key-value object of diagnostic metadata (browser, viewport, etc.). |
|
user_id
string · identifier
optional
|
Numeric ID of an authenticated platform user to link the ticket to. |
|
reply_to
string
optional
|
ID of one of the signed-in person's own open reports: the screenshot and message are added to it as a reply instead of opening a new ticket (subject then not needed). |
Responses
curl -X POST https://landing.pivotal.digital/api/public/tag/support-ticket \
-H "Content-Type: application/json" \
-d '{
"container_id": "LT-ABC123",
"subject": "Button not working",
"message": "The submit button on the contact form does nothing.",
"page_url": "https://example.com/contact",
"submitter_name": "Jane Smith",
"submitter_email": "jane@example.com"
}'
{
"success": true,
"ticket_id": 88,
"ticket_url": null,
"message": "Support ticket submitted successfully"
}
{
"success": false,
"error": "Invalid container"
}
Landing Platform