SCALIX help

← All tools

lads_list_lead_notification_subscriptions

LinkedIn Ads read low risk

Part of the Lead Sync Agent.

What it does

List existing Lead Gen Form notification (push) subscriptions for an owner via the leadNotifications q=criteria finder: GET /rest/leadNotifications?q=criteria&owner=(value:(sponsoredAccount:urn:li:sponsoredAccount:{id}))&leadType=(leadType:SPONSORED) (a single subscription is fetched by id at GET /rest/leadNotifications/{id}). Returns each subscription's id, owner, scoped form (if any), registered webhook URL, and validation/active status. Read-only; use to audit which endpoints are subscribed (and whether validated, which matters since 2026-03-16) before adding/removing a subscription. Paginated (follow paging.total). Requires r_marketing_leadgen_automation.

Inputs

NameTypeRequiredDescription
ownerstringyesOwner: an ad account id (e.g. 557124836; a bare id is the ad account), urn:li:sponsoredAccount:{id} or urn:li:organization:{id}. Scalix builds the double-wrapped owner=(value:(...)) Rest.li key for q=criteria; do not wrap or percent-encode it. An ad account must be enabled for Claude.
lead_typestringyesRequired for q=criteria. Sub-object form leadType=(leadType:SPONSORED). Enum one of SPONSORED | EVENT | COMPANY | ORGANIZATION_PRODUCT.
startintegernoPagination offset (default 0).
countintegernoPage size.

Safeguards

Policy

List subscriptions only for the authorizing client's owner; webhook URLs are configuration data — do not expose across unauthorized accounts.

Reminder

Subscription/webhook config is client-specific — return only for the scoped owner.

Errors

Error classMeansWhat to doRetry
PERMISSION_DENIEDMissing r_marketing_leadgen_automation or owner access (403).Verify scope + owner role; re-auth if needed (needs_reauth).no
INVALID_ARGUMENTowner is not an ad account id or a sponsoredAccount/organization URN (refused before LinkedIn is called), or LinkedIn rejected the leadType (400).Pass owner as an ad account id or URN and lead_type as SPONSORED|EVENT|COMPANY|ORGANIZATION_PRODUCT; Scalix builds the q=criteria keys.no
TOKEN_REVOKEDToken expired/revoked (401).Refresh and retry once; else re-auth.yes
RESOURCE_EXHAUSTEDRate limit (429).Backoff 5/10/20s cap 60s; respect Retry-After.yes
PLATFORM_ERRORLinkedIn 5xx.Retry with backoff.yes

Edge cases

  • Use q=criteria (not q=owner); owner must be double-wrapped owner=(value:(<union>)) and leadType is required.
  • Single subscription is fetched by id at GET /rest/leadNotifications/{id}.
  • When creating a subscription, the body uses webhook + owner (union {sponsoredAccount}|{organization}) + leadType — not callbackUrl/account.
  • No subscriptions -> success with count:0.
  • Subscriptions whose webhook is not validated -> flag, since they receive nothing post 2026-03-16.
  • Multiple subscriptions for the same owner -> potential duplicate delivery; surface them.
  • Paginate via paging.total.