Skip to content

API reference

API: Marketing

Markdown version

MethodPathWhat it doesScope
GET/v1/marketing/account-signalsList account signalsmarketing:read
POST/v1/marketing/account-signalsCreate an account signalmarketing:write
GET/v1/marketing/account-signals/:idGet an account signalmarketing:read
GET/v1/marketing/asset-rightsList asset rightsmarketing:read
POST/v1/marketing/asset-rightsCreate an asset rightmarketing:write
GET/v1/marketing/asset-rights/:idGet an asset rightmarketing:read
GET/v1/marketing/asset-usageList asset usagemarketing:read
POST/v1/marketing/asset-usageCreate an asset usagemarketing:write
GET/v1/marketing/asset-usage/:idGet an asset usagemarketing:read
PATCH/v1/marketing/asset-usage/:idChange an asset usagemarketing:write
GET/v1/marketing/assetsList assetsmarketing:read
POST/v1/marketing/assetsCreate an assetmarketing:write
GET/v1/marketing/assets/:idGet an assetmarketing:read
PATCH/v1/marketing/assets/:idChange an assetmarketing:write
GET/v1/marketing/assets/:id/versionsList an asset's versions with how each was mademarketing:read
POST/v1/marketing/assets/:id/versionsAdd a version to an asset, labeled with how it was mademarketing:write
GET/v1/marketing/autonomyThe kinds of marketing action, their checks and ceilings, and the autonomy levels each allowsmarketing:read
GET/v1/marketing/brandsList brandsmarketing:read
POST/v1/marketing/brandsCreate a brandmarketing:write
GET/v1/marketing/brands/:idGet a brandmarketing:read
PATCH/v1/marketing/brands/:idChange a brandmarketing:write
GET/v1/marketing/brands/:id/versionsList a brand's kit versions, newest first (at most 50)marketing:read
POST/v1/marketing/brands/:id/versionsSave a new version of a brand's kit (earlier versions stay as they were)marketing:write
GET/v1/marketing/campaignsList campaignsmarketing:read
POST/v1/marketing/campaignsCreate a campaignmarketing:write
GET/v1/marketing/campaigns/:idGet a campaignmarketing:read
PATCH/v1/marketing/campaigns/:idChange a campaignmarketing:write
POST/v1/marketing/campaigns/:id/assetsAttach an asset to a campaignmarketing:write
POST/v1/marketing/campaigns/:id/audiencesInclude or exclude a segment in a campaignmarketing:write
GET/v1/marketing/campaigns/:id/linksA campaign's assets and audiencesmarketing:read
GET/v1/marketing/channel-accountsList channel accountsmarketing:read
POST/v1/marketing/channel-accountsCreate a channel accountmarketing:write
GET/v1/marketing/channel-accounts/:idGet a channel accountmarketing:read
PATCH/v1/marketing/channel-accounts/:idChange a channel accountmarketing:write
PUT/v1/marketing/channel-accounts/:id/limitsSet a channel account's autonomy ceiling, spend ceilings and restrictions, or pause it (owners)settings:write
GET/v1/marketing/channel-campaignsList channel campaignsmarketing:read
POST/v1/marketing/channel-campaignsCreate a channel campaignmarketing:write
GET/v1/marketing/channel-campaigns/:idGet a channel campaignmarketing:read
PATCH/v1/marketing/channel-campaigns/:idChange a channel campaignmarketing:write
GET/v1/marketing/channel-entitiesList channel entitiesmarketing:read
POST/v1/marketing/channel-entitiesCreate a channel entitymarketing:write
GET/v1/marketing/channel-entities/:idGet a channel entitymarketing:read
PATCH/v1/marketing/channel-entities/:idChange a channel entitymarketing:write
GET/v1/marketing/companiesList companiesmarketing:read
POST/v1/marketing/companiesCreate a companymarketing:write
GET/v1/marketing/companies/:idGet a companymarketing:read
PATCH/v1/marketing/companies/:idChange a companymarketing:write
GET/v1/marketing/connectorsEach marketing connector before you connect it: what it reads, writes and can spend, its permissions and whether it's readyconnections:read
GET/v1/marketing/creditsCredits used this month and the monthly limitbilling:read
PUT/v1/marketing/credits/limitSet the monthly credit limit (owners; at most the plan's allowance; empty for the plan's allowance)billing:write
POST/v1/marketing/eventsRecord events (up to 500; repeats of the same source and id are ignored)marketing:write
GET/v1/marketing/identitiesList identitiesmarketing:read
POST/v1/marketing/identitiesCreate an identitymarketing:write
GET/v1/marketing/identities/:idGet an identitymarketing:read
GET/v1/marketing/marketsList marketsmarketing:read
POST/v1/marketing/marketsCreate a marketmarketing:write
GET/v1/marketing/markets/:idGet a marketmarketing:read
PATCH/v1/marketing/markets/:idChange a marketmarketing:write
GET/v1/marketing/metricsRead daily metrics for a date range, by campaign, channel account, metric or levelmarketing:read
POST/v1/marketing/metricsWrite daily metrics (up to 1,000 facts; the same fact again replaces its value)marketing:write
GET/v1/marketing/modulesThe product's areas and which ones are on for your organizationmarketing:read
PUT/v1/marketing/modules/:keyTurn an area of the product on or off for your organization (owners)settings:write
GET/v1/marketing/modules/:key/previewWhat turning an area on would do outside the product and what it may cost, before you turn it onmarketing:read
GET/v1/marketing/plansList plansmarketing:read
POST/v1/marketing/plansCreate a planmarketing:write
GET/v1/marketing/plans/:idGet a planmarketing:read
PATCH/v1/marketing/plans/:idChange a planmarketing:write
GET/v1/marketing/productsList productsmarketing:read
POST/v1/marketing/productsCreate a productmarketing:write
GET/v1/marketing/products/:idGet a productmarketing:read
PATCH/v1/marketing/products/:idChange a productmarketing:write
GET/v1/marketing/profilesList profilesmarketing:read
POST/v1/marketing/profilesCreate a profilemarketing:write
GET/v1/marketing/profiles/:idGet a profilemarketing:read
PATCH/v1/marketing/profiles/:idChange a profilemarketing:write
GET/v1/marketing/profiles/:id/consentsA profile's consent: the current state per channel and purpose, and the historymarketing:read
POST/v1/marketing/profiles/:id/consentsRecord a consent change for a profile (kept as history; the latest one counts)marketing:write
GET/v1/marketing/profiles/:id/eventsA profile's events, newest firstmarketing:read
PUT/v1/marketing/profiles/:id/traitsSet a computed trait on a profilemarketing:write
GET/v1/marketing/segmentsList segmentsmarketing:read
POST/v1/marketing/segmentsCreate a segmentmarketing:write
GET/v1/marketing/segments/:idGet a segmentmarketing:read
PATCH/v1/marketing/segments/:idChange a segmentmarketing:write
GET/v1/marketing/switched-offThe abilities that stay off in your areas until an owner turns them on, what each does and where it's turned onmarketing:read

