Skip to content

API reference

API: Plans and credits

Markdown version

MethodPathWhat it doesScope
GET/v1/marketing/first-run/auditA read-only first look: what the product found in your own data and what it would do first (nothing is sent, published or spent)marketing:read
GET/v1/marketing/first-run/progressWhere your organization is in setup (the step, the goals picked, the website given), or null before it startsmarketing:read
PUT/v1/marketing/first-run/progressSave where you are in setup, so leaving it (to connect an account, a reload, another device) never loses your place (web app only)marketing:write
GET/v1/marketing/planThe plans (prices, allowances, modules, autonomy), credit prices and the organization's current planbilling:read
PUT/v1/marketing/plan/currentChoose the organization's plan (owners). Paid plans open when paid sign-ups do; until then only Free can be chosen and nothing is charged (web app only)billing:write
GET/v1/marketing/plan/limitsThe plan's limits beyond credits (brands, connected accounts, people) and how many are in use; nothing is ever charged at a limitbilling:read
GET/v1/marketing/plan/outcomesOutcome-priced options, which this organization turned on, and this month's outcomes priced at the catalog's rates (a statement: nothing is charged)billing:read
PUT/v1/marketing/plan/outcomes/:idTurn an outcome-priced option on or off (owners; counted from now on, never before) (web app only)billing:write
GET/v1/marketing/plan/trialThis organization's trial of a paid plan (if any) and whether trials are openbilling:read
POST/v1/marketing/plan/trialStart the organization's one 14-day trial of Starter or Growth (owners on Free; no card; back to Free when it ends; nothing is charged) (web app only)billing:write
GET/v1/marketing/usageThis month's credits used by module against the monthly cap, the 50/80/100 percent alerts and what happens at the capbilling:read
POST/v1/marketing/usage/top-upsBuy more credits (1000 for $10; owners). Refused while paid sign-ups are off; nothing is charged (web app only)billing:write

Examples

GET /v1/marketing/first-run/audit

A read-only first look: what the product found in your own data and what it would do first (nothing is sent, published or spent)

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

GET /v1/marketing/first-run/progress

Where your organization is in setup (the step, the goals picked, the website given), or null before it starts

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

GET /v1/marketing/plan

The plans (prices, allowances, modules, autonomy), credit prices and the organization's current plan

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

GET /v1/marketing/plan/limits

The plan's limits beyond credits (brands, connected accounts, people) and how many are in use; nothing is ever charged at a limit

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

GET /v1/marketing/plan/outcomes

Outcome-priced options, which this organization turned on, and this month's outcomes priced at the catalog's rates (a statement: nothing is charged)

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

GET /v1/marketing/plan/trial

This organization's trial of a paid plan (if any) and whether trials are open

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

GET /v1/marketing/usage

This month's credits used by module against the monthly cap, the 50/80/100 percent alerts and what happens at the cap

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