Skip to content

API reference

API: Agency workspaces

Markdown version

MethodPathWhat it doesScope
GET/v1/marketing/agency/brandingThe name and logo your clients' reviewers see on their approval portalsettings:read
PUT/v1/marketing/agency/brandingSet the name and logo (your own PNG, JPEG or WebP, at most 64 KB) your clients' reviewers see (owners, Agency plan) (web app only)settings:write
GET/v1/marketing/agency/clientsClient workspaces this agency manages, each with its monthly credit cap and this month's credits used by modulesettings:read
POST/v1/marketing/agency/clientsAdd a client workspace: an organization you also own, with its own monthly credit cap (owners, Agency plan) (web app only)settings:write
DELETE/v1/marketing/agency/clients/:idStop managing a client workspace (its data stays in its own organization; owners) (web app only)settings:write
GET/v1/marketing/agency/clients/:idOne client workspace's report: its cap and this month's credits by modulesettings:read
PATCH/v1/marketing/agency/clients/:idRename a client workspace or change its monthly credit cap (owners) (web app only)settings:write
GET/v1/marketing/agency/clients/:id/statementOne client workspace's statement for this month at list prices, as JSON or CSV (nothing is charged)settings:read
GET/v1/marketing/agency/link-offersThis agency's invitations to client organizations and where each stands (never the codes)settings:read
POST/v1/marketing/agency/link-offersInvite a client organization to be managed by this agency: a one-time code, shown once, that the client's owner accepts within 7 days (owners, Agency plan) (web app only)settings:write
DELETE/v1/marketing/agency/link-offers/:idWithdraw an open invitation (owners) (web app only)settings:write
POST/v1/marketing/agency/link-offers/acceptAccept an agency's invitation for this organization to be managed by it (owners of this organization, in the web app) (web app only)settings:write
POST/v1/marketing/agency/link-offers/previewWhat an agency's invitation offers this organization (the agency and the monthly credit limit), before an owner accepts it (web app only)settings:write
DELETE/v1/marketing/agency/managed-byEnd the agency's management of this organization (owners of this organization; its data and limits stay) (web app only)settings:write
GET/v1/marketing/agency/portalFor a client organization's people: the agency that manages it (its name and logo) for the approval portalmkt-approvals:read
GET/v1/marketing/agency/portal/content-reviewsFor the approval portal: content pieces waiting for review in this organization, each with the version to decide and whether you may decide its current stepmkt-approvals:read
GET/v1/marketing/agency/portal/content-reviews/:id/fileFor the approval portal: the file under review (a picture, video, sound or PDF, by its bytes, at most 8 MB), to see before decidingmkt-approvals:read
POST/v1/marketing/agency/portal/content-reviews/:id/verdictApprove a content piece or ask for changes from the approval portal (the same checks as in the content studio; bound to the version shown) (web app only)mkt-approvals:write
GET/v1/marketing/agency/usage-reportPer-client usage this month and the list price per client workspace, as JSON or CSV (a report: nothing is charged)settings:read

Examples

GET /v1/marketing/agency/branding

The name and logo your clients' reviewers see on their approval portal

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

GET /v1/marketing/agency/clients

Client workspaces this agency manages, each with its monthly credit cap and this month's credits used by module

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

GET /v1/marketing/agency/clients/$ID

One client workspace's report: its cap and this month's credits by module

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

GET /v1/marketing/agency/clients/$ID/statement

One client workspace's statement for this month at list prices, as JSON or CSV (nothing is charged)

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

This agency's invitations to client organizations and where each stands (never the codes)

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

GET /v1/marketing/agency/portal

For a client organization's people: the agency that manages it (its name and logo) for the approval portal

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

GET /v1/marketing/agency/portal/content-reviews

For the approval portal: content pieces waiting for review in this organization, each with the version to decide and whether you may decide its current step

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

GET /v1/marketing/agency/portal/content-reviews/$ID/file

For the approval portal: the file under review (a picture, video, sound or PDF, by its bytes, at most 8 MB), to see before deciding

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

GET /v1/marketing/agency/usage-report

Per-client usage this month and the list price per client workspace, as JSON or CSV (a report: nothing is charged)

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