Skip to content

API reference

API: Privacy

Markdown version

MethodPathWhat it doesScope
POST/v1/marketing/privacy/requests/eraseErase a person's data in every module (the address typed twice; an owner, in the web app). A hashed do-not-contact entry is kept so they aren't contacted again (web app only)settings:write
POST/v1/marketing/privacy/requests/exportA person's data as a JSON file, to answer their request for it (an owner, in the web app; audited without the address). A long history comes in parts of up to 25,000 records: send next_cursor back as cursor for the next one (web app only)settings:write
POST/v1/marketing/privacy/requests/previewWhat's held on a person, found by email address: how many people, and rows per table (never the rows). An owner, in the web app (web app only)settings:write
GET/v1/marketing/privacy/retentionHow long people's events are kept (null keeps them)settings:read
PUT/v1/marketing/privacy/retentionSet how many days people's events are kept (30 to 3,650; null keeps them). An owner, in the web app; a daily job deletes what's older (web app only)settings:write

Examples

GET /v1/marketing/privacy/retention

How long people's events are kept (null keeps them)

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