ZenABM API
v1.0The ZenABM API gives you programmatic access to your ABM data — companies, campaigns, deals, job titles, ABM stages, and more. All endpoints return JSON and require Bearer token authentication.
https://app.zenabm.com/api/v1Bearer tokenJSONcurl "https://app.zenabm.com/api/v1/companies?pageSize=5" \
-H "Authorization: Bearer YOUR_API_KEY"Authentication
Authenticate by including your API token in the Authorization header of every request. Generate tokens from your API Keys page. Keys start with eyJ.
Security: Keep your token secret. Never expose it in client-side code, Git repos, or logs.
Authorization: Bearer YOUR_API_KEY{
"error": {
"status": 401,
"code": "UNAUTHORIZED",
"message": "Invalid API token"
}
}Companies
Companies represent organizations that have engaged with your LinkedIn ads. Each company includes engagement metrics, ABM stage data, and CRM match status.
List companies with insights
/companiesReturns a paginated list of companies with engagement metrics. Filter by campaigns, ABM stages, engagement scores, or CRM match status.
curl "https://app.zenabm.com/api/v1/companies?period=last30Days&campaigns=cm1abc,cm2def&signals=Competitor,cm9signal002" \
-H "Authorization: Bearer YOUR_API_KEY"Get company by ID
/companies/{id}Retrieve a single company by its ID, including full profile and current metrics. The response also carries signals — the company's signals as { id, name, color, icon }.
curl "https://app.zenabm.com/api/v1/companies/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"Get company metrics overview
/companies/{id}/overviewReturns aggregated and weekly metrics for a company over a given time period.
curl "https://app.zenabm.com/api/v1/companies/{id}/overview?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"List Ad Sets for a company
/companies/{id}/campaignsReturns campaigns that a specific company has been exposed to, with per-company metrics.
curl "https://app.zenabm.com/api/v1/companies/{id}/campaigns?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"List Campaigns for a company
/companies/{id}/campaign-groupsOptional filters: sortBy, sortOrder, search
curl "https://app.zenabm.com/api/v1/companies/{id}/campaign-groups?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"List ABM campaigns for a company
/companies/{id}/abm-campaignsOptional filters: sortBy, sortOrder
curl "https://app.zenabm.com/api/v1/companies/{id}/abm-campaigns?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"Get company timeline
/companies/{id}/timelineReturns a chronological list of engagement events for a company within a date range.
curl "https://app.zenabm.com/api/v1/companies/{id}/timeline" \
-H "Authorization: Bearer YOUR_API_KEY"Get company activity log
/companies/{id}/activity-logMerged chronological feed of stage changes, deals, intents, and exclusions. Paginated via page/pageSize. Note: totalCount/totalPages are not returned because the feed is merged from multiple sources. Pass startDate/endDate (YYYY-MM-DD) to scope the feed to a window — when a date range is supplied, weekly LinkedIn ad-activity entries (type: "linkedin_activity_week", carrying a metrics object with impressions/clicks/engagements/costInUsd) are merged into the feed.
curl "https://app.zenabm.com/api/v1/companies/{id}/activity-log" \
-H "Authorization: Bearer YOUR_API_KEY"Get deals for a company
/companies/{id}/dealsOptional filters: sortBy, sortOrder
curl "https://app.zenabm.com/api/v1/companies/{id}/deals" \
-H "Authorization: Bearer YOUR_API_KEY"Get ABM stages for a company
/companies/{id}/abm-stagesReturns the ABM stage history for a company, showing progression through your funnel.
curl "https://app.zenabm.com/api/v1/companies/{id}/abm-stages" \
-H "Authorization: Bearer YOUR_API_KEY"Ad Sets
LinkedIn ad sets with performance metrics, company-level breakdowns, and job title insights.
List Ad Sets with insights
/campaignsReturns a paginated list of LinkedIn Ad Sets with aggregated performance metrics for the requested date range. Filter by status (default: ACTIVE,PAUSED) or search by name. Each item includes both ZenABM's internal id (when the ad set has been imported) and the LinkedIn-native linkedInId. To list ad sets within a specific ABM campaign use /abm-campaigns/{id} instead.
curl "https://app.zenabm.com/api/v1/campaigns?period=last30Days&status=ACTIVE,PAUSED" \
-H "Authorization: Bearer YOUR_API_KEY"Edit many Ad Sets
/campaignsApplies ONE edit to 1–100 Ad Sets, one after another. Same fields as PATCH /campaigns/{id}. targeting.add / targeting.remove alone tweak each Ad Set's own audience; simple, raw, copyFromAdSet or fromSavedAudience give every Ad Set the same audience. One Ad Set failing does not stop the rest: each row in results has its own success and error.
startDate. Changes only while the entity is DRAFT or its current start is still in the future (read it first from /campaigns/{id}/settings). Once started the call fails with 409 START_DATE_LOCKED. To run a started Ad Set from a new date, duplicate it with POST /campaigns/{id}/duplicate (new startDate, includeAds: true), then archive the original with PATCH /campaigns/{id} status: ARCHIVED. A started Campaign cannot move its start date: move its Ad Sets instead, or duplicate it with POST /campaign-groups/{id}/duplicate (new startDate), then archive the original with PATCH /campaign-groups/{id} status: ARCHIVED.
Errors. 400 INVALID_INPUT or START_DATE_IN_PAST, 403 SCOPE_MISSING (reconnect LinkedIn), 404 NOT_FOUND, 409 START_DATE_LOCKED or DUPLICATE_NAME, 422 NO_AD_ACCOUNT, 502 LINKEDIN_REJECTED.
curl -X PATCH "https://app.zenabm.com/api/v1/campaigns" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"linkedInIds": [
"330784953",
"330784954"
],
"startDate": "2026-12-01"
}'Get Ad Set by ID
/campaigns/{id}Identity and relations only. Delivery settings (budgets, bid, objective, cost type, optimization target, pacing, Audience Expansion, LinkedIn Audience Network), audience size and targeting come from /campaigns/{id}/settings, which reads them live from LinkedIn Campaign Manager.
curl "https://app.zenabm.com/api/v1/campaigns/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"Edit an Ad Set
/campaigns/{id}Edits one LinkedIn Ad Set live: name, status, start and end date, targeting, Audience Expansion, LinkedIn Audience Network, ad rotation, bidding strategy. Send only the fields to change; at least one is required. Budgets and bid are not edited here. The path {id} takes the ZenABM id or the numeric LinkedIn linkedInId. Ids inside the body are always numeric LinkedIn ids.
startDate. Changes only while the entity is DRAFT or its current start is still in the future (read it first from /campaigns/{id}/settings). Once started the call fails with 409 START_DATE_LOCKED. To run a started Ad Set from a new date, duplicate it with POST /campaigns/{id}/duplicate (new startDate, includeAds: true), then archive the original with PATCH /campaigns/{id} status: ARCHIVED. A started Campaign cannot move its start date: move its Ad Sets instead, or duplicate it with POST /campaign-groups/{id}/duplicate (new startDate), then archive the original with PATCH /campaign-groups/{id} status: ARCHIVED.
Errors. 400 INVALID_INPUT or START_DATE_IN_PAST, 403 SCOPE_MISSING (reconnect LinkedIn), 404 NOT_FOUND, 409 START_DATE_LOCKED or DUPLICATE_NAME, 422 NO_AD_ACCOUNT, 502 LINKEDIN_REJECTED.
curl -X PATCH "https://app.zenabm.com/api/v1/campaigns/{id}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"startDate": "2026-12-01",
"endDate": null
}'Get Ad Set delivery and targeting settings
/campaigns/{id}/settingsRead LIVE from LinkedIn Campaign Manager on every call, not from ZenABM's sync, so it reflects an edit made minutes ago. Fields listed in unknownSettings were not returned by LinkedIn — treat them as unknown, never as "off". audienceSize is the estimated ADDRESSABLE audience, not reach: impressions / audienceSize is only a lower bound on frequency, and exclusions are left out of it (see audienceSizeExcludesApplied). Each targeting facet reports count (values targeted), values (readable names only) and unnamed (values with no name available, most often specific geographic locations). Returns 502 if LinkedIn is unreachable rather than falling back to synced values.
curl "https://app.zenabm.com/api/v1/campaigns/{id}/settings" \
-H "Authorization: Bearer YOUR_API_KEY"Get LinkedIn's suggested bid for an Ad Set
/campaigns/{id}/suggested-bidLinkedIn's suggested bid for the Ad Set — the same number Campaign Manager shows — plus the allowed bid range and daily budget limits. Read LIVE on every call: the Ad Set's current targeting, objective and cost type are echoed into LinkedIn's pricing finder, so the answer reflects edits made minutes ago. Also returns the current bid and daily budget for context. Not available for Dynamic Ads. Returns 422 when the Ad Set cannot be priced (Dynamic Ads, unsupported cost/campaign type, missing or oversized targeting), 502 when LinkedIn is unreachable or has no pricing for the targeting.
curl "https://app.zenabm.com/api/v1/campaigns/{id}/suggested-bid" \
-H "Authorization: Bearer YOUR_API_KEY"Get Ad Set metrics overview
/campaigns/{id}/overviewPerformance totals for a single Ad Set over the requested date range (no weekly breakdown).
curl "https://app.zenabm.com/api/v1/campaigns/{id}/overview?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"List companies for a Ad Set
/campaigns/{id}/companiesOptional filters: sortBy, sortOrder, search
curl "https://app.zenabm.com/api/v1/campaigns/{id}/companies?period=last30Days&hideExcludedCompanies=false&hasContacts=false" \
-H "Authorization: Bearer YOUR_API_KEY"Get job title insights for a Ad Set
/campaigns/{id}/job-titlesReturns job title engagement breakdown for a specific campaign.
curl "https://app.zenabm.com/api/v1/campaigns/{id}/job-titles?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"Duplicate an Ad Set
/campaigns/{id}/duplicateCopies an Ad Set with its targeting, budget and bid into the same Campaign, or into targetCampaignLinkedInId. includeAds (default true) copies its ads too, reusing the same sponsored posts where possible. The copy starts now unless startDate is given. Body is optional. The path {id} takes the ZenABM id or the numeric LinkedIn linkedInId. Ids inside the body are always numeric LinkedIn ids.
Errors. 400 INVALID_INPUT or START_DATE_IN_PAST, 403 SCOPE_MISSING (reconnect LinkedIn), 404 NOT_FOUND, 409 START_DATE_LOCKED or DUPLICATE_NAME, 422 NO_AD_ACCOUNT, 502 LINKEDIN_REJECTED.
curl -X POST "https://app.zenabm.com/api/v1/campaigns/{id}/duplicate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"startDate": "2026-12-01",
"includeAds": true
}'Ad Set monthly spend
/ad-spendReturns ad spend for LinkedIn Ad Sets within the requested date range. Response includes a summary of totals across the whole range and a byAdSet array — one entry per ad set, each carrying its own totals plus monthly buckets (year, month, period like "2026-05"). Pagination scopes byAdSet (summary always reflects the full range). Each ad set includes both ZenABM's internal id (when imported) and the LinkedIn-native linkedInId. Filter to a single ad set with the linkedInId query param.
curl "https://app.zenabm.com/api/v1/ad-spend?period=last30Days&linkedInId=123456" \
-H "Authorization: Bearer YOUR_API_KEY"Aggregated LinkedIn metrics for a date range
/linkedin-metricsReturns aggregated impressions, clicks, engagements, conversions, and cost for the specified date range, read live from LinkedIn. Optionally filter by a single LinkedIn ad set or campaign ID. Set includeReach=true to also get unique member reach and frequency.
Two response shapes. With timeGranularity=ALL (the default) and no metrics parameter, the response is the flat totals object shown below. Setting timeGranularity to DAILY/MONTHLY/YEARLY or passing metrics switches the response to the timeseries shape: { startDate, endDate, timeGranularity, fields, rows, totals, truncated }, where rows holds one { periodStart, periodEnd, <metric>: number } object per period and totals sums each requested metric over the whole range. includeReach only works with the flat shape.
curl "https://app.zenabm.com/api/v1/linkedin-metrics?period=last30Days&timeGranularity=ALL&metrics=impressions,clicks,costInUsd" \
-H "Authorization: Bearer YOUR_API_KEY"Creatives
Individual LinkedIn ad creatives with format, serving status, and parent ad set and campaign context.
List ad creatives
/creativesReturns a cursor-paginated catalog of the individual ad creatives (the actual ads) in the LinkedIn ad account. Each item includes the LinkedIn-native linkedInId, the full creativeUrn, name, ad format, status, serving state, and the parent ad set + campaign (with both ZenABM id — when imported — and linkedInId). Each response carries a nextCursor: pass it back as the cursor query parameter to fetch the next page (hasMore is false on the last page). Optionally scope to one ad set (adSetId) or campaign (campaignId).
curl "https://app.zenabm.com/api/v1/creatives" \
-H "Authorization: Bearer YOUR_API_KEY"Create a conversation ad
/conversation-adsCreates a LinkedIn Conversation Ad in a message Ad Set (LinkedIn type SPONSORED_INMAILS): the conversation, its message tree, the guided-replies message content and the creative, in one call. Written live to LinkedIn; nothing is stored in ZenABM.
Tree. The first entry in messages is the intro. Every other message must be reachable from it through options[].next, and loops are rejected. Limits: 25 messages, 5 options per message, 500 characters per message, 35 per button. All rule errors come back together in one 400.
Sender. Defaults to the ad account company page. A urn:li:person:… sender must be approved as a sender in Campaign Manager.
Status. DRAFT by default. sendTest: true sends the draft to the inbox of the LinkedIn member who connected ZenABM; a failed test does not fail the call (testSent: false, testError).
Errors. 400 INVALID_INPUT, 403 SCOPE_MISSING, 404 NOT_FOUND, 422 NO_AD_ACCOUNT, 502 LINKEDIN_REJECTED. When a step fails after the conversation exists, the message lists the LinkedIn URNs already created; no ad was made, so retry the whole call.
curl -X POST "https://app.zenabm.com/api/v1/conversation-ads" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"adSetLinkedInId": "330784953",
"name": "Q4 demo conversation",
"subject": "Quick question about your LinkedIn ABM",
"messages": [
{
"key": "intro",
"text": "Want to see how teams tie LinkedIn ads to pipeline?",
"options": [
{
"replyType": "SIMPLE_REPLY",
"text": "Show me",
"next": "demo"
},
{
"replyType": "EXTERNAL_WEBSITE",
"text": "Read the guide",
"landingPage": "https://zenabm.com/guide"
}
]
},
{
"key": "demo",
"text": "Book a 20 minute walkthrough.",
"options": [
{
"replyType": "EXTERNAL_WEBSITE",
"text": "Book a demo",
"landingPage": "https://zenabm.com/demo"
}
]
}
]
}'Campaigns
Campaigns are logical groupings of LinkedIn ad sets with aggregated performance metrics.
Duplicate a Campaign
/campaign-groups/{id}/duplicateCopies a Campaign (campaign group). includeAdSets (default true) copies every Ad Set with its targeting and budget; includeAds (default true) copies their ads too, reusing the same sponsored posts where possible. Everything is created as DRAFT. The copy and its Ad Sets start now unless startDate is given; with startDate they all start on that date. One Ad Set failing does not stop the rest: each row in adSets has its own error. Body is optional. The path {id} takes the ZenABM id or the numeric LinkedIn linkedInId. Ids inside the body are always numeric LinkedIn ids.
Errors. 400 INVALID_INPUT or START_DATE_IN_PAST, 403 SCOPE_MISSING (reconnect LinkedIn), 404 NOT_FOUND, 409 START_DATE_LOCKED or DUPLICATE_NAME, 422 NO_AD_ACCOUNT, 502 LINKEDIN_REJECTED.
curl -X POST "https://app.zenabm.com/api/v1/campaign-groups/{id}/duplicate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"startDate": "2026-12-01"
}'List Campaigns with insights
/campaign-groupsReturns a paginated list of LinkedIn Campaigns with aggregated performance metrics for the requested date range. Filter by status (default: ACTIVE,PAUSED) or search by name. Each item includes both ZenABM's internal id (when the campaign has been imported) and the LinkedIn-native linkedInId. To list campaigns within a specific ABM campaign use /abm-campaigns/{id} instead.
curl "https://app.zenabm.com/api/v1/campaign-groups?period=last30Days&status=ACTIVE,PAUSED" \
-H "Authorization: Bearer YOUR_API_KEY"Get Campaign by ID
/campaign-groups/{id}Returns a single Campaign with its child Ad Sets in the adSets array (id, linkedInId, name, status, human-readable format).
curl "https://app.zenabm.com/api/v1/campaign-groups/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"Edit a Campaign
/campaign-groups/{id}Edits one LinkedIn Campaign (campaign group) live: name, status, start and end date, total and daily budget. Send only the fields to change; at least one is required. The path {id} takes the ZenABM id or the numeric LinkedIn linkedInId. Ids inside the body are always numeric LinkedIn ids.
startDate. Changes only while the entity is DRAFT or its current start is still in the future (read it first from /campaigns/{id}/settings). Once started the call fails with 409 START_DATE_LOCKED. To run a started Ad Set from a new date, duplicate it with POST /campaigns/{id}/duplicate (new startDate, includeAds: true), then archive the original with PATCH /campaigns/{id} status: ARCHIVED. A started Campaign cannot move its start date: move its Ad Sets instead, or duplicate it with POST /campaign-groups/{id}/duplicate (new startDate), then archive the original with PATCH /campaign-groups/{id} status: ARCHIVED.
Errors. 400 INVALID_INPUT or START_DATE_IN_PAST, 403 SCOPE_MISSING (reconnect LinkedIn), 404 NOT_FOUND, 409 START_DATE_LOCKED or DUPLICATE_NAME, 422 NO_AD_ACCOUNT, 502 LINKEDIN_REJECTED.
curl -X PATCH "https://app.zenabm.com/api/v1/campaign-groups/{id}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"startDate": "2026-12-01"
}'Get Campaign metrics overview
/campaign-groups/{id}/overviewPerformance totals for a single Campaign over the requested date range — aggregated to a single summary (no weekly breakdown).
curl "https://app.zenabm.com/api/v1/campaign-groups/{id}/overview?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"List companies for a Campaign
/campaign-groups/{id}/companiesOptional filters: sortBy, sortOrder, search
curl "https://app.zenabm.com/api/v1/campaign-groups/{id}/companies?period=last30Days&hideExcludedCompanies=false&hasContacts=false" \
-H "Authorization: Bearer YOUR_API_KEY"Get job title insights for a campaign group
/campaign-groups/{id}/job-titlesOptional filters: sortBy, sortOrder
curl "https://app.zenabm.com/api/v1/campaign-groups/{id}/job-titles?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"Lead Forms
LinkedIn lead gen forms on your ad account, read live. Use a form id on a lead generation ad.
List lead gen forms
/lead-formsLists the LinkedIn lead gen forms on the ad account, read live. Pass a form id as leadFormId on a lead generation ad. Only PUBLISHED forms collect leads.
curl "https://app.zenabm.com/api/v1/lead-forms?limit=50&offset=0" \
-H "Authorization: Bearer YOUR_API_KEY"Create a lead gen form
/lead-formsCreates a LinkedIn lead gen form on the ad account and publishes it unless publish is false (a draft form cannot collect leads). privacyPolicyUrl is required by LinkedIn ad policy. LinkedIn has no delete for forms; archive one with PATCH /lead-forms/{id} status: ARCHIVED. A 403 means the connected LinkedIn user needs a Campaign Manager or Account Manager role.
Errors. 400 INVALID_INPUT or START_DATE_IN_PAST, 403 SCOPE_MISSING (reconnect LinkedIn), 404 NOT_FOUND, 409 START_DATE_LOCKED or DUPLICATE_NAME, 422 NO_AD_ACCOUNT, 502 LINKEDIN_REJECTED.
curl -X POST "https://app.zenabm.com/api/v1/lead-forms" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Q4 demo request",
"headline": "Book a ZenABM demo",
"privacyPolicyUrl": "https://zenabm.com/privacy",
"questions": [
{
"type": "predefined",
"field": "FIRST_NAME"
},
{
"type": "predefined",
"field": "WORK_EMAIL"
},
{
"type": "multipleChoice",
"question": "Team size?",
"options": [
"1-10",
"11-50",
"51+"
]
}
],
"thankYouMessage": "Thanks, we will be in touch.",
"landingPageUrl": "https://zenabm.com"
}'Edit a lead gen form
/lead-forms/{id}Edits a lead gen form live, publishes a draft (status: PUBLISHED) or archives it (status: ARCHIVED). Edits reach every live ad that uses the form. Once a form is live, LinkedIn only lets you change the headline, description, privacy policy link, legal disclaimer, thank-you message, button and link, and status; create a new form to change questions. An edit can break a CRM lead sync that reads the form.
Errors. 400 INVALID_INPUT or START_DATE_IN_PAST, 403 SCOPE_MISSING (reconnect LinkedIn), 404 NOT_FOUND, 409 START_DATE_LOCKED or DUPLICATE_NAME, 422 NO_AD_ACCOUNT, 502 LINKEDIN_REJECTED.
curl -X PATCH "https://app.zenabm.com/api/v1/lead-forms/{id}" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"headline": "Book a 20 minute ZenABM demo"
}'Audiences
Dynamic LinkedIn retargeting lists of companies that already saw your ads, built from a rule over ABM stage, signals, intents, CRM data, and live LinkedIn metrics. ZenABM refreshes each audience daily into a LinkedIn company segment that you attach to ad sets as include or exclude targeting. POST /retargeting-audiences creates a person-level LinkedIn retargeting audience from ad engagement or website visits.
Create a retargeting audience
/retargeting-audiencesCreates a person-level LinkedIn retargeting audience on the ad account. LinkedIn fills it from engagement with your ads, page or events (kind: engagement) or from website visits (kind: website, needs the LinkedIn Insight Tag live on the site — a 400 tells you when it is not). LinkedIn takes up to 48 hours to fill it, and it serves only once it has 300 or more members. Add the returned urn to Ad Set targeting under dynamicSegments.
Triggers per source type (first is the default): VIDEO_ADS: FIRST_QUARTILE, MIDPOINT, THIRD_QUARTILE, FULL_COMPLETE; SINGLE_IMAGE_ADS: ENGAGEMENT, CLICK; DOCUMENT_ADS: ENGAGEMENT, CLICK, DOWNLOAD_CLICK; LEAD_GEN_FORMS: VIEW_FORM, LEAD_FORM_SUBMIT; CONVERSATION_ADS: OPEN, ANY_CTA_CLICK; ORGANIZATION_PAGES: VIEW, CTA_CLICK; EVENT_PAGES: RSVPED, VIDEO_VIEWED, FIRST_QUARTILE, MIDPOINT, THIRD_QUARTILE, FULL_COMPLETE, ENGAGEMENT, CLICK.
Errors. 400 INVALID_INPUT or START_DATE_IN_PAST, 403 SCOPE_MISSING (reconnect LinkedIn), 404 NOT_FOUND, 409 START_DATE_LOCKED or DUPLICATE_NAME, 422 NO_AD_ACCOUNT, 502 LINKEDIN_REJECTED.
curl -X POST "https://app.zenabm.com/api/v1/retargeting-audiences" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Watched 50% of Q4 video",
"kind": "engagement",
"engagement": {
"sourceType": "VIDEO_ADS",
"sources": [
"888572953"
],
"trigger": "MIDPOINT",
"lookbackDays": 90
}
}'List audiences
/audiencesEvery audience of the team. An audience is a dynamic LinkedIn retargeting list of companies that already saw the team's ads, built from a rule over ABM stages, signals, intents, live LinkedIn metrics and CRM data. ZenABM refreshes audiences daily and streams them to LinkedIn company segments.
curl "https://app.zenabm.com/api/v1/audiences" \
-H "Authorization: Bearer YOUR_API_KEY"{}Create an audience
/audiencesCreates an audience and queues its first sync. LinkedIn then needs time to build and match the segment. The plan caps how many audiences a team holds (403 FORBIDDEN); names are unique per team (409 CONFLICT). Condition types: LINKEDIN_METRICS, ABM_STAGE, SIGNAL, INTENT, LIFECYCLE_STAGE, DEAL_STAGE, ATTIO_DEAL_STAGE, SALESFORCE_OPPORTUNITY_STAGE, CUSTOM_PROPERTY, CONTACT_PROPERTY, ATTIO_COMPANY_PROPERTY, SALESFORCE_ACCOUNT_FIELD, SALESFORCE_CONTACT_FIELD.
curl -X POST "https://app.zenabm.com/api/v1/audiences" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Engaged, not yet SQL",
"blockOperator": "AND",
"conditionBlocks": [
{
"conditionOperator": "OR",
"conditions": [
{
"conditionType": "LINKEDIN_METRICS",
"linkedInMetric": "ENGAGEMENTS",
"metricComparison": "GREATER_THAN_OR_EQUAL",
"metricMinValue": 3,
"metricWindowDays": 30
}
]
},
{
"conditionOperator": "OR",
"conditions": [
{
"conditionType": "ABM_STAGE",
"abmStageIds": [
"cmstage02"
]
}
]
}
]
}'{}Get an audience
/audiences/{id}curl "https://app.zenabm.com/api/v1/audiences/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"{}Update an audience
/audiences/{id}Send only the fields to change. conditionBlocks replaces the whole rule; a rule change queues a re-sync and data.conditionsChanged is true.
curl -X PATCH "https://app.zenabm.com/api/v1/audiences/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"{}Delete an audience
/audiences/{id}Detaches the audience from its Ad Sets, deletes the LinkedIn segment, then the audience. 409 CONFLICT when LinkedIn still uses the segment in an Ad Set ZenABM did not attach.
curl -X DELETE "https://app.zenabm.com/api/v1/audiences/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"{}Preview an audience rule
/audiences/previewCounts the companies an unsaved rule matches and returns up to 20 of them. Nothing is saved. LinkedIn metric conditions are read live.
curl -X POST "https://app.zenabm.com/api/v1/audiences/preview" \
-H "Authorization: Bearer YOUR_API_KEY"{}List audience members
/audiences/{id}/membersCompanies currently in the audience, newest first.
curl "https://app.zenabm.com/api/v1/audiences/{id}/members" \
-H "Authorization: Bearer YOUR_API_KEY"{}Get audience history
/audiences/{id}/historyNewest first: companies ADDED / REMOVED by the daily sync, and the audience attached to (SEGMENT_ATTACHED) or detached from (SEGMENT_DETACHED) Ad Sets.
curl "https://app.zenabm.com/api/v1/audiences/{id}/history" \
-H "Authorization: Bearer YOUR_API_KEY"{}Attach an audience to Ad Sets
/audiences/{id}/ad-setsAdds the audience to the targeting of the Ad Sets on LinkedIn. INCLUDE needs includeReady (segment READY with at least 300 matched members), else 412 PRECONDITION_FAILED; EXCLUDE works once the segment exists. An Ad Set attached in the other mode is switched. Per-Ad-Set failures come back in failed.
curl -X POST "https://app.zenabm.com/api/v1/audiences/{id}/ad-sets" \
-H "Authorization: Bearer YOUR_API_KEY"{}Detach an audience from Ad Sets
/audiences/{id}/ad-setsRemoves the audience from the targeting of the Ad Sets on LinkedIn. Per-Ad-Set failures come back in failed.
curl -X DELETE "https://app.zenabm.com/api/v1/audiences/{id}/ad-sets" \
-H "Authorization: Bearer YOUR_API_KEY"{}Budget Savers
Campaign schedules — weekly hours when your ad sets may run. Outside those hours ZenABM pauses the ad sets on LinkedIn and resumes them when the next window opens.
List campaign schedules
/campaign-schedulesCampaign Schedules (Budget Saver) hold the weekly hours when Ad Sets may run. Outside them, ZenABM pauses in-scope Ad Sets on LinkedIn and resumes them when the hours start again. activeHours are hour-of-week slots in the schedule timezone: slot = day × 24 + hour, day 0 = Monday … 6 = Sunday (0 = Mon 00:00, 167 = Sun 23:00). hoursSummary is a readable version. scope is ALL or SPECIFIC. adSetIds, campaignIds and abmCampaignIds are ZenABM IDs; adSets, campaigns and abmCampaigns add names (and LinkedIn IDs). pausedAdSetCount = Ad Sets that schedules have paused right now (team total; pauses are not stored per schedule). stateNow: running_now (enabled, inside its hours), paused_now (enabled, outside its hours), off (disabled).
curl "https://app.zenabm.com/api/v1/campaign-schedules" \
-H "Authorization: Bearer YOUR_API_KEY"Create or update a campaign schedule
/campaign-schedulesCreates a schedule, or updates the one named by id. Update merges: send only fields you want to change. Sending activeHours and/or weekly replaces all hours; each target list you send (adSetIds, campaignIds, abmCampaignIds) replaces only that list; a target list without scope sets scope to SPECIFIC. Create needs name, timezone and hours; enabled defaults to true, scope to SPECIFIC (then at least one target is required). Writes to LinkedIn: right after the save, and then every 15 minutes, in-scope ACTIVE Ad Sets outside the active hours are paused, and Ad Sets the schedule paused are resumed inside them. A schedule only resumes Ad Sets it paused itself; an Ad Set a user re-activates by hand is left alone. enabled: false or a delete resumes what it paused. With several schedules on one Ad Set, the most restrictive wins.
Target IDs accept the ZenABM ID or the numeric LinkedIn ID. Returns the saved schedule (same shape as the list).
Errors. 404 NOT_FOUND (unknown id). 400 INVALID_INPUT (body shape, e.g. a window hour outside 0–24, unknown timezone) or BAD_REQUEST with a readable message: window to not after from; no hours left ("A schedule needs at least one hour when ads may run"); missing name / timezone on create; IDs not found in the team (all listed); SPECIFIC scope with no targets; ALL scope sent with target lists.
curl -X POST "https://app.zenabm.com/api/v1/campaign-schedules" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Workdays 9–17",
"timezone": "Europe/Warsaw",
"weekly": [
{
"days": [
"MON",
"TUE",
"WED",
"THU",
"FRI"
],
"from": 9,
"to": 17
}
],
"scope": "ALL"
}'Delete a campaign schedule
/campaign-schedules/{id}Deletes the schedule. Ad Sets that only this schedule paused are resumed on LinkedIn right after. 404 NOT_FOUND for an unknown ID.
curl -X DELETE "https://app.zenabm.com/api/v1/campaign-schedules/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"Schedules covering an Ad Set or Campaign
/campaign-schedules/for-entitySend exactly one of adSetId or campaignId; ZenABM or numeric LinkedIn ID. Schedules use the same shape as the list. Each schedule carries reason: DIRECT, CAMPAIGN (via the parent Campaign), ABM_CAMPAIGN, ALL (team-wide) or SOME_AD_SETS. For an Ad Set, pause is set when a schedule paused it (overriddenAt = a user re-activated it by hand).
curl "https://app.zenabm.com/api/v1/campaign-schedules/for-entity" \
-H "Authorization: Bearer YOUR_API_KEY"Campaign schedule activity log
/campaign-schedules/logsNewest first: CREATED, UPDATED, DELETED, PAUSED, RESUMED, OVERRIDDEN, FAILED. With scheduleId, returns that schedule plus team-level events.
curl "https://app.zenabm.com/api/v1/campaign-schedules/logs?limit=30" \
-H "Authorization: Bearer YOUR_API_KEY"Deals
CRM deals synced with ZenABM — HubSpot deals and Salesforce opportunities in one list, each tagged with its source. Includes LinkedIn and ABM influence attribution to measure pipeline impact.
List deals with insights
/dealsReturns a paginated list of CRM deals with influence attribution data. Deals from every connected CRM come back in one list: HubSpot deals, Salesforce opportunities and Attio deals. Each deal carries source, externalId (its record ID in that CRM) and externalUrl (a link straight to the record), so you can match a deal back to the CRM it came from. costBeforeDeal/costAfterDeal are LinkedIn ad spend in USD, always — unlike amount, they do not follow the team's display currency.
curl "https://app.zenabm.com/api/v1/deals?source=all&startDate=2025-01-01&endDate=2025-12-31" \
-H "Authorization: Bearer YOUR_API_KEY"Job Titles
Analyze which job titles are engaging with your ads. Understand your audience at the persona level.
List job titles with insights
/job-titlesOptional filters: Ad Sets (comma-separated IDs), Campaigns (comma-separated IDs)
curl "https://app.zenabm.com/api/v1/job-titles?period=last30Days&includeWeekly=true" \
-H "Authorization: Bearer YOUR_API_KEY"Get job title performance overview
/job-titles/{id}/overviewPerformance totals for a single job title over the date range — aggregated across the whole ad account (impressions, clicks, engagements, cost, conversions, CTR, CPC). The path id is the job title URN. Returns zeroes if the job title had no activity in the window.
curl "https://app.zenabm.com/api/v1/job-titles/{id}/overview?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"Get Ad Set insights for a job title
/job-titles/{id}/campaignsAd sets this job title was exposed to, with per-job-title delivery metrics. The path id is the job title URN. Optional filters: sortBy, sortOrder, search. Job title interactions are stored as weekly totals anchored on the Sunday that ends each Monday–Sunday week, so a date range selects whole weeks rather than exact days. meta.dateRange reports what was actually summed: the range you asked for, the range covered, and how many weeks that was. When weeksCovered is 0 no week ended inside your range, so the totals are empty by definition — widen the range rather than reading it as no activity.
curl "https://app.zenabm.com/api/v1/job-titles/{id}/campaigns?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"Get Campaign insights for a job title
/job-titles/{id}/campaign-groupsOptional filters: sortBy, sortOrder, search. Job title interactions are stored as weekly totals anchored on the Sunday that ends each Monday–Sunday week, so a date range selects whole weeks rather than exact days. meta.dateRange reports what was actually summed: the range you asked for, the range covered, and how many weeks that was. When weeksCovered is 0 no week ended inside your range, so the totals are empty by definition — widen the range rather than reading it as no activity.
curl "https://app.zenabm.com/api/v1/job-titles/{id}/campaign-groups?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"ABM Campaigns
ABM campaigns are high-level campaign groupings with funnel stage tracking and overview metrics.
List ABM campaigns with insights
/abm-campaignsOptional filters: status (ACTIVE,PAUSED,COMPLETED)
curl "https://app.zenabm.com/api/v1/abm-campaigns?period=last30Days&status=ACTIVE" \
-H "Authorization: Bearer YOUR_API_KEY"Get ABM campaign by ID
/abm-campaigns/{id}Returns the ABM campaign plus the LinkedIn entities the user assigned to it. An ABM campaign can be backed by campaigns (linkedinCampaigns), ad sets (linkedinAdSets), or both — each array is a direct membership, not a parent/child hierarchy. Either can be empty.
curl "https://app.zenabm.com/api/v1/abm-campaigns/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"Get ABM campaign performance overview
/abm-campaigns/{id}/overviewPerformance for the date range: metrics (LinkedIn delivery — impressions, clicks, engagements, cost, conversions, CTR, CPC across the ad sets + campaigns assigned to this ABM campaign) and effectiveness (business outcomes — companiesTargeted, totalPipeline, totalRevenue, totalAdSpend, pipePerSpent, averageAcv, roas). Currency note: metrics.costInUsd and effectiveness.totalAdSpend are always USD; effectiveness.totalPipeline, totalRevenue, and averageAcv are in the team displayCurrency (HubSpot deal amounts converted at sync time). pipePerSpent and roas are therefore ratios across the two currencies — treat as approximate unless displayCurrency is USD.
curl "https://app.zenabm.com/api/v1/abm-campaigns/{id}/overview?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"Get ABM campaign stages breakdown
/abm-campaigns/{id}/stages-breakdownReturns a breakdown of companies across each ABM funnel stage.
curl "https://app.zenabm.com/api/v1/abm-campaigns/{id}/stages-breakdown?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"List companies for an ABM campaign
/abm-campaigns/{id}/companiesReturns a paginated list of companies with engagement metrics and intent data for a specific ABM campaign. Aggregates data from all linked LinkedIn campaigns and campaign groups. abmStage is the company's stage within this campaign — null until the company has one here — and a manual stage override on the company takes precedence; lifetimeAbmStage stays company-wide.
curl "https://app.zenabm.com/api/v1/abm-campaigns/{id}/companies?period=last30Days&engagementScores=3,4,5&signals=Competitor,cm9signal002" \
-H "Authorization: Bearer YOUR_API_KEY"List job titles for an ABM campaign
/abm-campaigns/{id}/job-titlesReturns a paginated list of job titles with engagement metrics for a specific ABM campaign. Aggregates data from all linked LinkedIn campaigns and campaign groups.
curl "https://app.zenabm.com/api/v1/abm-campaigns/{id}/job-titles?period=last30Days" \
-H "Authorization: Bearer YOUR_API_KEY"ABM Stages
ABM funnel stages — track companies entering, progressing through, and the history of each stage.
List ABM stages
/abm-stagesReturns every ABM stage for the team, each with its full condition model. blockOperator (AND/OR) joins the stage's conditionBlocks; each block joins its own conditions with its operator (AND/OR). Each condition carries a type plus only the fields relevant to that type (null fields are omitted). Condition types: LINKEDIN_METRICS, LIFECYCLE_STAGE, DEAL_STAGE, CUSTOM_PROPERTY (HubSpot company property), CONTACT_PROPERTY (HubSpot contact property, matches when at least minMatchingContacts of the company's contacts satisfy the mapping), ATTIO_COMPANY_PROPERTY, ATTIO_DEAL_STAGE, SALESFORCE_OPPORTUNITY_STAGE, SALESFORCE_ACCOUNT_FIELD, SALESFORCE_CONTACT_FIELD. Property-mapping operator values include equals, not_equals, contains, not_contains, greater_than, greater_than_or_equal, less_than, less_than_or_equal, between, in_list, not_in_list, is_known, is_unknown. All ids returned (scopeIds, dealStageIds, pipelineIds, lifecycleStageIds, mapping ids) are this team's own ids.
curl "https://app.zenabm.com/api/v1/abm-stages" \
-H "Authorization: Bearer YOUR_API_KEY"Manage an ABM stage
/abm-stages/manageApplies one or more changes to the ABM stage funnel. The body is either a single operation object (not wrapped) or { "operations": [...] } with 1–10 of them. Each operation is discriminated on op: create_stage, rename_stage, recolor_stage, delete_stage, reorder_stage, set_stage_block_operator, set_stage_conditions, add_condition_block, remove_condition_block, set_block_operator, add_condition, replace_condition, remove_condition. This is the first write endpoint in v1. It is gated by the same API access plan feature as the read endpoints.
Batches. Operations in operations apply in order, and each one sees the result of the one before it — so after a remove_condition_block the later block indexes shift, and a stage created earlier in the batch can be addressed by name later in it. A batch is not atomic: when a step fails, the earlier steps stay applied and the error reports which step failed. Read the stage back before you retry. To rewrite a whole rule, prefer one set_stage_conditions over a batch of remove + add operations.
Name or id. Lifecycle stages, deal stages, pipelines, properties and Attio attributes are addressed by name. Stages (stageRef, beforeStageName, afterStageName) and ABM campaigns take a ZenABM id or a name. Ad Sets and Campaigns in scopeNames take a LinkedIn id (bare or URN) or a name. Names match case-insensitively; a unique prefix or substring also resolves. An unknown or ambiguous reference returns 422 UNRESOLVED_REFERENCE and the message lists the available candidates.
Fixed stages. Identified is always first and Customer, Lost and Disqualified are always last. They cannot be moved, renamed or deleted, and a position that would displace them returns 422 INVALID_OPERATION.
Indexes. blockIndex and conditionIndex are 0-based positions in conditionBlocks and in a block’s conditions, exactly as GET /abm-stages/{id} returns them. Read the stage first, then address the block or condition by position. An out-of-range index returns 422 INVALID_OPERATION. replace_condition swaps one condition in place: send the full new condition, or the existing one with a single field changed. set_stage_conditions replaces every block on the stage with the blocks you send (and optionally sets blockOperator), so no index is needed.
Conditions. A contact_property condition matches when at least minMatchingContacts (default 1) of the company’s contacts satisfy it. A deal_stage condition needs pipelineNames when the same stage name repeats across pipelines. A linkedin_metric condition with a scope other than INHERIT_CAMPAIGN needs at least one entry in scopeNames.
Response. data.applied and data.total count the operations that ran and the operations in the request (both 1 for a single operation). data.stage is the stage re-read after the last operation, with the same condition model as GET /abm-stages/{id} (null only when the last operation was delete_stage). data.warnings is non-blocking: it names what a delete_stage removed, and it flags a condition that points at something that no longer exists (a deleted lifecycle stage, deal stage, property or LinkedIn asset) so you can fix it with replace_condition or set_stage_conditions.
Errors. A failed step uses the same status codes as a single operation: 400 INVALID_INPUT, 422 UNRESOLVED_REFERENCE / INVALID_OPERATION, 403 FEATURE_NOT_AVAILABLE / PLAN_NOT_ALLOWED, 404 NOT_FOUND, 502 CRM_UNAVAILABLE. When the request holds more than one operation, the message starts with Step N of M (<op>): .
curl -X POST "https://app.zenabm.com/api/v1/abm-stages/manage" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"op": "rename_stage",
"stageRef": {
"name": "Aware"
},
"name": "Engaged"
}'Get ABM stage by ID
/abm-stages/{id}Returns the ABM stage with currentCompaniesCount (companies currently in this stage) and its full condition model. blockOperator (AND/OR) joins the conditionBlocks; each block joins its conditions with its operator (AND/OR). Each condition carries a type plus only the fields relevant to that type (null fields are omitted):
LINKEDIN_METRICS:metric,comparison,minValue,maxValue,windowDays(rolling window; omitted = since campaign start),scope(INHERIT_CAMPAIGN|LINKEDIN_CAMPAIGN_GROUPS|LINKEDIN_AD_SETS|ABM_CAMPAIGNS),scopeIds.LIFECYCLE_STAGE:lifecycleStageIds.DEAL_STAGE:dealStageIds,pipelineIds(pipelines that scope amatchAnyOpenDealcondition; omitted means any tracked pipeline),matchAnyOpenDeal.ATTIO_DEAL_STAGE:attioDealStatusIds,attioMatchAnyOpenDeal.SALESFORCE_OPPORTUNITY_STAGE:salesforceOpportunityStageNames(SalesforceStageNamevalues),salesforceMatchAnyOpenOpportunity.CUSTOM_PROPERTY(HubSpot company) /CONTACT_PROPERTY(HubSpot contact): apropertyMappingwithhubspotPropertyName,operator,propertyObjectType(COMPANY|CONTACT),minMatchingContacts(contact-property match threshold), and any ofexpectedValue,expectedValues,numericThreshold,numericThresholdMax.ATTIO_COMPANY_PROPERTY: anattioPropertyMappingwithattributeSlug,attributeTitle,operator, and value fields.SALESFORCE_ACCOUNT_FIELD/SALESFORCE_CONTACT_FIELD: asalesforceFieldMappingwithobjectType(ACCOUNT|CONTACT),fieldName,fieldLabel,fieldType,mappingType, and value fields. A contact field matches when at least one contact of the company satisfies it. Property-mappingoperatorvalues includeequals,not_equals,contains,not_contains,greater_than,greater_than_or_equal,less_than,less_than_or_equal,between,in_list,not_in_list,is_known,is_unknown.
curl "https://app.zenabm.com/api/v1/abm-stages/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"List companies currently in an ABM stage
/abm-stages/{id}/companiesReturns a paginated list of companies whose current ABM stage matches the given stage ID. Supports search and sorting.
curl "https://app.zenabm.com/api/v1/abm-stages/{id}/companies?hideExcludedCompanies=false&hasContacts=false" \
-H "Authorization: Bearer YOUR_API_KEY"Get companies entering an ABM stage
/abm-stages/{id}/companies-enteringcurl "https://app.zenabm.com/api/v1/abm-stages/{id}/companies-entering?campaignType=current_abm_stage" \
-H "Authorization: Bearer YOUR_API_KEY"Get companies progressing from an ABM stage
/abm-stages/{id}/companies-progressingcurl "https://app.zenabm.com/api/v1/abm-stages/{id}/companies-progressing?campaignType=current_abm_stage" \
-H "Authorization: Bearer YOUR_API_KEY"Get ABM stage history
/abm-stages/{id}/historycurl "https://app.zenabm.com/api/v1/abm-stages/{id}/history" \
-H "Authorization: Bearer YOUR_API_KEY"Signals
Signals are rule-based company labels. A company can carry several signals, but only one ABM stage. Each rule uses the same condition model as an ABM stage, and only the rule assigns a signal. Signals are not intents.
List signals
/signalsReturns every signal for the team with its full rule. A signal is a rule-based, non-exclusive label: a company holds 0..N signals, where it holds exactly one ABM stage. blockOperator (AND/OR) joins the signal's conditionBlocks; each block joins its own conditions with its operator. The condition model is the ABM stage one — see GET /abm-stages/{id} for the per-type fields — with one difference: a signal has no ABM campaign, so a LINKEDIN_METRICS condition scoped INHERIT_CAMPAIGN is evaluated over all of the team's ads.
Signal membership is rewritten by a background evaluation run, not on read. evaluating: true means a run is queued or in progress: the rule shown is already the new one, while companyCount and the companies with the signal still describe the previous rule.
curl "https://app.zenabm.com/api/v1/signals" \
-H "Authorization: Bearer YOUR_API_KEY"Manage signals
/signals/manageApplies one or more changes to the team's signals. The body is either a single operation object (not wrapped) or { "operations": [...] } with 1–10 of them. Operations: create_signal, rename_signal, recolor_signal, set_signal_icon, set_signal_description, delete_signal, reorder_signal, set_signal_block_operator, set_signal_conditions, add_condition_block,remove_condition_block, set_block_operator, add_condition, replace_condition, remove_condition.
Rules, not companies. This endpoint changes the rule. The set of companies carrying the signal is rewritten by a background run, and data.queuedRunId names the run when one was queued. Signals cannot be set on a single company by hand; only the rule decides.
Batches. Operations apply in order and each sees the result of the one before it, so block indexes shift after a remove and a signal created earlier in the batch can be addressed by name later in it. A batch is not atomic: when a step fails the earlier steps stay applied and the error names the failing step.
Name or id. Lifecycle stages, deal stages, pipelines, properties and Attio attributes are addressed by name. A signalRef takes a name or an id. In scopeNames, Ad Sets and Campaigns take a LinkedIn id (bare or URN) or a name, and ABM campaigns take an ABM campaign id or a name. Names match case-insensitively, and a unique prefix or substring also resolves. An unknown or ambiguous name returns 422 UNRESOLVED_REFERENCE listing the candidates.
Indexes. blockIndex and conditionIndex are 0-based positions in conditionBlocks and in a block’s conditions, exactly as GET /signals/{id} returns them. To rewrite a whole rule use one set_signal_conditions rather than remove + add.
curl -X POST "https://app.zenabm.com/api/v1/signals/manage" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"op": "create_signal",
"name": "Competitor",
"color": "#EF4444",
"icon": "target",
"conditions": [
{
"type": "linkedin_metric",
"metric": "CLICKS",
"comparison": "GREATER_THAN_OR_EQUAL",
"minValue": 1,
"windowDays": 90,
"scope": "LINKEDIN_CAMPAIGN_GROUPS",
"scopeNames": [
"Competitor Comparison"
]
}
]
}'Get signal by ID
/signals/{id}Returns one signal with its full condition model, companyCount and evaluating. Read it before POST /signals/manage when you need blockIndex / conditionIndex — they are 0-based positions in the conditionBlocks returned here.
curl "https://app.zenabm.com/api/v1/signals/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"List companies carrying a signal
/signals/{id}/companiesReturns a paginated list of the companies that currently carry the signal, i.e. the companies its rule matched on the last run. signalAddedAt is when the assignment was written, and signals carries every signal on the company, not just this one.
Sortable by name (default), signalAddedAt, lifetimeEngagementScore, country and website.
curl "https://app.zenabm.com/api/v1/signals/{id}/companies" \
-H "Authorization: Bearer YOUR_API_KEY"Get signal history
/signals/{id}/historySignal gains and losses in a date range (default: the last 30 days), newest first. Unlike an ABM stage — where only the first arrival counts — a signal comes and goes as its rule starts and stops matching, so the same company can appear several times.
curl "https://app.zenabm.com/api/v1/signals/{id}/history" \
-H "Authorization: Bearer YOUR_API_KEY"Get the signals on a company
/companies/{id}/signalsEvery signal the company carries and when it landed. A company carries a signal exactly while the signal rule matches it; signals cannot be set by hand.
curl "https://app.zenabm.com/api/v1/companies/{id}/signals" \
-H "Authorization: Bearer YOUR_API_KEY"Intents
An intent is the set of companies that clicked ads in the campaigns and ad sets tagged with it. List and read intents, or create, update and delete them.
List intents
/intentscurl "https://app.zenabm.com/api/v1/intents" \
-H "Authorization: Bearer YOUR_API_KEY"Get intent by ID
/intents/{id}Returns the intent with the ad sets and campaigns it is assigned to, plus companyCount — the number of companies tagged with this intent.
curl "https://app.zenabm.com/api/v1/intents/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"Manage an intent
/intents/manageCreates, updates or deletes one intent per call. An intent is the set of companies that clicked ads in the Campaigns and Ad Sets tagged with it.
Name or id. The intent is addressed by name (case-insensitive) or id. Campaigns and Ad Sets take a ZenABM id, a LinkedIn id or the exact name. A name that more than one Campaign or Ad Set shares does not resolve; pass its linkedInId. Any unknown reference fails the whole call with nothing changed.
One intent per Campaign or Ad Set. Tagging moves a Campaign or Ad Set off its previous intent, and movedFrom lists the intents that lost it.
Counts fill overnight. No sync is queued. companyCount on GET /intents/{id} updates after the next nightly intent run.
Delete is destructive. It removes the intent’s company tags and marks every audience that uses it as broken (brokenAudiences).
Teams have a plan limit on the number of intents.
curl -X POST "https://app.zenabm.com/api/v1/intents/manage" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action": "create",
"name": "Product Demo Interest",
"description": "Clicked the demo ads",
"campaigns": [
"Fintech Enterprise Group"
]
}'Contacts
HubSpot contacts with source touchpoint totals, company context, ABM stage context, and related deals.
List contacts with source touchpoints
/contactsReturns a paginated list of HubSpot contacts with source touchpoint totals, company context, ABM stage context, and related deals.
curl "https://app.zenabm.com/api/v1/contacts?startDate=2026-04-01T00:00:00.000Z&endDate=2026-05-01T00:00:00.000Z&touchpoints=PAID_SEARCH,AI_REFERRALS|AI: ChatGPT" \
-H "Authorization: Bearer YOUR_API_KEY"Get contact journey
/contacts/{id}Returns a single contact with company context, source events, related deals, and a weekly source-event timeline.
curl "https://app.zenabm.com/api/v1/contacts/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"Sources
Aggregated contact source events grouped by source type — paid search, paid social, AI referrals, and more — with click, contact, and company breakdowns.
List contact source aggregates
/sourcesReturns aggregated contact source events grouped by source type. Each row reports total clicks, distinct contacts, and distinct companies. Filter by an optional date range.
curl "https://app.zenabm.com/api/v1/sources?startDate=2026-04-01T00:00:00.000Z&endDate=2026-05-01T00:00:00.000Z" \
-H "Authorization: Bearer YOUR_API_KEY"Get source detail by type
/sources/{sourceType}Returns the contacts, companies, and weekly timeline for a single source type within an optional date range. Capped at the most recent 500 events.
curl "https://app.zenabm.com/api/v1/sources/{sourceType}?label=AI: ChatGPT&period=last30Days&startDate=2026-04-01T00:00:00.000Z" \
-H "Authorization: Bearer YOUR_API_KEY"Ad Library
Search LinkedIn's public Ad Library by advertiser or keyword to profile competitor ads. Returns normalized ad metadata — format, EU/EEA impression ranges with per-country split, first/last impression dates, and targeting facets. Impression and targeting data is EU/EEA-only (DSA); US-only advertisers return null statistics.
Search the LinkedIn Ad Library by advertiser
/ad-library/by-advertiserProfile a competitor's ads. Searches LinkedIn's public Ad Library by advertiser name (fuzzy match) and returns normalized ad metadata (format, EU/EEA impression ranges + per-country split, first/last impression dates, and which targeting facets were used). LinkedIn's advertiser search is fuzzy, so responses include an advertisers list — pick the right companyId from it and pass it back to filter to the exact advertiser. Country and date filters are applied over the returned ads. Impression/targeting data is EU/EEA-only (DSA); US-only advertisers return null statistics (treat as unknown, not zero).
curl "https://app.zenabm.com/api/v1/ad-library/by-advertiser?limit=25" \
-H "Authorization: Bearer YOUR_API_KEY"Search the LinkedIn Ad Library by keyword
/ad-library/by-keywordDiscover who advertises on a topic. Full-text searches LinkedIn's public Ad Library ad copy and returns the same normalized ad metadata as /ad-library/by-advertiser. Optionally narrow to a single advertiser. Country and date filters are applied over the returned ads. Impression/targeting data is EU/EEA-only (DSA).
curl "https://app.zenabm.com/api/v1/ad-library/by-keyword?limit=25" \
-H "Authorization: Bearer YOUR_API_KEY"Dashboard
Dashboard-level aggregate metrics — top companies, ad spend, and overall performance at a glance.
Get dashboard overview
/dashboardReturns a high-level overview with top companies, total metrics, and ad spend for the given date range.
curl "https://app.zenabm.com/api/v1/dashboard" \
-H "Authorization: Bearer YOUR_API_KEY"Need help?
Our team can help with integration, debugging, or custom endpoint requests.
Contact support{
"rateLimit": {
"requests": "100/min",
"headers": {
"X-RateLimit-Limit": 100,
"X-RateLimit-Remaining": 97
}
}
}