SCALIX help

← All tools

lads_list_lead_forms

LinkedIn Ads read low risk

Part of the Lead Gen Agent.

What it does

List Lead Gen Forms for an owner (organization or ad account): GET /rest/leadForms?q=owner&owner=(...)&start=&count=. Returns elements[] each with the form id (urn:li:leadGenForm:{id}), name, status, headline, description, the question set (predefined fields like FIRST_NAME/EMAIL plus custom questions), privacy policy URL, and confirmation/CTA. Paginated (owners can have many forms; follow paging.total). Read-only; use to find the form id before fetching responses or subscribing to notifications. Scalix builds and percent-encodes the Rest.li owner key from the owner you pass.

Inputs

NameTypeRequiredDescription
ownerstringyesForm owner: 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 and encodes the Rest.li owner key; do not wrap or percent-encode it. An ad account must be enabled for Claude.
startintegernoPagination offset (default 0).
countintegernoPage size.

Safeguards

Policy

Return form metadata only for the authorizing client's owner; form fields reveal what PII is collected — do not surface beyond the scoped owner.

Reminder

Lead forms define what member PII is collected — list only for the authorizing client and never retain member data.

Errors

Error classMeansWhat to doRetry
PERMISSION_DENIEDBearer lacks Lead Sync scope or owner access (403).Verify r_marketing_leadgen_automation/r_ads and owner role; re-auth if scope missing (needs_reauth).no
INVALID_ARGUMENTowner is not an ad account id or a sponsoredAccount/organization URN (refused before LinkedIn is called).Pass an ad account id or a sponsoredAccount/organization URN; Scalix builds the key.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

  • No forms -> success with count:0.
  • Owner can be organization or ad account — wrong owner type returns empty/400; confirm the finder shape.
  • Many forms paginate — follow paging.total.
  • Scalix builds and percent-encodes the owner key; a bare id is the ad account.