# API: Journeys

| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | `/v1/mkt/lifecycle/audit` | The program audit: live journeys competing for the same people, journeys and broadcasts converting below average, and recorded events no journey follows up (read only) | `marketing:read` |
| GET | `/v1/mkt/lifecycle/broadcasts` | Broadcasts with their segment, variants, holdout, status and counts | `marketing:read` |
| POST | `/v1/mkt/lifecycle/broadcasts` | Create a draft broadcast to a segment with subject or content variants and a holdout | `marketing:write` |
| POST | `/v1/mkt/lifecycle/broadcasts/:id/cancel` | Cancel a broadcast: its queued messages are dropped | `marketing:write` |
| POST | `/v1/mkt/lifecycle/broadcasts/:id/estimate` | Count who a broadcast reaches: the segment, those who said yes to this channel, and the holdout | `marketing:write` |
| POST | `/v1/mkt/lifecycle/broadcasts/:id/pause` | Pause a broadcast: its queued messages wait | `marketing:write` |
| PUT | `/v1/mkt/lifecycle/broadcasts/:id/personal-copy` | Choose personal copy for a share of a draft email broadcast (or turn it off with null) (web app only) | `marketing:write` |
| POST | `/v1/mkt/lifecycle/broadcasts/:id/personal-copy/confirm` | Confirm the personal copy's cost (its ceiling) (web app only) | `marketing:write` |
| POST | `/v1/mkt/lifecycle/broadcasts/:id/personal-copy/estimate` | What writing the personal copy would cost, before anything is called | `marketing:write` |
| GET | `/v1/mkt/lifecycle/broadcasts/:id/personal-copy/readout` | Conversions of people who got personal copy against the rest of the broadcast | `marketing:read` |
| GET | `/v1/mkt/lifecycle/broadcasts/:id/results` | A broadcast's results per variant: people messaged, conversions after them, and each variant against the first with a 95% interval | `marketing:read` |
| POST | `/v1/mkt/lifecycle/broadcasts/:id/send` | Send a broadcast after confirming how many people it reaches (each message is checked again when it leaves) (web app only) | `messages:send` |
| GET | `/v1/mkt/lifecycle/chat` | The website chat: each verified site, whether it's on, its daily number of answers and today's counts | `marketing:read` |
| GET | `/v1/mkt/lifecycle/chat/handovers` | Website chat questions waiting for a person (kept until answered or closed, 7 days at most) (web app only) | `marketing:read` |
| POST | `/v1/mkt/lifecycle/chat/handovers/:id/decision` | Answer a visitor's question (they see it in the chat when they come back) or close it (web app only) | `marketing:write` |
| PUT | `/v1/mkt/lifecycle/chat/sites/:id` | Turn the website chat on or off for one of your verified sites, and set its daily number of answers (owners) (web app only) | `settings:write` |
| GET | `/v1/mkt/lifecycle/confirm/:token` | The confirmation link in a double opt-in message: asks before recording (no sign-in) | — |
| POST | `/v1/mkt/lifecycle/confirm/:token` | Confirm a sign-up (double opt-in): the person's consent is recorded now (no sign-in) | — |
| GET | `/v1/mkt/lifecycle/decisioning` | Decisioning against its comparison group (people, conversions and a 95% interval) and the latest choices with their reasons | `marketing:read` |
| GET | `/v1/mkt/lifecycle/deliverability` | Delivery, bounce and complaint rates for the last 7 and 30 days, why messages were held or dropped, and open alerts | `marketing:read` |
| POST | `/v1/mkt/lifecycle/deliverability/domain` | Check a sending domain's SPF, DKIM, DMARC and BIMI records | `marketing:read` |
| GET | `/v1/mkt/lifecycle/deliverability/postmaster` | What Gmail's Postmaster Tools reports for your sending domains, a row a day (spam rate, SPF, DKIM, DMARC, delivery errors) | `marketing:read` |
| POST | `/v1/mkt/lifecycle/deliverability/postmaster/:id/reads` | Read a sending domain's last 14 days from Postmaster Tools now (a person; otherwise read once a day) (web app only) | `marketing:write` |
| POST | `/v1/mkt/lifecycle/forms` | File a sign-up form a visitor submitted on your site: the person, what they agreed to and the text they saw (texts and chosen channels wait for confirmation) | `marketing:write` |
| GET | `/v1/mkt/lifecycle/in-app/messages` | A person's in-app inbox for your app: newest first, at most 20, unexpired and not dismissed | `app-inbox:write` |
| POST | `/v1/mkt/lifecycle/in-app/messages/:id/dismissals` | The person dismissed an in-app message: it leaves their inbox | `app-inbox:write` |
| POST | `/v1/mkt/lifecycle/in-app/messages/:id/seen` | Mark an in-app message seen by the person it was for | `app-inbox:write` |
| GET | `/v1/mkt/lifecycle/journeys` | Journeys with their status, trigger, expected volume and people in them | `marketing:read` |
| POST | `/v1/mkt/lifecycle/journeys` | Create a draft journey: trigger, waits, branches, splits, sends, goal and exits (nothing is sent until a person turns it on) | `marketing:write` |
| GET | `/v1/mkt/lifecycle/journeys/:id` | One journey with its steps and expected volume | `marketing:read` |
| PUT | `/v1/mkt/lifecycle/journeys/:id` | Change a draft or paused journey (its expected volume is worked out again) | `marketing:write` |
| POST | `/v1/mkt/lifecycle/journeys/:id/activate` | Turn a journey on after confirming its expected messages a week; it acts only on what happens from now (web app only) | `messages:send` |
| POST | `/v1/mkt/lifecycle/journeys/:id/archive` | Archive a journey: it stops and its queued messages are dropped when they come due | `marketing:write` |
| GET | `/v1/mkt/lifecycle/journeys/:id/audience` | Who can start a journey that starts from a segment: what was approved, what it is now, how many match and wait, and the limits | `marketing:read` |
| POST | `/v1/mkt/lifecycle/journeys/:id/audience` | Confirm who can start a journey that's on and how many new people a week; people who match now don't start unless the people waiting are let in (web app only) | `messages:send` |
| POST | `/v1/mkt/lifecycle/journeys/:id/estimate` | Work out a journey's expected volume: people entering a day and messages a day and a week | `marketing:write` |
| POST | `/v1/mkt/lifecycle/journeys/:id/pause` | Pause a journey: nothing more is enrolled or sent from it | `marketing:write` |
| GET | `/v1/mkt/lifecycle/journeys/:id/results` | A journey's results per variant: people messaged, conversions after them, and each variant against the first with a 95% interval | `marketing:read` |
| GET | `/v1/mkt/lifecycle/journeys/:id/simulation` | Walk synthetic people through a journey before turning it on: messages per person, how long it takes and what would trip the limits (nothing is written or sent) | `marketing:read` |
| GET | `/v1/mkt/lifecycle/journeys/:id/versions` | A journey's saved versions, newest first (at most 50) | `marketing:read` |
| GET | `/v1/mkt/lifecycle/journeys/:id/versions/diff` | What changed between two versions of a journey: steps added, removed and changed, and the trigger, goal and exits | `marketing:read` |
| POST | `/v1/mkt/lifecycle/journeys/drafts` | Describe a goal (welcome, abandoned cart, win-back…) and get a draft journey with its draft messages | `marketing:write` |
| POST | `/v1/mkt/lifecycle/journeys/drafts/ai` | Draft a journey for a goal with its copy rewritten by AI, after confirming the shown cost (the library's copy when the model is off) (web app only) | `marketing:write` |
| GET | `/v1/mkt/lifecycle/journeys/drafts/ai-estimate` | What rewriting a goal's journey copy with AI would cost (shown before anything is called) | `marketing:read` |
| GET | `/v1/mkt/lifecycle/messages` | Messages and why each was sent, held or dropped (by person id; no addresses) | `marketing:read` |
| POST | `/v1/mkt/lifecycle/messages/approvals` | Approve or decline messages held for approval: approved ones go back in the queue once and are checked again when they leave (web app only) | `messages:send` |
| GET | `/v1/mkt/lifecycle/messages/held-for-approval` | Messages the policy held for a person's approval, grouped by template, journey and broadcast (at most 50 groups) | `marketing:read` |
| GET | `/v1/mkt/lifecycle/overview` | Journeys, broadcasts and messages at a glance: what's live, what was sent, held or dropped this week, open alerts and whether sending is paused | `marketing:read` |
| GET | `/v1/mkt/lifecycle/platforms/accounts` | Connected email platforms we can read and stage drafts in, and what each one supports | `marketing:read` |
| POST | `/v1/mkt/lifecycle/platforms/accounts/:id/people-imports` | Bring the account's people and their events in as history (a person; bounded pages a time, only what changed after the first time; nothing is sent and no journey starts) (web app only) | `settings:write` |
| PUT | `/v1/mkt/lifecycle/platforms/accounts/:id/profile-source` | Make this account where your profiles come from (owners): its people are read once a day as history; nothing is sent because of them (web app only) | `settings:write` |
| POST | `/v1/mkt/lifecycle/platforms/accounts/:id/refresh` | Read the account's lists, segments, flows and campaigns again (only what changed; nothing is sent or drafted) | `marketing:write` |
| PUT | `/v1/mkt/lifecycle/platforms/accounts/:id/stop-sync` | Pass on to this Attentive or Postscript account everyone who stops texts with you from now on (owners) (web app only) | `settings:write` |
| GET | `/v1/mkt/lifecycle/platforms/drafts` | What we staged in your email platform: draft campaigns and flows and list pushes (counts only) | `marketing:read` |
| POST | `/v1/mkt/lifecycle/platforms/drafts` | Create a campaign or flow as a draft in your email platform (it isn't sent, scheduled or turned on) | `marketing:write` |
| GET | `/v1/mkt/lifecycle/platforms/objects` | Lists, segments, flows, campaigns, templates and event types read from your email platform (counts only) | `marketing:read` |
| POST | `/v1/mkt/lifecycle/platforms/segment-pushes` | Add a segment's consented, unsuppressed people to a list in your email platform; its own automations on that list may email them, so a person does it (counts only) (web app only) | `messages:send` |
| POST | `/v1/mkt/lifecycle/platforms/staged-journeys` | Build one of your journeys in Klaviyo as a flow whose emails are all drafts, or as drafts in Braze, Customer.io or Iterable: its approved messages as templates (or draft newsletters for an empty segment) and its outline. Nothing there is sent or turned on | `marketing:write` |
| GET | `/v1/mkt/lifecycle/preferences/:token` | The preference page in a message: what the person gets, by channel (no sign-in) | — |
| POST | `/v1/mkt/lifecycle/preferences/:token` | Save the person's choices from the preference page (turning a channel off acts at once) (no sign-in) | — |
| DELETE | `/v1/mkt/lifecycle/push/devices` | Remove a push device token from a person (for example when they sign out of your app) | `app-inbox:write` |
| POST | `/v1/mkt/lifecycle/push/devices` | Register a push device token for a person (at most 10 a person; the oldest is dropped). The token is never returned. Registering a device grants no consent: push marketing still needs the person's consent recorded | `app-inbox:write` |
| GET | `/v1/mkt/lifecycle/reply-drafts` | Replies waiting for a person: the question, the drafted answer or proposed action, its sources (web app only) | `marketing:read` |
| POST | `/v1/mkt/lifecycle/reply-drafts/:id/decision` | Approve (send the answer, or do the action) or dismiss a reply draft (web app only) | `messages:send` |
| POST | `/v1/mkt/lifecycle/segments/:id/shopify-tag` | Tag this segment's customers in Shopify (for Markets, discounts and banners there) (web app only) | `settings:write` |
| POST | `/v1/mkt/lifecycle/sending/pause` | Pause all sending at once: queued messages wait until an owner resumes | `marketing:write` |
| POST | `/v1/mkt/lifecycle/sending/resume` | Resume sending (owners): messages held by the pause go back to the queue; ones held over three days are dropped (web app only) | `messages:send` |
| GET | `/v1/mkt/lifecycle/settings` | Messaging settings: quiet hours, limits per person and per day, double opt-in channels, the holdout, the postal address and sending accounts | `marketing:read` |
| PUT | `/v1/mkt/lifecycle/settings` | Change messaging settings (owners) (web app only) | `settings:write` |
| GET | `/v1/mkt/lifecycle/settings/reply-drafts` | Reply drafts: whether they're on, the daily numbers of automatic answers, what's connected and today's use | `marketing:read` |
| PUT | `/v1/mkt/lifecycle/settings/reply-drafts` | Draft answers (and proposed actions) for replies, for a person to approve (owners) (web app only) | `settings:write` |
| GET | `/v1/mkt/lifecycle/sms/registration` | Where your US texting registration stands: the brand's and the campaign's status, and whether texts to US numbers can go | `marketing:read` |
| GET | `/v1/mkt/lifecycle/templates` | Message templates by channel and purpose, with their status | `marketing:read` |
| POST | `/v1/mkt/lifecycle/templates` | Create a draft template with merge fields and fallbacks (a person approves it before it's used) | `marketing:write` |
| GET | `/v1/mkt/lifecycle/templates/:id` | One template with its pre-launch checks | `marketing:read` |
| PATCH | `/v1/mkt/lifecycle/templates/:id` | Edit a template (an approved one goes back to draft until approved again) | `marketing:write` |
| POST | `/v1/mkt/lifecycle/templates/:id/adapt` | Draft text, push and WhatsApp messages from an email template in the brand's voice (drafts to review) | `marketing:write` |
| POST | `/v1/mkt/lifecycle/templates/:id/approve` | Approve the version of a template you looked at, after its checks pass (a person, from the web app) (web app only) | `marketing:write` |
| GET | `/v1/mkt/lifecycle/templates/:id/parts-readout` | How each alternative of a template's parts did (sends, conversions, an interval), and which are clearly ahead | `marketing:read` |
| GET | `/v1/mkt/lifecycle/templates/:id/preview` | A rendered preview of a template with a sample person's merge fields, as HTML for a sandboxed frame (no remote content, no script) and as plain text | `marketing:read` |
| POST | `/v1/mkt/lifecycle/templates/:id/test` | Send a test of an email template to your own address only (web app only) | `messages:send` |
| GET | `/v1/mkt/lifecycle/unsubscribe/:token` | The unsubscribe link in a message: asks before acting (no sign-in) | — |
| POST | `/v1/mkt/lifecycle/unsubscribe/:token` | One-click unsubscribe: marketing on this channel stops at once for every address of the person (no sign-in) | — |
| GET | `/v1/mkt/lifecycle/voice` | How each channel's messages sound against the brand's voice (learned from its approved email) | `marketing:read` |
| GET | `/v1/mkt/lifecycle/whatsapp/templates/:id/status` | Whether WhatsApp approved this WhatsApp template (approved, pending, rejected, paused or disabled), by language; read from WhatsApp and kept for 10 minutes | `marketing:read` |

## Examples

### GET /v1/mkt/lifecycle/audit

The program audit: live journeys competing for the same people, journeys and broadcasts converting below average, and recorded events no journey follows up (read only)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/audit" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/audit`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/broadcasts

Broadcasts with their segment, variants, holdout, status and counts

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/broadcasts

Create a draft broadcast to a segment with subject or content variants and a holdout

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/broadcasts/$ID/cancel

Cancel a broadcast: its queued messages are dropped

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/$ID/cancel" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/${id}/cancel`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/broadcasts/$ID/estimate

Count who a broadcast reaches: the segment, those who said yes to this channel, and the holdout

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/$ID/estimate" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/${id}/estimate`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/broadcasts/$ID/pause

Pause a broadcast: its queued messages wait

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/$ID/pause" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/${id}/pause`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/broadcasts/$ID/personal-copy/estimate

What writing the personal copy would cost, before anything is called

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/$ID/personal-copy/estimate" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/${id}/personal-copy/estimate`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/broadcasts/$ID/personal-copy/readout

Conversions of people who got personal copy against the rest of the broadcast

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/$ID/personal-copy/readout" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/${id}/personal-copy/readout`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/broadcasts/$ID/results

A broadcast's results per variant: people messaged, conversions after them, and each variant against the first with a 95% interval

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/$ID/results" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/broadcasts/${id}/results`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/chat

The website chat: each verified site, whether it's on, its daily number of answers and today's counts

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/chat" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/chat`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/confirm/$TOKEN

The confirmation link in a double opt-in message: asks before recording. No sign-in, so it sends no key.

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/confirm/$TOKEN"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/confirm/${token}`, {
  method: "GET",
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/confirm/$TOKEN

Confirm a sign-up (double opt-in): the person's consent is recorded now. No sign-in, so it sends no key.

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/confirm/$TOKEN" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/confirm/${token}`, {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/decisioning

Decisioning against its comparison group (people, conversions and a 95% interval) and the latest choices with their reasons

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/decisioning" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/decisioning`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/deliverability

Delivery, bounce and complaint rates for the last 7 and 30 days, why messages were held or dropped, and open alerts

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/deliverability" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/deliverability`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/deliverability/domain

Check a sending domain's SPF, DKIM, DMARC and BIMI records

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/deliverability/domain" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/deliverability/domain`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/deliverability/postmaster

What Gmail's Postmaster Tools reports for your sending domains, a row a day (spam rate, SPF, DKIM, DMARC, delivery errors)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/deliverability/postmaster" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/deliverability/postmaster`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/forms

File a sign-up form a visitor submitted on your site: the person, what they agreed to and the text they saw (texts and chosen channels wait for confirmation)

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/forms" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/forms`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/in-app/messages

A person's in-app inbox for your app: newest first, at most 20, unexpired and not dismissed

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/in-app/messages" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/in-app/messages`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/in-app/messages/$ID/dismissals

The person dismissed an in-app message: it leaves their inbox

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/in-app/messages/$ID/dismissals" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/in-app/messages/${id}/dismissals`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/in-app/messages/$ID/seen

Mark an in-app message seen by the person it was for

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/in-app/messages/$ID/seen" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/in-app/messages/${id}/seen`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/journeys

Journeys with their status, trigger, expected volume and people in them

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/journeys

Create a draft journey: trigger, waits, branches, splits, sends, goal and exits (nothing is sent until a person turns it on)

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/journeys/$ID

One journey with its steps and expected volume

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### PUT /v1/mkt/lifecycle/journeys/$ID

Change a draft or paused journey (its expected volume is worked out again)

```bash
curl -s -X PUT "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/${id}`, {
  method: "PUT",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/journeys/$ID/archive

Archive a journey: it stops and its queued messages are dropped when they come due

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/$ID/archive" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/${id}/archive`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/journeys/$ID/audience

Who can start a journey that starts from a segment: what was approved, what it is now, how many match and wait, and the limits

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/$ID/audience" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/${id}/audience`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/journeys/$ID/estimate

Work out a journey's expected volume: people entering a day and messages a day and a week

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/$ID/estimate" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/${id}/estimate`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/journeys/$ID/pause

Pause a journey: nothing more is enrolled or sent from it

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/$ID/pause" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/${id}/pause`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/journeys/$ID/results

A journey's results per variant: people messaged, conversions after them, and each variant against the first with a 95% interval

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/$ID/results" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/${id}/results`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/journeys/$ID/simulation

Walk synthetic people through a journey before turning it on: messages per person, how long it takes and what would trip the limits (nothing is written or sent)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/$ID/simulation" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/${id}/simulation`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/journeys/$ID/versions

A journey's saved versions, newest first (at most 50)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/$ID/versions" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/${id}/versions`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/journeys/$ID/versions/diff

What changed between two versions of a journey: steps added, removed and changed, and the trigger, goal and exits

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/$ID/versions/diff" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/${id}/versions/diff`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/journeys/drafts

Describe a goal (welcome, abandoned cart, win-back…) and get a draft journey with its draft messages

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/drafts" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/drafts`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/journeys/drafts/ai-estimate

What rewriting a goal's journey copy with AI would cost (shown before anything is called)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/drafts/ai-estimate" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/journeys/drafts/ai-estimate`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/messages

Messages and why each was sent, held or dropped (by person id; no addresses)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/messages" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/messages`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/messages/held-for-approval

Messages the policy held for a person's approval, grouped by template, journey and broadcast (at most 50 groups)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/messages/held-for-approval" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/messages/held-for-approval`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/overview

Journeys, broadcasts and messages at a glance: what's live, what was sent, held or dropped this week, open alerts and whether sending is paused

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/overview" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/overview`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/platforms/accounts

Connected email platforms we can read and stage drafts in, and what each one supports

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/accounts" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/accounts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/platforms/accounts/$ID/refresh

Read the account's lists, segments, flows and campaigns again (only what changed; nothing is sent or drafted)

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/accounts/$ID/refresh" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/accounts/${id}/refresh`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/platforms/drafts

What we staged in your email platform: draft campaigns and flows and list pushes (counts only)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/drafts" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/drafts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/platforms/drafts

Create a campaign or flow as a draft in your email platform (it isn't sent, scheduled or turned on)

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/drafts" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/drafts`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/platforms/objects

Lists, segments, flows, campaigns, templates and event types read from your email platform (counts only)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/objects" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/objects`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/platforms/staged-journeys

Build one of your journeys in Klaviyo as a flow whose emails are all drafts, or as drafts in Braze, Customer.io or Iterable: its approved messages as templates (or draft newsletters for an empty segment) and its outline. Nothing there is sent or turned on

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/staged-journeys" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/platforms/staged-journeys`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/preferences/$TOKEN

The preference page in a message: what the person gets, by channel. No sign-in, so it sends no key.

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/preferences/$TOKEN"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/preferences/${token}`, {
  method: "GET",
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/preferences/$TOKEN

Save the person's choices from the preference page (turning a channel off acts at once). No sign-in, so it sends no key.

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/preferences/$TOKEN" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/preferences/${token}`, {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### DELETE /v1/mkt/lifecycle/push/devices

Remove a push device token from a person (for example when they sign out of your app)

```bash
curl -s -X DELETE "https://api.scheeleworks.com/v1/mkt/lifecycle/push/devices" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/push/devices`, {
  method: "DELETE",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/push/devices

Register a push device token for a person (at most 10 a person; the oldest is dropped). The token is never returned. Registering a device grants no consent: push marketing still needs the person's consent recorded

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/push/devices" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/push/devices`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/sending/pause

Pause all sending at once: queued messages wait until an owner resumes

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/sending/pause" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/sending/pause`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/settings

Messaging settings: quiet hours, limits per person and per day, double opt-in channels, the holdout, the postal address and sending accounts

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/settings" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/settings`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/settings/reply-drafts

Reply drafts: whether they're on, the daily numbers of automatic answers, what's connected and today's use

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/settings/reply-drafts" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/settings/reply-drafts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/sms/registration

Where your US texting registration stands: the brand's and the campaign's status, and whether texts to US numbers can go

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/sms/registration" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/sms/registration`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/templates

Message templates by channel and purpose, with their status

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/templates" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/templates`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/templates

Create a draft template with merge fields and fallbacks (a person approves it before it's used)

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/templates" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/templates`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/templates/$ID

One template with its pre-launch checks

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/templates/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/templates/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### PATCH /v1/mkt/lifecycle/templates/$ID

Edit a template (an approved one goes back to draft until approved again)

```bash
curl -s -X PATCH "https://api.scheeleworks.com/v1/mkt/lifecycle/templates/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/templates/${id}`, {
  method: "PATCH",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/templates/$ID/adapt

Draft text, push and WhatsApp messages from an email template in the brand's voice (drafts to review)

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/templates/$ID/adapt" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/templates/${id}/adapt`, {
  method: "POST",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}`, "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/templates/$ID/parts-readout

How each alternative of a template's parts did (sends, conversions, an interval), and which are clearly ahead

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/templates/$ID/parts-readout" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/templates/${id}/parts-readout`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/templates/$ID/preview

A rendered preview of a template with a sample person's merge fields, as HTML for a sandboxed frame (no remote content, no script) and as plain text

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/templates/$ID/preview" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/templates/${id}/preview`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/unsubscribe/$TOKEN

The unsubscribe link in a message: asks before acting. No sign-in, so it sends no key.

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/unsubscribe/$TOKEN"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/unsubscribe/${token}`, {
  method: "GET",
});
const data = await res.json();
```

### POST /v1/mkt/lifecycle/unsubscribe/$TOKEN

One-click unsubscribe: marketing on this channel stops at once for every address of the person. No sign-in, so it sends no key.

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/lifecycle/unsubscribe/$TOKEN" \
  -H "content-type: application/json" \
  -d '{}'
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/unsubscribe/${token}`, {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}), // fields: see the OpenAPI schema
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/voice

How each channel's messages sound against the brand's voice (learned from its approved email)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/voice" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/voice`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

### GET /v1/mkt/lifecycle/whatsapp/templates/$ID/status

Whether WhatsApp approved this WhatsApp template (approved, pending, rejected, paused or disabled), by language; read from WhatsApp and kept for 10 minutes

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/lifecycle/whatsapp/templates/$ID/status" \
  -H "Authorization: Bearer $MA_API_KEY"
```

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/lifecycle/whatsapp/templates/${id}/status`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();
```

Request and response schemas: [https://www.scheeleworks.com/openapi.json](https://www.scheeleworks.com/openapi.json). All resources: [API reference](https://www.scheeleworks.com/docs/api).
