# API: Guardrails

| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | `/v1/mkt/governance/audit-export` | Export who approved what (bound to which change), what agents changed and the spend decisions, for a date range (JSON or CSV) | `audit:read` |
| GET | `/v1/mkt/governance/campaign-ceilings` | Daily media ceilings set per campaign, with each campaign's live daily budgets | `marketing:read` |
| PUT | `/v1/mkt/governance/campaign-ceilings/:campaign_id` | Set a campaign's daily media ceiling (an owner; lowering an existing one is anyone's who may change settings), or remove it with null (an owner) | `settings:write` |
| POST | `/v1/mkt/governance/check` | Check copy against the brand guardrails and QA rules before it goes out | `marketing:write` |
| GET | `/v1/mkt/governance/claims` | List marketing claims with their evidence and whether a person approved them | `marketing:read` |
| POST | `/v1/mkt/governance/claims` | Add a claim with its evidence; another person approves it before copy may use it (the only member of an organization approves their own) | `marketing:write` |
| POST | `/v1/mkt/governance/claims/:id/approve` | Approve a claim's evidence (a person other than the one who added it; an organization's only member may approve their own, marked as approved alone) (web app only) | `marketing:write` |
| POST | `/v1/mkt/governance/claims/:id/retire` | Retire a claim (copy can't use it any more) | `marketing:write` |
| GET | `/v1/mkt/governance/connector-scopes` | What each connector asks your accounts for, why, whether it reads or writes, and when it's asked | `marketing:read` |
| GET | `/v1/mkt/governance/data-handling` | What each model receives from your organization and on whose terms, and the commitment that your data never trains a model | `marketing:read` |
| GET | `/v1/mkt/governance/decisions` | List guardrail checks, policy decisions on marketing changes and claim approvals (one by an organization's only member marked as approved alone), newest first | `marketing:read` |
| GET | `/v1/mkt/governance/decisions/export` | Export the decision log for a date range (JSON or CSV, up to 5,000 rows) | `audit:read` |
| POST | `/v1/mkt/governance/erasure/possible-consents` | Likeness and voice consents recorded under a name only that are possibly this person's (the same name as one of their profiles), each with whether you ticked it. An owner, in the web app (web app only) | `settings:write` |
| PUT | `/v1/mkt/governance/erasure/possible-consents` | Tick which of those consents are this person's (the list replaces earlier ticks, for a day); only ticked ones are anonymised and revoked when the person is erased (web app only) | `settings:write` |
| GET | `/v1/mkt/governance/lift-ledger` | The claims ledger: lift figures measured with your own holdouts, the only ones the product states | `marketing:read` |
| POST | `/v1/mkt/governance/lift-ledger/record` | Record the lift your own holdouts measured over a period (only readouts with enough people and a clear result are kept) (web app only) | `marketing:write` |
| GET | `/v1/mkt/governance/likeness-consents` | List recorded likeness and voice consents | `marketing:read` |
| POST | `/v1/mkt/governance/likeness-consents` | Record a person's consent to use their likeness or voice (web app only) | `marketing:write` |
| POST | `/v1/mkt/governance/likeness-consents/:id/revoke` | Withdraw a likeness or voice consent (new uses stop at once) (web app only) | `marketing:write` |
| GET | `/v1/mkt/governance/mcp-gateway` | Outside MCP servers your agents call: whether calls and removals go out, the ad account a vendor's server acts on, and each tool's class | `settings:read` |
| GET | `/v1/mkt/governance/mcp-gateway/calls` | The call log for outside MCP servers: each call's server, tool, class and outcome (never its arguments or answer) | `audit:read` |
| PUT | `/v1/mkt/governance/mcp-gateway/servers/:id` | Turn a server's calls or removals on or off, or mark it as an ads vendor's server for one of your ad accounts (paid media's stop switch and ceilings then apply). Turning something on, or unbinding, is the web app's | `settings:write` |
| PUT | `/v1/mkt/governance/mcp-gateway/servers/:id/tools/:tool` | Classify a server's tool as it is now: read, write or destructive. A tool nobody classified, or one that changed since, isn't called (web app only) | `settings:write` |
| PUT | `/v1/mkt/governance/outside-budget` | Turn on or off budget and spend increases by outside assistants (keys and connected apps). On, they can only propose them for a person; turning it off is the web app's | `settings:write` |
| GET | `/v1/mkt/governance/overview` | The central admin view: every agent (state, pause, autonomy, last run), recent actions, approvals waiting, pauses, spend and connected accounts | `audit:read` |
| POST | `/v1/mkt/governance/preflight` | Before spending credits on a draft, image or video: go, review or stop (pauses, credits left, the guardrails on the brief) | `marketing:write` |
| POST | `/v1/mkt/governance/provenance/embedded` | Read the AI marking embedded in an image, video or audio file and check it was signed here | `marketing:read` |
| POST | `/v1/mkt/governance/provenance/verify` | Check a provenance label was signed here and hasn't been changed | `marketing:read` |
| GET | `/v1/mkt/governance/rule-sets` | List guardrail and QA rule sets | `marketing:read` |
| POST | `/v1/mkt/governance/rule-sets` | Add a rule set written in plain language (one rule per line) | `marketing:write` |
| PATCH | `/v1/mkt/governance/rule-sets/:id` | Change a rule set or turn it on or off | `settings:write` |
| POST | `/v1/mkt/governance/rule-sets/compile` | Preview the checks plain-language rules compile to (saves nothing) | `marketing:read` |
| GET | `/v1/mkt/governance/settings` | Get quiet hours, frequency caps and the monthly media ceiling | `marketing:read` |
| PUT | `/v1/mkt/governance/settings` | Set quiet hours, frequency caps and the monthly media ceiling | `settings:write` |
| GET | `/v1/mkt/governance/spend-accounts` | This month's media spend per connected account against its ceilings, who connected each account, and connections by provider | `audit:read` |

## Examples

### GET /v1/mkt/governance/audit-export

Export who approved what (bound to which change), what agents changed and the spend decisions, for a date range (JSON or CSV)

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

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

### GET /v1/mkt/governance/campaign-ceilings

Daily media ceilings set per campaign, with each campaign's live daily budgets

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

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

### PUT /v1/mkt/governance/campaign-ceilings/$CAMPAIGN_ID

Set a campaign's daily media ceiling (an owner; lowering an existing one is anyone's who may change settings), or remove it with null (an owner)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/governance/campaign-ceilings/${campaign_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/governance/check

Check copy against the brand guardrails and QA rules before it goes out

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

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

List marketing claims with their evidence and whether a person approved them

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

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

### POST /v1/mkt/governance/claims

Add a claim with its evidence; another person approves it before copy may use it (the only member of an organization approves their own)

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

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

Retire a claim (copy can't use it any more)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/governance/claims/${id}/retire`, {
  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/governance/connector-scopes

What each connector asks your accounts for, why, whether it reads or writes, and when it's asked

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

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

### GET /v1/mkt/governance/data-handling

What each model receives from your organization and on whose terms, and the commitment that your data never trains a model

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

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

### GET /v1/mkt/governance/decisions

List guardrail checks, policy decisions on marketing changes and claim approvals (one by an organization's only member marked as approved alone), newest first

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

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

### GET /v1/mkt/governance/decisions/export

Export the decision log for a date range (JSON or CSV, up to 5,000 rows)

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

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

### GET /v1/mkt/governance/lift-ledger

The claims ledger: lift figures measured with your own holdouts, the only ones the product states

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

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

### GET /v1/mkt/governance/likeness-consents

List recorded likeness and voice consents

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

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

### GET /v1/mkt/governance/mcp-gateway

Outside MCP servers your agents call: whether calls and removals go out, the ad account a vendor's server acts on, and each tool's class

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

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

### GET /v1/mkt/governance/mcp-gateway/calls

The call log for outside MCP servers: each call's server, tool, class and outcome (never its arguments or answer)

```bash
curl -s "https://api.scheeleworks.com/v1/mkt/governance/mcp-gateway/calls" \
  -H "Authorization: Bearer $MA_API_KEY"
```

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

### PUT /v1/mkt/governance/mcp-gateway/servers/$ID

Turn a server's calls or removals on or off, or mark it as an ads vendor's server for one of your ad accounts (paid media's stop switch and ceilings then apply). Turning something on, or unbinding, is the web app's

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/governance/mcp-gateway/servers/${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();
```

### PUT /v1/mkt/governance/outside-budget

Turn on or off budget and spend increases by outside assistants (keys and connected apps). On, they can only propose them for a person; turning it off is the web app's

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

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

The central admin view: every agent (state, pause, autonomy, last run), recent actions, approvals waiting, pauses, spend and connected accounts

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

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

### POST /v1/mkt/governance/preflight

Before spending credits on a draft, image or video: go, review or stop (pauses, credits left, the guardrails on the brief)

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/governance/preflight`, {
  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/governance/provenance/embedded

Read the AI marking embedded in an image, video or audio file and check it was signed here

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/governance/provenance/embedded`, {
  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/governance/provenance/verify

Check a provenance label was signed here and hasn't been changed

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/governance/provenance/verify`, {
  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/governance/rule-sets

List guardrail and QA rule sets

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

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

### POST /v1/mkt/governance/rule-sets

Add a rule set written in plain language (one rule per line)

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

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

### PATCH /v1/mkt/governance/rule-sets/$ID

Change a rule set or turn it on or off

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/governance/rule-sets/${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/governance/rule-sets/compile

Preview the checks plain-language rules compile to (saves nothing)

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

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

Get quiet hours, frequency caps and the monthly media ceiling

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

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

### PUT /v1/mkt/governance/settings

Set quiet hours, frequency caps and the monthly media ceiling

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

```js
const res = await fetch(`https://api.scheeleworks.com/v1/mkt/governance/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/governance/spend-accounts

This month's media spend per connected account against its ceilings, who connected each account, and connections by provider

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

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