API reference
API: Audiences
| Method | Path | What it does | Scope |
|---|---|---|---|
| POST | /v1/mkt/audiences/clean-room-files | Prepare a segment for a clean room or an identity partner (owners): hashed identifiers of people who agreed to advertising use only, never the do-not-contact list, at least 1,000 people (web app only) | settings:write |
| POST | /v1/mkt/audiences/clean-room-overlaps | Record a partner's overlap report as counts only (owners); a small overlap isn't shown (web app only) | settings:write |
| POST | /v1/mkt/audiences/conversations | Pass on a conversation with one of your people (a help desk, the sales team): its facts are filed on their profile when insights are on; the text isn't kept | marketing:write |
| POST | /v1/mkt/audiences/events | Send events from your server (at most 500 at a time; each is kept once by its event id; properties never keep addresses) | marketing:write |
| GET | /v1/mkt/audiences/export/:kind | Download your audience data, one page at a time (owners, from the web app): people with their addresses, events, consents, traits, suppressions (hashed), segments and scores (web app only) | security:write |
| GET | /v1/mkt/audiences/hightouch/:id/models | Your Hightouch models, 100 at a time | marketing:read |
| GET | /v1/mkt/audiences/hightouch/:id/syncs | Your Hightouch syncs, 100 at a time | marketing:read |
| POST | /v1/mkt/audiences/hightouch/:id/syncs/:syncId/runs | Start a Hightouch sync run (owners): it sends that model's rows where the sync points in Hightouch (web app only) | settings:write |
| POST | /v1/mkt/audiences/imports | Read people and their traits from your warehouse with a read-only query (owners); filed as history, nothing is sent because of it (web app only) | settings:write |
| GET | /v1/mkt/audiences/merges | People who look like the same person (a shared email, phone, customer id or device), waiting for a decision | marketing:read |
| POST | /v1/mkt/audiences/merges/:id | Merge two people into one, or keep them apart (a person, from the web app) (web app only) | marketing:write |
| POST | /v1/mkt/audiences/merges/scan | Look for people who share an identifier and list them for review | marketing:write |
| GET | /v1/mkt/audiences/people-imports | Your latest imports of people and what each one did (counts and refused lines; never an address) | marketing:read |
| POST | /v1/mkt/audiences/people-imports | Import people from a CSV file (at most 10,000 and 2 MB): you say where the list came from and that they agreed to hear from you, per channel; filed as history (nothing is sent), the do-not-contact list always wins (owners) (web app only) | settings:write |
| GET | /v1/mkt/audiences/people-imports/:id | One import of people and its result | marketing:read |
| POST | /v1/mkt/audiences/predictions | Predict each person's chance of doing an event in the next 7 to 90 days (from your own systems' events), stored as a trait segments can use, with a backtest | marketing:write |
| GET | /v1/mkt/audiences/profiles/:id/context | One person's context for marketing: country, traits, recent events, consents and scores (no addresses) | marketing:read |
| GET | /v1/mkt/audiences/profiles/:id/conversation-insights | What a person's replies and conversations said (intent, sentiment, topics, preferences), never the text | marketing:read |
| GET | /v1/mkt/audiences/score-models | Scoring models with their rules, qualified-lead threshold and whether qualified people go to sales | marketing:read |
| POST | /v1/mkt/audiences/score-models | Create a scoring model: points for events and traits, and an optional qualified-lead threshold | marketing:write |
| POST | /v1/mkt/audiences/score-models/:id/score | Score people now; those over the threshold are marked qualified (and handed to sales only if an owner turned that on) | marketing:write |
| GET | /v1/mkt/audiences/score-models/:id/scores | People ranked by a model's score, with the reasons (by person id) | marketing:read |
| GET | /v1/mkt/audiences/scoring/suggestions | Suggested scoring rules: the events that come before a conversion more often for people who converted | marketing:read |
| POST | /v1/mkt/audiences/segment/:id/trait-imports | Bring in the traits Segment keeps for people you already have (owners; up to 500 a time, filed as history) (web app only) | settings:write |
| GET | /v1/mkt/audiences/segments | Segments with their rules and size | marketing:read |
| POST | /v1/mkt/audiences/segments | Save a segment (rules over traits, events, scores and consent, or a list of people) and count it | marketing:write |
| POST | /v1/mkt/audiences/segments/:id/ad-audiences | Prepare a segment as a customer list for an ad account: consented people only, hashed; it waits for a person's approval in paid media | marketing:write |
| PUT | /v1/mkt/audiences/segments/:id/alert | Tell me (one notice a day at most) when people enter this segment; turning it off is immediate (web app only) | marketing:write |
| POST | /v1/mkt/audiences/segments/:id/refresh | Count a segment again now (who entered and left since last time) | marketing:write |
| POST | /v1/mkt/audiences/segments/preview | Turn plain words or rules into segment rules and count who matches, without saving | marketing:read |
| GET | /v1/mkt/audiences/settings/conversation-insights | Whether replies and passed-on conversations are read for insights on people's profiles | marketing:read |
| PUT | /v1/mkt/audiences/settings/conversation-insights | Turn conversation insights on or off (owners): the text is never kept, only the facts read from it (web app only) | settings:write |
| GET | /v1/mkt/audiences/suppressions | The suppression list: why each address is suppressed and since when (addresses masked) | marketing:read |
| POST | /v1/mkt/audiences/suppressions | Suppress addresses now (at most 1,000 at a time); they never get marketing again until they opt back in | marketing:write |
| DELETE | /v1/mkt/audiences/suppressions/:id | Remove a manual or sunset suppression (unsubscribes, complaints and bounces stay) (web app only) | marketing:write |
| POST | /v1/mkt/audiences/suppressions/sunset | Stop marketing email to people who haven't engaged (a person, from the web app); nothing is sent to them, and each can be removed again (web app only) | marketing:write |
| POST | /v1/mkt/audiences/suppressions/sunset-preview | How many people would be suppressed for not engaging: at least this many marketing emails in the window and no opens, clicks, orders or forms (nothing is changed) | marketing:read |
| POST | /v1/mkt/audiences/traits/compute | Work out RFM, lifetime value, engagement, churn risk and purchase likelihood now (they're refreshed nightly) | marketing:write |
| GET | /v1/mkt/audiences/warehouse/accounts | Your connected BigQuery, Snowflake and Databricks accounts | marketing:read |
| GET | /v1/mkt/audiences/warehouse/accounts/:id/tables | The tables in a Databricks catalog and schema (Unity Catalog), 50 at a time | marketing:read |
| POST | /v1/mkt/audiences/warehouse/ads-click-imports | Read Google Ads clicks from your BigQuery export and file them for the people who made them (owners; filed as history) (web app only) | settings:write |
| POST | /v1/mkt/audiences/warehouse/ga4-imports | Read the last days of your GA4 export in BigQuery for signed-in people you already have (owners; filed as history) (web app only) | settings:write |
| GET | /v1/mkt/audiences/warehouse/models | Scoring and decisioning models your warehouse runs in place, with their last run's counts | marketing:read |
| POST | /v1/mkt/audiences/warehouse/models | Define a score or a decision your warehouse computes in place (owners): a table, the column naming the person, rules or options over its columns, and bounds (web app only) | settings:write |
| POST | /v1/mkt/audiences/warehouse/models/:id/estimate | Ask the warehouse how much running this model would read (BigQuery dry run; nothing is run) (web app only) | marketing:write |
| POST | /v1/mkt/audiences/warehouse/models/:id/runs | Have the warehouse run this model now (a person; billed to your warehouse, within its bounds): scores or choices land for your people (web app only) | marketing:write |
| GET | /v1/mkt/audiences/warehouse/segments | Segments your warehouse evaluates in place, with their last evaluation's counts | marketing:read |
| POST | /v1/mkt/audiences/warehouse/segments | Define a segment your warehouse evaluates in place (owners): a table, the column naming the person, rules over its columns, a row bound and a bytes bound (web app only) | settings:write |
| POST | /v1/mkt/audiences/warehouse/segments/:id/estimate | Ask the warehouse how much evaluating this segment would read (BigQuery dry run; nothing is run) (web app only) | marketing:write |
| POST | /v1/mkt/audiences/warehouse/segments/:id/evaluations | Have the warehouse evaluate this segment now (a person; billed to your warehouse, within the segment's bounds); members are matched to your people (web app only) | marketing:write |
| POST | /v1/mkt/audiences/warehouse/write-backs | Write computed traits or scores back to a table in your BigQuery, Snowflake or Databricks warehouse (owners): profile ids and values only, up to 10,000 rows a call (web app only) | settings:write |
Examples
POST /v1/mkt/audiences/conversations
Pass on a conversation with one of your people (a help desk, the sales team): its facts are filed on their profile when insights are on; the text isn't kept
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/conversations" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/conversations`, {
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/mkt/audiences/events
Send events from your server (at most 500 at a time; each is kept once by its event id; properties never keep addresses)
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/events" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/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/mkt/audiences/hightouch/$ID/models
Your Hightouch models, 100 at a time
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/hightouch/$ID/models" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/hightouch/${id}/models`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/hightouch/$ID/syncs
Your Hightouch syncs, 100 at a time
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/hightouch/$ID/syncs" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/hightouch/${id}/syncs`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/merges
People who look like the same person (a shared email, phone, customer id or device), waiting for a decision
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/merges" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/merges`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();POST /v1/mkt/audiences/merges/scan
Look for people who share an identifier and list them for review
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/merges/scan" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/merges/scan`, {
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/mkt/audiences/people-imports
Your latest imports of people and what each one did (counts and refused lines; never an address)
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/people-imports" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/people-imports`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/people-imports/$ID
One import of people and its result
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/people-imports/$ID" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/people-imports/${id}`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();POST /v1/mkt/audiences/predictions
Predict each person's chance of doing an event in the next 7 to 90 days (from your own systems' events), stored as a trait segments can use, with a backtest
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/predictions" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/predictions`, {
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/mkt/audiences/profiles/$ID/context
One person's context for marketing: country, traits, recent events, consents and scores (no addresses)
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/profiles/$ID/context" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/profiles/${id}/context`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/profiles/$ID/conversation-insights
What a person's replies and conversations said (intent, sentiment, topics, preferences), never the text
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/profiles/$ID/conversation-insights" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/profiles/${id}/conversation-insights`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/score-models
Scoring models with their rules, qualified-lead threshold and whether qualified people go to sales
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/score-models" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/score-models`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();POST /v1/mkt/audiences/score-models
Create a scoring model: points for events and traits, and an optional qualified-lead threshold
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/score-models" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/score-models`, {
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/mkt/audiences/score-models/$ID/score
Score people now; those over the threshold are marked qualified (and handed to sales only if an owner turned that on)
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/score-models/$ID/score" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/score-models/${id}/score`, {
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/mkt/audiences/score-models/$ID/scores
People ranked by a model's score, with the reasons (by person id)
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/score-models/$ID/scores" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/score-models/${id}/scores`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/scoring/suggestions
Suggested scoring rules: the events that come before a conversion more often for people who converted
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/scoring/suggestions" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/scoring/suggestions`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/segments
Segments with their rules and size
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/segments" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/segments`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();POST /v1/mkt/audiences/segments
Save a segment (rules over traits, events, scores and consent, or a list of people) and count it
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/segments" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/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();POST /v1/mkt/audiences/segments/$ID/ad-audiences
Prepare a segment as a customer list for an ad account: consented people only, hashed; it waits for a person's approval in paid media
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/segments/$ID/ad-audiences" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/segments/${id}/ad-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();POST /v1/mkt/audiences/segments/$ID/refresh
Count a segment again now (who entered and left since last time)
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/segments/$ID/refresh" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/segments/${id}/refresh`, {
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/mkt/audiences/segments/preview
Turn plain words or rules into segment rules and count who matches, without saving
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/segments/preview" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/segments/preview`, {
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/mkt/audiences/settings/conversation-insights
Whether replies and passed-on conversations are read for insights on people's profiles
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/settings/conversation-insights" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/settings/conversation-insights`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/suppressions
The suppression list: why each address is suppressed and since when (addresses masked)
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/suppressions" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/suppressions`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();POST /v1/mkt/audiences/suppressions
Suppress addresses now (at most 1,000 at a time); they never get marketing again until they opt back in
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/suppressions" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/suppressions`, {
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/mkt/audiences/suppressions/sunset-preview
How many people would be suppressed for not engaging: at least this many marketing emails in the window and no opens, clicks, orders or forms (nothing is changed)
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/suppressions/sunset-preview" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/suppressions/sunset-preview`, {
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/mkt/audiences/traits/compute
Work out RFM, lifetime value, engagement, churn risk and purchase likelihood now (they're refreshed nightly)
curl -s -X POST "https://api.scheeleworks.com/v1/mkt/audiences/traits/compute" \
-H "Authorization: Bearer $MA_API_KEY" \
-H "content-type: application/json" \
-d '{}'const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/traits/compute`, {
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/mkt/audiences/warehouse/accounts
Your connected BigQuery, Snowflake and Databricks accounts
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/warehouse/accounts" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/warehouse/accounts`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/warehouse/accounts/$ID/tables
The tables in a Databricks catalog and schema (Unity Catalog), 50 at a time
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/warehouse/accounts/$ID/tables" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/warehouse/accounts/${id}/tables`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/warehouse/models
Scoring and decisioning models your warehouse runs in place, with their last run's counts
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/warehouse/models" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/warehouse/models`, {
method: "GET",
headers: { authorization: `Bearer ${process.env.MA_API_KEY}` },
});
const data = await res.json();GET /v1/mkt/audiences/warehouse/segments
Segments your warehouse evaluates in place, with their last evaluation's counts
curl -s "https://api.scheeleworks.com/v1/mkt/audiences/warehouse/segments" \
-H "Authorization: Bearer $MA_API_KEY"const res = await fetch(`https://api.scheeleworks.com/v1/mkt/audiences/warehouse/segments`, {
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.