Skip to main content

Preference center: tenant controls and contract

The preference center is a hosted public page where a contact manages their own channel opt-ins, subscription topics, message frequency, and (optionally) files a data-deletion request. This page is the posture and contract reference: the knobs your organization owns, the artifact each contact decision writes, and how the public surface fails. For step-by-step configuration, branding, and link placement, use the walkthrough at Preference center: the public opt-in/opt-out page.
The preference center is a tenant-owned control: you choose the channels, topics, and branding, and your organization holds the consent evidence. Orbit hosts the page and records the artifacts; it does not set your posture. This page is not legal advice.

1. Where it sits in the control map

The preference center is the contact-written half of your consent posture. Four surfaces work together: A decision made on the hosted page is not a UI flag: it lands in the same consent ledger and suppression entries that a STOP keyword or an operator action writes. The contract is defined by two route surfaces:
  • Admin/API configuration (apps/api/src/routes/compliance/preference-center.routes.ts): POST /preference-center, GET /preference-center, and POST /preference-center/link.
  • Public, unauthenticated (apps/api/src/routes/compliance/preference-center-public.ts): GET /preferences/:token and PUT /preferences/:token, gated by a signed token instead of a login.
All endpoints are rooted at https://api.orbit.devotel.io/api/v1/compliance.

2. The toggle surface

Configure with POST /preference-center and read back with GET /preference-center. Every field is validated server-side; a rejected POST returns 422 with per-field issues. Fields you omit take the server-side defaults below, so a minimal config is safe, and optional fields left unset simply do not render. Topics. Each topic id is a stable slug ([a-z0-9][a-z0-9_-]{0,63}), unique across the array (duplicates are a 422); name is the page label; description is optional context shown beside the toggle; defaultOptIn (default false) decides how a contact with no recorded choice is treated; archived removes the topic from the page while its history stays in the consent ledger. Links. A minted link carries an HMAC-SHA256 token (v1.<payload>.<signature>) scoped to exactly one contact in exactly one organization, valid for 30 days.
Beyond the minted link you place yourself, the send path appends a preference-center footer to qualifying outbound messages on its own. This section states when it fires, what it renders per channel, and what a click on the appended link does and does not write. The footer is appended at send time when all of the following hold:
  • The message is sent as message_type: "marketing". Transactional and informational sends never carry it.
  • The send has a free-text body.
  • The send does not name a template. Approved template bodies are transmitted verbatim — Meta forbids appending text to template body parameters, and approved templates carry their own opt-out copy where the category requires it — so template sends are skipped.
  • Your organization’s preference center is enabled: true.
  • The recipient resolves to a contact record in your workspace. The link token is scoped to exactly one contact, so a send to a raw address with no matching contact ships without the footer.
Nothing else gates the append: there is no per-message switch, and the organization-level enabled toggle is the only control. enabled: false stops the append and 404s the hosted page (§6).

What renders per channel

The appended line is your optOutMessage label followed by the link, separated from the body by a blank line — Manage your preferences: https://… with the default label.
  • sms and whatsapp. The link is minted through the branded short-link service, so the recipient sees your branded short domain (Settings → General → Branded short-link domain; see Short links and click tracking), and the tap lands in your link analytics with the same human-vs-scanner quality score as every other tracked link. Minting is best-effort: if it fails, the raw tokenized link is appended instead and the send proceeds — an untracked opt-out link still opts the recipient out, so a mint failure never blocks or alters the send.
  • email and every other free-text channel. The raw tokenized page link is appended as-is. On email it is independent of any List-Unsubscribe header posture you configure (see Email list-unsubscribe posture); configuring one does not replace the other.
The appended link carries the same token contract as a minted one: one contact, one organization, 30 days. A click after the TTL verifies as 401 TOKEN_EXPIRED (§6); that 30-day window is the same one §5 reasons about for CAN-SPAM.

A click is attribution, not suppression

