SCALIX help

← All tools

lads_get_lead_form_responses

LinkedIn Ads read high risk

Part of the Lead Sync Agent.

What it does

Pull Lead Gen Form responses (the actual submitted leads) via the leadFormResponses finder q=owner, which requires BOTH owner and leadType, with field projection to fetch the answers. Each response is urn:li:leadGenFormResponse:{id} and contains the member's submitted field values, submitted timestamp, associated form/campaign/creative, and (optionally) the member URN. LinkedIn stores responses up to 365 days, so do a one-time backfill pull at integration setup then rely on notifications. Read-only, but RETURNS member PII: surface minimally, route to the client's system, and purge member-derived data per retention limits (profile <=24h / social activity <=48h). Pull is LinkedIn's recommended primary path; combine with webhooks for speed. Requires r_marketing_leadgen_automation (Lead Sync API program).

When to use it

During a full account audit, start with lads_audit_account — it defines the checks, benchmarks, and severity rules this tool's data feeds.

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 (sponsoredAccount:...)/(organization:...) Rest.li key; do not wrap or percent-encode it. NOT a leadGenForm URN. An ad account must be enabled for Claude.
lead_typestringyesRequired. Passed in rest.li sub-object form leadType=(leadType:SPONSORED). Enum one of SPONSORED | EVENT | COMPANY | ORGANIZATION_PRODUCT.
formstringnoOptional versionedLeadGenFormUrn / associatedEntity filter to scope responses to one form.
submitted_at_time_rangestringnoOptional LinkedIn TimeRange in Rest.li form, epoch milliseconds (one string, not a list), e.g. '(start:1711929600000,end:1714521600000)'; sent as submittedAtTimeRange to bound the response window; any other shape returns invalid_argument.
limited_to_test_leadsbooleannoOptional limitedToTestLeads filter to return only test leads.
fieldsstringnoField projection to fetch answers + metadata; request only the fields the client has lawful basis for.

Safeguards

Policy

Lead Sync data usage: use lead responses ONLY for the authorizing client; never build a cross-account lead database, commingle to append/verify profiles, or enrich a CRM. Honor retention limits (profile <=24h, social activity <=48h); delete on request. Never blend content vs demo leads in reporting.

Reminder

Lead responses are member PII for this client only — never pool across accounts, enrich, or retain beyond 24h/48h; delete on request.

Errors

Error classMeansWhat to doRetry
PERMISSION_DENIEDMissing r_marketing_leadgen_automation or no owner/form access (403).Verify Lead Sync approval + scope and owner role; re-auth if scope missing (needs_reauth).no
INVALID_ARGUMENTowner is not an ad account id or a sponsoredAccount/organization URN (e.g. a leadGenForm URN; refused before LinkedIn is called), or LinkedIn rejected the leadType (400) — surface message.Pass owner as an ad account id or URN and lead_type as SPONSORED|EVENT|COMPANY|ORGANIZATION_PRODUCT; Scalix builds both Rest.li keys. Do not pass a leadGenForm URN as owner.no
NOT_FOUNDForm or response id not found (404).Confirm the form/response URN.no
TOKEN_REVOKEDToken expired/revoked (401).Refresh and retry once; else re-auth.yes
RESOURCE_EXHAUSTEDRate limit (429).Backoff 5/10/20s cap 60s; page/throttle the pull; respect Retry-After.yes
PLATFORM_ERRORLinkedIn 5xx.Retry with backoff.yes

Edge cases

  • q=owner requires BOTH owner and leadType — omitting leadType returns 400.
  • Scalix builds the (sponsoredAccount:...)/(organization:...) owner union from an ad account id or URN; a leadGenForm URN is refused (invalid_argument).
  • leadType uses the (leadType:VALUE) sub-object form with VALUE in SPONSORED|EVENT|COMPANY|ORGANIZATION_PRODUCT.
  • No responses in range -> success with count:0.
  • Responses older than 365 days are purged by LinkedIn — they won't return; backfill once at setup.
  • Without field projection only minimal fields return — request fields explicitly but only lawful-basis ones.
  • Content leads vs demand-gen/demo leads must be reported separately (different CPLs) — never blend.
  • Member data returned here must be forwarded to the client's system and purged within retention windows; do not persist in the MCP store.
  • Large pulls paginate — follow paging.total.