# API: Measurement

| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | `/v1/mkt/measure/alerts` | Data-quality alerts, newest first: each carries every issue its check found | `marketing:read` |
| POST | `/v1/mkt/measure/alerts/:id/resolve` | Mark a data alert as dealt with | `marketing:write` |
| GET | `/v1/mkt/measure/attribution` | Credit by channel and campaign under an attribution model, from consented journeys only, beside what each ad platform reports | `marketing:read` |
| POST | `/v1/mkt/measure/attribution` | Keep an attribution result (for reports and later comparison) | `marketing:write` |
| GET | `/v1/mkt/measure/attribution/export` | Attribution as a table for a spreadsheet or a warehouse (CSV: model, period, channel, campaign, credit, value) | `marketing:read` |
| GET | `/v1/mkt/measure/attribution/saved` | Attribution results kept earlier, newest first | `marketing:read` |
| GET | `/v1/mkt/measure/benchmarks` | Benchmarks of agent-managed campaigns against campaigns left to the ad platform's own automation, newest first | `marketing:read` |
| POST | `/v1/mkt/measure/benchmarks` | Set a benchmark (a person): campaigns split at random, or as you choose, into ones held to the platform's own automation until the end date and ones the agents keep managing. Held campaigns take no agent or rule change; your own changes, pauses and cuts still go (web app only) | `marketing:write` |
| GET | `/v1/mkt/measure/benchmarks/:id` | A benchmark with its readout so far: the difference with its 95% interval, or why it is too small to say | `marketing:read` |
| POST | `/v1/mkt/measure/benchmarks/:id/end` | End a benchmark now (a person): the holds lift at once and the readout is kept (web app only) | `marketing:write` |
| GET | `/v1/mkt/measure/channels` | Per channel, side by side: attribution, what the platform reports, the mix model and lift tests, with their ranges and where they disagree (never averaged) | `marketing:read` |
| POST | `/v1/mkt/measure/checks` | Check yesterday's data now (gaps, spikes, double counting, currency, naming and tracking tags); every issue goes in one alert | `marketing:write` |
| GET | `/v1/mkt/measure/first-model` | Where your first mix model stands: the days of spend so far, and the model with how much data it had and how uncertain it is | `marketing:read` |
| PUT | `/v1/mkt/measure/fx-rates/:currency` | Set a currency's rate into your reporting currency (owners) | `settings:write` |
| GET | `/v1/mkt/measure/holdouts` | Measured lift of each kind of automatic work and each agent against its holdout, with the uncertainty | `marketing:read` |
| GET | `/v1/mkt/measure/holdouts/agents` | Each agent's contribution per kind of work against its holdout, with the agent's name and the uncertainty | `marketing:read` |
| GET | `/v1/mkt/measure/lift-tests` | Geo and time-based lift tests with their design and readout | `marketing:read` |
| POST | `/v1/mkt/measure/lift-tests` | Design a geo or on/off lift test: controls chosen, and the smallest change it can detect stated before anything changes | `marketing:write` |
| POST | `/v1/mkt/measure/lift-tests/:id/begin` | Record that a lift test has begun (the spend change itself is approved in paid media) | `marketing:write` |
| POST | `/v1/mkt/measure/lift-tests/:id/readout` | Read a lift test: the lift with its interval and a plain verdict (before its planned end, an interim look); the test's spend is entered by a person | `marketing:write` |
| GET | `/v1/mkt/measure/metrics` | Every metric with its formula: the built-in ones and your own | `marketing:read` |
| POST | `/v1/mkt/measure/metrics` | Define your own metric as a formula over the others (for example conversions / sessions) | `marketing:write` |
| POST | `/v1/mkt/measure/model-questions` | Ask about your mix model in plain words (best return, next unit of spend, moving budget, the best split, how sure it is, what to test); answers are estimates with ranges | `marketing:read` |
| GET | `/v1/mkt/measure/models` | Marketing-mix models fitted for your organization, newest first | `marketing:read` |
| POST | `/v1/mkt/measure/models` | Fit a marketing-mix model from your spend and results (calibrated by lift tests that were read) | `marketing:write` |
| POST | `/v1/mkt/measure/models/:id/scenario` | Split a daily budget across channels by the model's response curves (a scenario: nothing changes) | `marketing:read` |
| GET | `/v1/mkt/measure/numbers` | Metrics over a period by day, week, channel, campaign or in total, with the query, the sources and any data warnings | `marketing:read` |
| POST | `/v1/mkt/measure/offline-imports` | Import offline spend and results (TV, mail, events) from a file's rows; filed only, nothing acts on it | `marketing:write` |
| GET | `/v1/mkt/measure/overview` | Key results across channels for a period against the one before, with open data alerts and how fresh each source is | `marketing:read` |
| POST | `/v1/mkt/measure/questions` | Ask a question in plain words; get the numbers, the query that produced them and the sources | `marketing:read` |
| POST | `/v1/mkt/measure/readers/:id/cohorts` | Read an analytics account's new people by week, their activation and how many came back, now (aggregates only, filed only) | `marketing:write` |
| PUT | `/v1/mkt/measure/readers/:id/options` | Choose an analytics account's activation event, the event Mixpanel cohorts start with, the Amplitude charts to read, or PostHog's cloud | `marketing:write` |
| POST | `/v1/mkt/measure/readers/:id/refresh` | Read a connected analytics account's daily event counts, or a data source's daily figures, now (filed only) | `marketing:write` |
| GET | `/v1/mkt/measure/readers/:id/retention` | Activation and retention by cohort week, as read from an analytics account (groups below the minimum size aren't shown) | `marketing:read` |
| GET | `/v1/mkt/measure/recommendations` | Budget recommendations from your mix model (the expected change with its range), newest first | `marketing:read` |
| POST | `/v1/mkt/measure/recommendations` | Ask the latest mix model for a budget recommendation now (filed in the app; nothing changes) | `marketing:write` |
| POST | `/v1/mkt/measure/recommendations/:id/dismiss` | Dismiss a recommendation (web app only) | `marketing:write` |
| POST | `/v1/mkt/measure/recommendations/:id/paid-proposals` | Send a recommendation to paid media: one budget proposal per live campaign, each waiting for its own approval there (a person, in the app) (web app only) | `marketing:write` |
| GET | `/v1/mkt/measure/report-runs/:id` | One report run with its numbers, as CSV for a spreadsheet or a warehouse, or as slides (PowerPoint) | `marketing:read` |
| GET | `/v1/mkt/measure/reports` | Saved reports and dashboards | `marketing:read` |
| POST | `/v1/mkt/measure/reports` | Save a report: metrics, grouping, period and an optional weekly or monthly schedule | `marketing:write` |
| POST | `/v1/mkt/measure/reports/:id/refresh` | Produce a report now (kept with its numbers, query and sources; at most 20 a report a day) | `marketing:write` |
| GET | `/v1/mkt/measure/reports/:id/runs` | A report's earlier runs, newest first (at most 50) | `marketing:read` |
| GET | `/v1/mkt/measure/settings` | Measurement settings: reporting currency and rates, minimum group size, holdouts, attribution window, naming rules, report notices | `marketing:read` |
| PUT | `/v1/mkt/measure/settings` | Change measurement settings (owners) | `settings:write` |
| GET | `/v1/mkt/measure/value-model` | The predicted-value model from your order history: how it predicts, its back-test, and whether paid media sends it | `marketing:read` |
| POST | `/v1/mkt/measure/value-model` | Fit the predicted-value model from your order history now, with its back-test (a person; once a day; filed only, nothing is sent) (web app only) | `marketing:write` |
| PUT | `/v1/mkt/measure/value-model/use` | Turn the predicted value on or off for paid media's conversion uploads (owners; only with a usable model; only for people who agreed to personalized ads) (web app only) | `settings:write` |
| GET | `/v1/mkt/measure/voice` | Voice-of-customer syntheses: themes with their sentiment and example quotes (names and addresses removed), newest first | `marketing:read` |
| POST | `/v1/mkt/measure/voice` | Synthesize what customers say in reviews, inbox messages and survey answers into themes (confirm the estimate's credits; at most 4 a day) | `marketing:write` |
| POST | `/v1/mkt/measure/voice/estimate` | What a voice-of-customer synthesis would read and cost, before it runs | `marketing:read` |
| POST | `/v1/mkt/measure/warehouse-exports` | Write attribution or a report's results to a table in your BigQuery or Snowflake warehouse (owners): aggregates only, up to 10,000 rows (web app only) | `settings:write` |

## Examples

### GET /v1/mkt/measure/alerts

Data-quality alerts, newest first: each carries every issue its check found

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

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

### POST /v1/mkt/measure/alerts/$ID/resolve

Mark a data alert as dealt with

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/alerts/${id}/resolve`, {
  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/measure/attribution

Credit by channel and campaign under an attribution model, from consented journeys only, beside what each ad platform reports

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

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

### POST /v1/mkt/measure/attribution

Keep an attribution result (for reports and later comparison)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/attribution`, {
  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/measure/attribution/export

Attribution as a table for a spreadsheet or a warehouse (CSV: model, period, channel, campaign, credit, value)

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

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

### GET /v1/mkt/measure/attribution/saved

Attribution results kept earlier, newest first

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

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

### GET /v1/mkt/measure/benchmarks

Benchmarks of agent-managed campaigns against campaigns left to the ad platform's own automation, newest first

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

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

### GET /v1/mkt/measure/benchmarks/$ID

A benchmark with its readout so far: the difference with its 95% interval, or why it is too small to say

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

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

### GET /v1/mkt/measure/channels

Per channel, side by side: attribution, what the platform reports, the mix model and lift tests, with their ranges and where they disagree (never averaged)

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

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

### POST /v1/mkt/measure/checks

Check yesterday's data now (gaps, spikes, double counting, currency, naming and tracking tags); every issue goes in one alert

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/checks`, {
  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/measure/first-model

Where your first mix model stands: the days of spend so far, and the model with how much data it had and how uncertain it is

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

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

### PUT /v1/mkt/measure/fx-rates/$CURRENCY

Set a currency's rate into your reporting currency (owners)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/fx-rates/${currency}`, {
  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();
```

### GET /v1/mkt/measure/holdouts

Measured lift of each kind of automatic work and each agent against its holdout, with the uncertainty

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

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

### GET /v1/mkt/measure/holdouts/agents

Each agent's contribution per kind of work against its holdout, with the agent's name and the uncertainty

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

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

### GET /v1/mkt/measure/lift-tests

Geo and time-based lift tests with their design and readout

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

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

### POST /v1/mkt/measure/lift-tests

Design a geo or on/off lift test: controls chosen, and the smallest change it can detect stated before anything changes

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/lift-tests`, {
  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/measure/lift-tests/$ID/begin

Record that a lift test has begun (the spend change itself is approved in paid media)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/lift-tests/${id}/begin`, {
  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/measure/lift-tests/$ID/readout

Read a lift test: the lift with its interval and a plain verdict (before its planned end, an interim look); the test's spend is entered by a person

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/lift-tests/${id}/readout`, {
  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/measure/metrics

Every metric with its formula: the built-in ones and your own

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

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

### POST /v1/mkt/measure/metrics

Define your own metric as a formula over the others (for example conversions / sessions)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/metrics`, {
  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/measure/model-questions

Ask about your mix model in plain words (best return, next unit of spend, moving budget, the best split, how sure it is, what to test); answers are estimates with ranges

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/model-questions`, {
  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/measure/models

Marketing-mix models fitted for your organization, newest first

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

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

### POST /v1/mkt/measure/models

Fit a marketing-mix model from your spend and results (calibrated by lift tests that were read)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/models`, {
  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/measure/models/$ID/scenario

Split a daily budget across channels by the model's response curves (a scenario: nothing changes)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/models/${id}/scenario`, {
  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/measure/numbers

Metrics over a period by day, week, channel, campaign or in total, with the query, the sources and any data warnings

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

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

### POST /v1/mkt/measure/offline-imports

Import offline spend and results (TV, mail, events) from a file's rows; filed only, nothing acts on it

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/offline-imports`, {
  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/measure/overview

Key results across channels for a period against the one before, with open data alerts and how fresh each source is

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

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

### POST /v1/mkt/measure/questions

Ask a question in plain words; get the numbers, the query that produced them and the sources

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/questions`, {
  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/measure/readers/$ID/cohorts

Read an analytics account's new people by week, their activation and how many came back, now (aggregates only, filed only)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/readers/${id}/cohorts`, {
  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();
```

### PUT /v1/mkt/measure/readers/$ID/options

Choose an analytics account's activation event, the event Mixpanel cohorts start with, the Amplitude charts to read, or PostHog's cloud

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/readers/${id}/options`, {
  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/measure/readers/$ID/refresh

Read a connected analytics account's daily event counts, or a data source's daily figures, now (filed only)

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/measure/readers/$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/measure/readers/${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/measure/readers/$ID/retention

Activation and retention by cohort week, as read from an analytics account (groups below the minimum size aren't shown)

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

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

### GET /v1/mkt/measure/recommendations

Budget recommendations from your mix model (the expected change with its range), newest first

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

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

### POST /v1/mkt/measure/recommendations

Ask the latest mix model for a budget recommendation now (filed in the app; nothing changes)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/recommendations`, {
  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/measure/report-runs/$ID

One report run with its numbers, as CSV for a spreadsheet or a warehouse, or as slides (PowerPoint)

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

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

### GET /v1/mkt/measure/reports

Saved reports and dashboards

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

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

### POST /v1/mkt/measure/reports

Save a report: metrics, grouping, period and an optional weekly or monthly schedule

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/reports`, {
  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/measure/reports/$ID/refresh

Produce a report now (kept with its numbers, query and sources; at most 20 a report a day)

```bash
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/measure/reports/$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/measure/reports/${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/measure/reports/$ID/runs

A report's earlier runs, newest first (at most 50)

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

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

### GET /v1/mkt/measure/settings

Measurement settings: reporting currency and rates, minimum group size, holdouts, attribution window, naming rules, report notices

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

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

### PUT /v1/mkt/measure/settings

Change measurement settings (owners)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/settings`, {
  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();
```

### GET /v1/mkt/measure/value-model

The predicted-value model from your order history: how it predicts, its back-test, and whether paid media sends it

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

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

### GET /v1/mkt/measure/voice

Voice-of-customer syntheses: themes with their sentiment and example quotes (names and addresses removed), newest first

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

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

### POST /v1/mkt/measure/voice

Synthesize what customers say in reviews, inbox messages and survey answers into themes (confirm the estimate's credits; at most 4 a day)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/voice`, {
  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/measure/voice/estimate

What a voice-of-customer synthesis would read and cost, before it runs

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/measure/voice/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();
```

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).
