Reference
Nurture
132 published documents
-
Get experiment
Read one experiment: what it tests (broadcast, or journey and split node), its arms, control, holdout and test shares, goal, minimum sample, status and, once promoted, the winner, who promoted it and whether significance was overridden (with the reason).
-
Get experiment results
Per arm: contacts assigned and exposed, conversions, conversion rate, uplift against the control (absolute and relative) and against the holdout, z and p-value. Statistics: a pooled two-proportion z-test of each variant against the control at a fixed 95% confidence level, alpha split across variants (Bonferroni); a comparison counts only when both arms reach minSamplePerArm exposures (default 100). decision is winner (recommendedWinner set), control_wins, insufficient_sample or no_significant_difference; a winner is never declared without significance. Conversion, within goal.windowHours after exposure (send, split or withheld holdout): goal.kind event (default) = the lifecycle eventType (e.g. purchase); click = a tracked-link click on the experiment's own sends, only URLs starting with urlPrefix if set.
-
Get journey
Read one journey: its editable draft definition, status, live currentVersion and whether the draft has unpublished changes.
-
Get journey blueprint
Read one journey blueprint with its steps, the placeholder starterTemplate every created step template starts from, and a preview journey definition built with default timings (send templateRefs are starter:<step> placeholders and topicKey is topic-key).
-
Get journey enrollment
Read one enrollment with its step history (each node taken, outcome and time) and the sends it intended: each send node took an eligibility reservation (status intended) or records why it could not (blocked, deferred, failed). Each intended send is delivered through Nexus email.send when the workspace has a verified sender (sending_settings.get), queued in the outbox when no Nexus credential is usable, and only recorded when no sender is configured.
-
Get journey report
Report one journey's sends (every version and send node): headline conversions and revenue, clicks, delivery engagement, opens with a privacy caveat, and a per-template breakdown. Covers messages sent in the last days (default 30, max 365). Conversions are goal lifecycle events (attribution_settings, default purchase) credited last-touch: the latest send (or click, basis click) to that contact within windowDays before the event gets it and its revenue (properties amountMinor + currency, summed per currency). Engagement is unique per send. Opens only count with open tracking on and are approximate (opens.caveat); judge on conversions and revenue.
-
Get journey version
Read one immutable published version of a journey by number.
-
Get lead scoring model
Read the workspace's lead scoring model: the editable draft, the published version scores are computed against, whether the draft has unpublished changes, and the handoff targets (active lead_handoff connectors, plus targets Nurture cannot reach yet and why). Score = fit + behaviour. Fit rules add points when a contact field matches (equals, not_equals, contains, exists, not_exists). Behaviour rules add points per matching lifecycle event (optionally only when properties[key] equals a value), each event halving every halfLifeDays (0 = no decay), with the rule clipped to maxPoints. A contact qualifies when score >= mqlThreshold.
-
Get pacing policy
Read the workspace's send pacing policy. Without a saved policy Nurture uses maxPerDay 1, maxPerWeek 3, no quiet hours, crossAppSameDay allow and consentRequiredForMarketing false; updatedAt is null until a policy is saved.
-
Get segment
Read one segment by id from the caller's Nurture workspace.
-
Get sending settings
Read this workspace's Nexus sender profile, whether it is verified as a marketing-class sender (problems lists why not), the sender, queued sends per reason, and whether delivery outcomes come from Nexus events or polling. With no sender configured Nurture only records sends (nothing is emailed). Marketing attests the latest double opt-in, repermission or consent-decision record for the topic as Nexus consent; without one (import attestation only) it skips with no_consent_evidence. Background sends (journeys, broadcasts, confirmations from hosted pages) use the Nurture app service credential; only when it is missing do they wait in the outbox (queued.blocked_no_service_credential), and they are never dropped. deliveryEvents.mode is events once all seven nexus.email.* types are connected through event_sources.connect (sourceAppId app_topolo_nexus), else polling (deliveries.reconcile). Events cover background sends too: Nexus addresses a send with no person behind it to app:<app_id>.
-
Get signup form
Read one signup form by id from the caller's Nurture workspace.
-
Get subscription topic
Read one subscription topic by id from the caller's Nurture workspace.
-
Get template brand settings
Read the workspace's template brand settings (brand name, logo, primary colour, footer text, postal address) and the brand emails actually render with, including which source supplied each value (brand, settings or default). A bound TopoloBrand kit wins; when Brand is unbound or unavailable the settings apply. Unset values render neutral; nothing is invented.
-
Get template report
Report every send rendered from one template id, across journeys and broadcasts: headline conversions and revenue, clicks, delivery engagement and opens with a privacy caveat. An id nothing was sent from reports zeros. Covers messages sent in the last days (default 30, max 365). Conversions are goal lifecycle events (attribution_settings, default purchase) credited last-touch: the latest send (or click, basis click) to that contact within windowDays before the event gets it and its revenue (properties amountMinor + currency, summed per currency). Engagement is unique per send. Opens only count with open tracking on and are approximate (opens.caveat); judge on conversions and revenue.
-
Get the inactivity policy
Get the workspace inactivity window that drives the derived inactive lifecycle event. Disabled at 30 days until set.
-
Get the lifecycle event catalog
List every typed lifecycle event Nurture records (signup, trial_started, trial_ending, form_submitted, purchase, subscription_changed, feature_used, the derived inactive and mql, engage_not_now) with its property JSON Schema, whether it can be ingested, and how its contact resolves (contactId, then email, then externalId).
-
Get tracking settings
Read whether Nurture tracks clicks (on by default: external https links become signed redirects that only lead to the URL recorded when the message was rendered) and opens (off by default: a 1x1 pixel; approximate and privacy-sensitive, see opensCaveat).
-
Get widget summary
Get the TopoloOne widget summary for this service.
-
Get workspace bootstrap
Get the verified user and organization context for this service.
-
Get workspace report
Report the whole Nurture workspace: headline conversions and revenue, clicks and delivery engagement, opens (with a privacy caveat), and breakdowns by journey/broadcast (bySource) and template (byTemplate). Covers messages sent in the last days (default 30, max 365). Conversions are goal lifecycle events (attribution_settings, default purchase) credited last-touch: the latest send (or click, basis click) to that contact within windowDays before the event gets it and its revenue (properties amountMinor + currency, summed per currency). Engagement is unique per send. Opens only count with open tracking on and are approximate (opens.caveat); judge on conversions and revenue.
-
Get workspace settings
Read this Nurture workspace's settings. The CRM link formerly stored here (crmWorkspaceId) is now a TopoloCRM connector: a workspace that still had one gets an equivalent connector (capability contact_source) on this call and the setting is cleared.
-
Import contacts from CSV
Import up to 10,000 contacts from CSV text (RFC 4180, at most 2 MB, header row required), parsed and planned by the shared @topolo-io/audience importer. mapping names the column for email and, optionally, firstName, lastName, locale, timezone and attribute keys; omit it to use suggestedMapping (returned on every call, derived from the header names). mode preview writes nothing and reports what would happen; mode commit creates new contacts (source csv) and updates names, locale, timezone and attributes (merged) of existing active contacts, matched case-insensitively by email. Archived contacts are skipped, never unarchived; rows identical to the stored contact count as unchanged; repeated emails in the file keep the first row. invalid[].line is the CSV record number (header = 1).
-
Ingest lifecycle events
Record one typed lifecycle event, or a batch of up to 100 as {events: [...]}, from app usage or any system. Each event is validated against events.catalog, names its contact by contactId, email or externalId (email is used to resolve, never stored; no contact or subscription is created), and is stored once per idempotency key. New events run journey triggers and goals, then rescore the contact against the published lead scoring model. Derived types (inactive, mql) are reserved: 422 reserved_event_type.
-
Issue preference-centre link
Issue a signed preference-centre link for one active contact, valid for 365 days. The page (GET never changes state) lists the workspace's active topics with the contact's state; its buttons POST the token to subscribe to a topic (always double opt-in), unsubscribe from a topic, or unsubscribe from everything (a topic-less unsubscribed ledger event, the global opt-out). The token is a topic-less unsubscribe token, so the link also works with the one-click unsubscribe endpoint. Nothing is stored and links cannot be revoked individually; deliver it only to the contact's own address.
-
List AI drafts
List the AI drafts in the caller's Nurture workspace, newest first (up to 200), optionally filtered by status (proposed, approved, rejected) and kind.
-
List broadcast recipients
Page through a launched broadcast's audience snapshot by contact id: each recipient's zone, due time, status (pending, sending, sent_intended, skipped, failed, cancelled), attempts, reservation id and skip or failure reasons. Pass nextCursor as cursor for the next page.
-
List broadcasts
List the broadcasts in the caller's Nurture workspace, newest change first, optionally filtered by status (draft, pending_approval, approved, scheduled, sending, sent, cancelled, failed, archived).
-
List connector providers
List the remote audience systems a Nurture workspace can optionally connect, the capabilities each supports and the non-secret config fields it needs. Nurture works fully without any connector. Capabilities: contact_source (connectors.sync copies remote contacts into Nurture, source connector, source_ref crm:<id>); suppression_sync (connectors.sync pushes unsubscribed, hard_bounce, complaint and manual_block events for those contacts to TopoloCRM, and eligibility.reserve also reserves in TopoloCRM, stricter wins); interaction_writeback (records sends on the CRM timeline; nothing writes yet); lead_handoff (TopoloCRM: a task per newly qualified CRM-linked lead; TopoloEngage: enrol each newly qualified lead into the chosen campaign from the chosen seat, creating the Engage contact when missing).
-
List connectors
List the connectors in the caller's Nurture workspace (any status) with their enabled capabilities, config, last sync time, resume cursor and last error. A workspace that still has the retired settings.crmWorkspaceId link gets an equivalent TopoloCRM connector (contact_source) on this call.
-
List contact score history
List one contact's lead score changes, newest first (up to 200): each entry has fit, behaviour, total, the change (delta), whether it qualified, the model version, the cause (event:<type>, model:v<n>, recompute or decay) and the rule contributions behind it.
-
List contact subscriptions
Read a contact's subscription state for every active topic of the workspace: none, pending_confirmation, subscribed or unsubscribed, with since and the evidence that subscribed them. State is resolved by @topolo-io/audience from Nurture's own subscription stream and suppression ledger; an unsubscribe is always a ledger event.
-
List contact suppressions
Read the suppression blocks currently active for a contact (resolved by @topolo-io/audience, stricter wins) and the ledger events behind them. Address-scoped events (hard_bounce, deliverable, complaint, wrong_person, and erased, which contacts.erase records and nothing lifts) are keyed by the org-scoped address hash and apply across every workspace of the organization, so events may come from other workspaces; events are therefore shown without contact ids, address hashes or evidence details.
-
List contacts
List the contacts Nurture holds for the caller's workspace, ordered by email, optionally filtered by status and a prefix search on email, first or last name. Pages of up to 200; pass nextCursor back as cursor for the next page.
-
List email templates
List the email templates in the caller's Nurture workspace with their current subject and version, optionally filtered by status.
-
List Engage handoff targets
For a topolo_engage connector, list the TopoloEngage campaigns (not archived or completed) and seats in its Engage workspace, read as the caller through app_topolo_engage.campaigns.list and app_topolo_engage.seats.list. Pick one campaign id and one seat id and save them with connectors.update config campaignId and seatId; qualified leads are then enrolled there. Until both are set, Engage handoffs stay pending.
-
List event sources
List the Notify event sources connected (or previously connected) in the caller's Nurture workspace, newest first.
-
List experiments
List the A/B experiments in the caller's Nurture workspace, newest first, optionally filtered by kind (broadcast, journey), status (active, stopped, promoted), broadcastId or journeyId.
-
List journey blueprints
List the prebuilt journey blueprints (welcome_series, trial_onboarding_14d, re_engagement, win_back, not_now_90d): each one's trigger (lifecycle events, or segment entry for win_back), goal event, send steps and delay steps with default timings. Blueprints are structure only and contain no message copy.
-
List journey enrollments
List a journey's enrollments, newest first, optionally by status (active, completed, converted, exited); up to 200. Each enrollment is pinned to a version and shows the node it will run next and when (dueAt).