/api/public/emails/preview/{token}
Public · no auth
Preview a sent email or draft in the browser
Render the full HTML content of a sent email or draft in the browser. For sent emails the token is the send's tracking token; for drafts the token takes the form {email_id}-{sha256_hash}. Subscriber-specific placeholders are replaced with real or sample data before rendering. Viewing a sent email also marks it as opened.
Path parameters
|
token
string
required
|
Send-record tracking token, or a draft token in the form `{email_id}-{hash}`. |
Responses
curl https://landing.pivotal.digital/api/public/emails/preview/abc123token
Full HTML document of the rendered email (text/html).
Token not found, or the email has no content.
Internal error loading the preview.
/api/public/emails/unsubscribe/{token}
Public · no auth
Process an unsubscribe request
Process the unsubscribe action for a subscriber. Sets the subscriber's status to unsubscribed, records an EmailUnsubscribe row with the optional reason supplied in the request body, then redirects back to the unsubscribe page to confirm. Idempotent — already-unsubscribed subscribers are redirected with an informational message.
Path parameters
|
token
string
required
|
Send-record tracking token or a previously issued unsubscribe token. |
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.|
reason
string
optional
|
Optional free-text reason the subscriber is opting out (max 1000 chars). max: 1000 |
Responses
curl -X POST https://landing.pivotal.digital/api/public/emails/unsubscribe/abc123token \
-d "reason=Too many emails"
Redirect to the unsubscribe page with a `success` or `info` flash message.
Token not found or expired.
/api/public/emails/resubscribe/{token}
Public · no auth
Re-activate a previously unsubscribed subscriber
Re-activate a previously unsubscribed subscriber. The token may be either the original send-record tracking token or an unsubscribe token issued at opt-out time. On success the subscriber's status is set back to active and the visitor is redirected to the unsubscribe page with a confirmation.
Path parameters
|
token
string
required
|
Send-record tracking token or a previously issued unsubscribe token identifying the subscriber to reactivate. |
Responses
curl -X POST https://landing.pivotal.digital/api/public/emails/resubscribe/abc123token
Redirect to the unsubscribe/confirmation page with a `success` or `info` flash message.
Token not found or expired.
/api/public/emails/track-click/{token}
Public · no auth
Record an email link click and redirect
Record an email link-click event and redirect the visitor to the original destination URL. The destination is supplied as a base64-encoded url query parameter. If the token is not found but a url parameter is present the redirect still fires so the visitor reaches the intended page.
Path parameters
|
token
string
required
|
Tracking token from the email send record, identifying whose click to record. |
Query parameters
|
url
string · url
optional
|
Base64-encoded destination URL to redirect to after recording the click. |
Responses
curl -L "https://landing.pivotal.digital/api/public/emails/track-click/abc123token?url=$(echo -n 'https://example.com' | base64)"
Redirect to the decoded destination URL.
Missing or invalid `url` query parameter.
Token not found and no `url` fallback provided.
/api/public/emails/track-open/{token}
Public · no auth
Record an email open (tracking pixel)
Record an email open event and return a 1×1 transparent GIF tracking pixel. The token identifies the specific send record; if the token is unrecognised the pixel is still returned so the browser receives a valid image response.
Path parameters
|
token
string
required
|
Tracking token embedded in the email's open-pixel URL, uniquely identifying the send record. |
Responses
curl -o /dev/null -s -w "%{http_code}" \
https://landing.pivotal.digital/api/public/emails/track-open/abc123token
A 1×1 transparent GIF (image/gif). Cache-Control headers prevent the image from being cached by the mail client.
/api/public/emails/unsubscribe/{token}
Public · no auth
Show the unsubscribe confirmation page
Display the unsubscribe confirmation page for a subscriber. The page is branded using the subscriber list's associated company branding pack when available. If the subscriber has already unsubscribed, the page reflects that state rather than offering to unsubscribe again.
Path parameters
|
token
string
required
|
Send-record tracking token or a previously issued unsubscribe token identifying the subscriber. |
Responses
curl https://landing.pivotal.digital/api/public/emails/unsubscribe/abc123token
Rendered HTML unsubscribe page (emails.unsubscribe view).
Token not found or expired.
Landing Platform