A tap on the appended link records a link click attributed to the message and campaign it shipped on — that is the attribution half. It writes no suppression entry by itself: suppression is written when the contact submits the hosted page (PUT /preferences/:token), or when they reply STOP instead. The rows those two paths write are the ones described in §4 and in Consent management. Query the click side through the links analytics APIs (Link tracking analytics). Marketing SMS also receives the carrier-required “Reply STOP to opt out.” sentence described in The wording-injection model. That footer and this one are separate appends with separate jobs: the STOP sentence names the keyword the inbound matcher recognises, while the preference link carries the contact to the hosted page. The append step’s dedupe guard collapses a duplicated STOP sentence when your body already contains one — it does not dedupe the preference link, so a link you hand-write into the body stacks with the appended one and the recipient sees two unsubscribe links. Do not hand-write either into a marketing body; the send path owns both footers.

Your controls, and the audit trail

The footer exists only because your organization enabled the preference center; it is a tenant-owned surface, not a platform mandate. You own the label (optOutMessage), the post-save redirect (redirectUrl), and the page styling (customCss), and enabled: false removes the footer from future sends. Every config write, including the enable toggle, lands the audit entry compliance.preference_center_updated (§4).

Worked examples

Marketing SMS with the footer appended. With optOutMessage set to "Manage how Acme contacts you" and a branded short domain https://go.acme.com, a marketing send whose body is Acme fall sale: 20% off every plan until Friday. renders to the recipient as:
The tap on the short link resolves through the redirector to the hosted page for that one contact, and shows up in your link analytics attributed to the message and campaign. Nothing is suppressed until the contact submits the page or replies STOP. Template WhatsApp send: no footer. The same promotion sent through an approved WhatsApp template ships the template body verbatim: no footer line is appended, because template body parameters must not be modified after approval and the template carries its own opt-out copy where its category requires one. To give template recipients a tracked preference link, mint one per contact and author it into the template copy as described in the walkthrough.

4. What each action writes

Every contact decision on the page writes the same artifacts the STOP-keyword path writes on the inbound webhooks, so a form opt-out blocks sends exactly as a keyword STOP does: The operator-facing read surface for the same consent ledger is Consent management (apps/api/src/routes/compliance/consent-management.controller.ts), and the suppression writes mirror the inbound STOP-keyword handler, so both entry points block sends the same way. The hosted page also shows the contact their own history, newest first, drawn from that same ledger.
Channel wins over topic. A channel-level opt-out silences every message on that channel; a topic toggle only narrows consent within the channels the contact still accepts. Re-opt-in is symmetric only when every channel in the request is set to opted_in.

5. Regional anchoring

The preference center is the mechanism; the obligations are yours, per jurisdiction.
  • US CAN-SPAM. A clear unsubscribe mechanism that keeps working for at least 30 days after the message was sent, with requests honored within 10 business days. The 30-day token TTL plus the durable suppression entry cover the mechanism; the honor window is your process. See CAN-SPAM.
  • Canada CASL. Unsubscribe requests handled without delay and no later than 10 business days after receipt. See CASL.
  • GDPR. Withdrawal of consent must be as easy as granting it (Art 7(3)), information must be transparent (Arts 12–14), and consent must be demonstrable (Art 5(2)). The append-only consent ledger and the contact’s self-serve history are the record-keeping half. See GDPR posture.
Your duty vs Orbit’s. You publish the link in footers and templates, choose the channels, topics, and honor windows, and meet the response deadlines. Orbit hosts the page, records the consent, suppression, STOP-fence, and audit artifacts, and keeps them readable from your dashboard and this API.

6. Failure modes

Error responses carry the code, a human-readable message, and a request id. The invalid- and expired-token responses do not disclose which contact or organization a token referred to.

7. RBAC posture

  • Changing the config (POST /preference-center) and minting links (POST /preference-center/link): organization owner or admin roles only.
  • Reading the config (GET /preference-center): any authenticated member of the organization.
  • The public page (GET/PUT /preferences/:token): unauthenticated by design. The signed token is the authorization: one contact, one organization, 30 days. Email and phone come back masked, so the page never echoes the raw identifiers it was minted for.
Rate limits: 60/min on config reads, 10/min on admin writes, 30/min on public reads, and 10/min on public writes.

Worked example

Configure the center with topics and a custom opt-out label, then mint a per-contact link:
Expected: 201 with the saved config echoed. Then mint the link:
The response returns link: the hosted page URL with ?token=v1… appended. The page itself reads and writes through GET/PUT /preferences/:token. Placement guidance (email footer, SMS fallback) lives in the walkthrough; how the resulting suppression entries interact with imports and keyword STOPs lives in Opt-Out & Suppression Lists.