Examples

GET /v1/marketing/account-signals

List account signals

curl -s "https://api.scheeleworks.com/v1/marketing/account-signals" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/account-signals`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/account-signals

Create an account signal

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/account-signals" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/account-signals`, {
  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/marketing/account-signals/$ID

Get an account signal

curl -s "https://api.scheeleworks.com/v1/marketing/account-signals/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/account-signals/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

GET /v1/marketing/asset-rights

List asset rights

curl -s "https://api.scheeleworks.com/v1/marketing/asset-rights" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/asset-rights`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/asset-rights

Create an asset right

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/asset-rights" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/asset-rights`, {
  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/marketing/asset-rights/$ID

Get an asset right

curl -s "https://api.scheeleworks.com/v1/marketing/asset-rights/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/asset-rights/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

GET /v1/marketing/asset-usage

List asset usage

curl -s "https://api.scheeleworks.com/v1/marketing/asset-usage" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/asset-usage`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/asset-usage

Create an asset usage

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/asset-usage" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/asset-usage`, {
  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/marketing/asset-usage/$ID

Get an asset usage

curl -s "https://api.scheeleworks.com/v1/marketing/asset-usage/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/asset-usage/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/asset-usage/$ID

Change an asset usage

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/asset-usage/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/asset-usage/${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();

GET /v1/marketing/assets

List assets

curl -s "https://api.scheeleworks.com/v1/marketing/assets" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/assets`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/assets

Create an asset

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/assets" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/assets`, {
  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/marketing/assets/$ID

Get an asset

curl -s "https://api.scheeleworks.com/v1/marketing/assets/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/assets/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/assets/$ID

Change an asset

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/assets/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/assets/${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();

GET /v1/marketing/assets/$ID/versions

List an asset's versions with how each was made

curl -s "https://api.scheeleworks.com/v1/marketing/assets/$ID/versions" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/assets/${id}/versions`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/assets/$ID/versions

Add a version to an asset, labeled with how it was made

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/assets/$ID/versions" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/assets/${id}/versions`, {
  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/marketing/autonomy

The kinds of marketing action, their checks and ceilings, and the autonomy levels each allows

curl -s "https://api.scheeleworks.com/v1/marketing/autonomy" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/autonomy`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

GET /v1/marketing/brands

List brands

curl -s "https://api.scheeleworks.com/v1/marketing/brands" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/brands`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/brands

Create a brand

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/brands" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/brands`, {
  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/marketing/brands/$ID

Get a brand

curl -s "https://api.scheeleworks.com/v1/marketing/brands/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/brands/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/brands/$ID

Change a brand

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/brands/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/brands/${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();

GET /v1/marketing/brands/$ID/versions

List a brand's kit versions, newest first (at most 50)

curl -s "https://api.scheeleworks.com/v1/marketing/brands/$ID/versions" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/brands/${id}/versions`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/brands/$ID/versions

Save a new version of a brand's kit (earlier versions stay as they were)

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/brands/$ID/versions" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/brands/${id}/versions`, {
  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/marketing/campaigns

List campaigns

curl -s "https://api.scheeleworks.com/v1/marketing/campaigns" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/campaigns`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/campaigns

Create a campaign

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/campaigns" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/campaigns`, {
  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/marketing/campaigns/$ID

Get a campaign

curl -s "https://api.scheeleworks.com/v1/marketing/campaigns/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/campaigns/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/campaigns/$ID

Change a campaign

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/campaigns/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/campaigns/${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/marketing/campaigns/$ID/assets

Attach an asset to a campaign

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/campaigns/$ID/assets" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/campaigns/${id}/assets`, {
  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/marketing/campaigns/$ID/audiences

Include or exclude a segment in a campaign

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/campaigns/$ID/audiences" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/campaigns/${id}/audiences`, {
  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();

A campaign's assets and audiences

curl -s "https://api.scheeleworks.com/v1/marketing/campaigns/$ID/links" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/campaigns/${id}/links`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

GET /v1/marketing/channel-accounts

List channel accounts

curl -s "https://api.scheeleworks.com/v1/marketing/channel-accounts" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-accounts`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/channel-accounts

Create a channel account

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/channel-accounts" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-accounts`, {
  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/marketing/channel-accounts/$ID

Get a channel account

curl -s "https://api.scheeleworks.com/v1/marketing/channel-accounts/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-accounts/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/channel-accounts/$ID

Change a channel account

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/channel-accounts/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-accounts/${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();

PUT /v1/marketing/channel-accounts/$ID/limits

Set a channel account's autonomy ceiling, spend ceilings and restrictions, or pause it (owners)

curl -s -X PUT "https://api.scheeleworks.com/v1/marketing/channel-accounts/$ID/limits" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-accounts/${id}/limits`, {
  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/marketing/channel-campaigns

List channel campaigns

curl -s "https://api.scheeleworks.com/v1/marketing/channel-campaigns" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-campaigns`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/channel-campaigns

Create a channel campaign

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/channel-campaigns" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-campaigns`, {
  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/marketing/channel-campaigns/$ID

Get a channel campaign

curl -s "https://api.scheeleworks.com/v1/marketing/channel-campaigns/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-campaigns/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/channel-campaigns/$ID

Change a channel campaign

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/channel-campaigns/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-campaigns/${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();

GET /v1/marketing/channel-entities

List channel entities

curl -s "https://api.scheeleworks.com/v1/marketing/channel-entities" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-entities`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/channel-entities

Create a channel entity

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/channel-entities" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-entities`, {
  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/marketing/channel-entities/$ID

Get a channel entity

curl -s "https://api.scheeleworks.com/v1/marketing/channel-entities/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-entities/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/channel-entities/$ID

Change a channel entity

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/channel-entities/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/channel-entities/${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();

GET /v1/marketing/companies

List companies

curl -s "https://api.scheeleworks.com/v1/marketing/companies" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/companies`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/companies

Create a company

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/companies" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/companies`, {
  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/marketing/companies/$ID

Get a company

curl -s "https://api.scheeleworks.com/v1/marketing/companies/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/companies/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/companies/$ID

Change a company

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/companies/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/companies/${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();

GET /v1/marketing/connectors

Each marketing connector before you connect it: what it reads, writes and can spend, its permissions and whether it's ready

curl -s "https://api.scheeleworks.com/v1/marketing/connectors" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/connectors`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

GET /v1/marketing/credits

Credits used this month and the monthly limit

curl -s "https://api.scheeleworks.com/v1/marketing/credits" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/credits`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PUT /v1/marketing/credits/limit

Set the monthly credit limit (owners; at most the plan's allowance; empty for the plan's allowance)

curl -s -X PUT "https://api.scheeleworks.com/v1/marketing/credits/limit" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/credits/limit`, {
  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/marketing/events

Record events (up to 500; repeats of the same source and id are ignored)

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/events" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/events`, {
  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/marketing/identities

List identities

curl -s "https://api.scheeleworks.com/v1/marketing/identities" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/identities`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/identities

Create an identity

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/identities" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/identities`, {
  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/marketing/identities/$ID

Get an identity

curl -s "https://api.scheeleworks.com/v1/marketing/identities/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/identities/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

GET /v1/marketing/markets

List markets

curl -s "https://api.scheeleworks.com/v1/marketing/markets" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/markets`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/markets

Create a market

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/markets" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/markets`, {
  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/marketing/markets/$ID

Get a market

curl -s "https://api.scheeleworks.com/v1/marketing/markets/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/markets/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/markets/$ID

Change a market

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/markets/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/markets/${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();

GET /v1/marketing/metrics

Read daily metrics for a date range, by campaign, channel account, metric or level

curl -s "https://api.scheeleworks.com/v1/marketing/metrics" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/metrics`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/metrics

Write daily metrics (up to 1,000 facts; the same fact again replaces its value)

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/metrics" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/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();

GET /v1/marketing/modules

The product's areas and which ones are on for your organization

curl -s "https://api.scheeleworks.com/v1/marketing/modules" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/modules`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PUT /v1/marketing/modules/$KEY

Turn an area of the product on or off for your organization (owners)

curl -s -X PUT "https://api.scheeleworks.com/v1/marketing/modules/$KEY" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/modules/${key}`, {
  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/marketing/modules/$KEY/preview

What turning an area on would do outside the product and what it may cost, before you turn it on

curl -s "https://api.scheeleworks.com/v1/marketing/modules/$KEY/preview" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/modules/${key}/preview`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

GET /v1/marketing/plans

List plans

curl -s "https://api.scheeleworks.com/v1/marketing/plans" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/plans`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/plans

Create a plan

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/plans" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/plans`, {
  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/marketing/plans/$ID

Get a plan

curl -s "https://api.scheeleworks.com/v1/marketing/plans/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/plans/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/plans/$ID

Change a plan

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/plans/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/plans/${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();

GET /v1/marketing/products

List products

curl -s "https://api.scheeleworks.com/v1/marketing/products" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/products`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/products

Create a product

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/products" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/products`, {
  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/marketing/products/$ID

Get a product

curl -s "https://api.scheeleworks.com/v1/marketing/products/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/products/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/products/$ID

Change a product

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/products/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/products/${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();

GET /v1/marketing/profiles

List profiles

curl -s "https://api.scheeleworks.com/v1/marketing/profiles" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/profiles`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/profiles

Create a profile

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/profiles" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/profiles`, {
  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/marketing/profiles/$ID

Get a profile

curl -s "https://api.scheeleworks.com/v1/marketing/profiles/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/profiles/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/profiles/$ID

Change a profile

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/profiles/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/profiles/${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();

GET /v1/marketing/profiles/$ID/consents

A profile's consent: the current state per channel and purpose, and the history

curl -s "https://api.scheeleworks.com/v1/marketing/profiles/$ID/consents" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/profiles/${id}/consents`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/profiles/$ID/consents

Record a consent change for a profile (kept as history; the latest one counts)

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/profiles/$ID/consents" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/profiles/${id}/consents`, {
  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/marketing/profiles/$ID/events

A profile's events, newest first

curl -s "https://api.scheeleworks.com/v1/marketing/profiles/$ID/events" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/profiles/${id}/events`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PUT /v1/marketing/profiles/$ID/traits

Set a computed trait on a profile

curl -s -X PUT "https://api.scheeleworks.com/v1/marketing/profiles/$ID/traits" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/profiles/${id}/traits`, {
  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/marketing/segments

List segments

curl -s "https://api.scheeleworks.com/v1/marketing/segments" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/segments`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

POST /v1/marketing/segments

Create a segment

curl -s -X POST "https://api.scheeleworks.com/v1/marketing/segments" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/segments`, {
  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/marketing/segments/$ID

Get a segment

curl -s "https://api.scheeleworks.com/v1/marketing/segments/$ID" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/segments/${id}`, {
  method: "GET",
  headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();

PATCH /v1/marketing/segments/$ID

Change a segment

curl -s -X PATCH "https://api.scheeleworks.com/v1/marketing/segments/$ID" \
  -H "Authorization: Bearer $MA_API_KEY" \
  -H "content-type: application/json" \
  -d '{}'
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/segments/${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();

GET /v1/marketing/switched-off

The abilities that stay off in your areas until an owner turns them on, what each does and where it's turned on

curl -s "https://api.scheeleworks.com/v1/marketing/switched-off" \
  -H "Authorization: Bearer $MA_API_KEY"
const res = await fetch(`https://api.scheeleworks.com/v1/marketing/switched-off`, {
  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. All resources: API reference.

Send feedback

Tell us what's broken, confusing or missing on this page, or an idea. It goes to the team that builds the product.
Please don't include passwords or card numbers.
Only to reply about this. Never added to any mailing list.