Landing Platform Landing Platform
Developer Email Tracking
GET /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

200 Full HTML document of the rendered email (text/html).
404 Token not found, or the email has no content.
500 Internal error loading the preview.
response
Full HTML document of the rendered email (text/html).
POST /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
reason
string optional
Optional free-text reason the subscriber is opting out (max 1000 chars). max: 1000

Responses

302 Redirect to the unsubscribe page with a `success` or `info` flash message.
404 Token not found or expired.
response
Redirect to the unsubscribe page with a `success` or `info` flash message.
POST /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

302 Redirect to the unsubscribe/confirmation page with a `success` or `info` flash m...
404 Token not found or expired.
response
Redirect to the unsubscribe/confirmation page with a `success` or `info` flash message.
GET /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

200 A 1×1 transparent GIF (image/gif). Cache-Control headers prevent the image from...
response
A 1×1 transparent GIF (image/gif). Cache-Control headers prevent the image from being cached by the mail client.
GET /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

200 Rendered HTML unsubscribe page (emails.unsubscribe view).
404 Token not found or expired.
response
Rendered HTML unsubscribe page (emails.unsubscribe view).