API reference
API: Agency workspaces
| Method | Path | What it does | Scope |
|---|---|---|---|
| GET | /v1/marketing/agency/branding | The name and logo your clients' reviewers see on their approval portal | settings:read |
| PUT | /v1/marketing/agency/branding | Set 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/clients | Client workspaces this agency manages, each with its monthly credit cap and this month's credits used by module | settings:read |
| POST | /v1/marketing/agency/clients | Add 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/:id | Stop managing a client workspace (its data stays in its own organization; owners) (web app only) | settings:write |
| GET | /v1/marketing/agency/clients/:id | One client workspace's report: its cap and this month's credits by module | settings:read |
| PATCH | /v1/marketing/agency/clients/:id | Rename a client workspace or change its monthly credit cap (owners) (web app only) | settings:write |
| 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) | settings:read |
| GET | /v1/marketing/agency/link-offers | This agency's invitations to client organizations and where each stands (never the codes) | settings:read |
| POST | /v1/marketing/agency/link-offers | Invite 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/:id | Withdraw an open invitation (owners) (web app only) | settings:write |
| POST | /v1/marketing/agency/link-offers/accept | Accept 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/preview | What 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-by | End 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/portal | For a client organization's people: the agency that manages it (its name and logo) for the approval portal | mkt-approvals:read |
| 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 | mkt-approvals:read |
| 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 | mkt-approvals:read |
| POST | /v1/marketing/agency/portal/content-reviews/:id/verdict | Approve 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-report | Per-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();GET /v1/marketing/agency/link-offers
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.