MOLTED EMAIL
CLI Reference

molted outcomes

Track and query outcomes

CommandDescription
molted outcomes ingestIngest an outcome event
molted outcomes listList outcomes
molted outcomes getGet an outcome by ID
molted outcomes dashboardGet outcomes dashboard
molted outcomes journey-impactGet journey impact on outcomes

Agent context

Outcomes track business events (conversions, purchases, signups) and attribute them back to emails and journeys. Use this to measure whether your sends are actually driving results.

Ingest an outcome event

molted outcomes ingest --contact alice@example.com \
  --event-type conversion --event-name signup \
  --revenue 99.99 --metadata '{"plan": "pro"}'
# → { "outcomeEventId": "<uuid>" }

molted outcomes ingest --contact bob@example.com \
  --event-type engagement --event-name page-view \
  --occurred-at 2025-06-15T10:00:00Z

Query outcomes

molted outcomes list --event-type conversion --from 2025-06-01 --to 2025-06-30
# → up to 100 outcome rows, newest first
molted outcomes get <id>
# → the outcome row plus its "attributions" (one per attribution model)

Dashboard (aggregate view, last 30 days)

molted outcomes dashboard
# → { "totalOutcomes": 45, "totalRevenue": 4500, "byType": [{ "eventType": "conversion", "count": 45, "revenue": 4500 }] }

Journey attribution

molted outcomes journey-impact
# → the stored journey impact snapshots (outcomes and revenue attributed
#   to each journey), newest first
# → use this to decide which journeys to optimize or scale

Event types: free text, the API stores any string. The examples here use conversion and engagement; the MCP record_outcome tool only accepts activation, trial_conversion, meeting_booked, deal_closed, upsell and custom, so prefer those if your agent also records outcomes over MCP.

Key behaviors

  • Outcomes are linked to contacts - use the same email as in sends
  • Attribution is automatic - each outcome is linked to the sends to that contact in the 30 days before it occurred (and their journeys)
  • --occurred-at defaults to now if omitted
  • Needs a workspace key (admin, or all mailboxes); a mailbox-scoped key gets 403

Related: molted journeys, molted analytics, molted contacts

Commands

molted outcomes ingest

Ingest an outcome event

molted outcomes ingest [options]
OptionDescriptionDefault
--contact <email>Contact email (required) (required)
--event-type <type>Event type, free text (required) (required)
--event-name <name>Event name (required) (required)
--revenue <n>Revenue amount, a decimal currency amount (e.g. 99.99), not cents
--metadata <json>Metadata as JSON
--occurred-at <date>ISO date when event occurred

molted outcomes list

List outcomes

molted outcomes list [options]
OptionDescriptionDefault
--event-type <type>Filter by event type
--from <date>Start date (ISO)
--to <date>End date (ISO)

molted outcomes get

Get an outcome by ID

molted outcomes get <id>
ArgumentDescriptionRequired
<id>Outcome IDyes

molted outcomes dashboard

Get outcomes dashboard

molted outcomes dashboard

molted outcomes journey-impact

Get journey impact on outcomes

molted outcomes journey-impact

See CLI overview for global options, credentials and output format.