SCALIX help

← All tools

lads_get_lead_form

LinkedIn Ads read low risk

Part of the Lead Gen Agent.

What it does

Fetch one Lead Gen Form by id: GET /rest/leadForms/{id}. Returns name, status, headline, description, the full question set (predefined fields + custom questions with localized text and maxResponseLength), privacy policy URL/text, confirmation message, CTA, and owner. Read-only; use to understand exactly which fields a form collects before pulling responses (so you only consume fields the client has a lawful basis for).

Inputs

NameTypeRequiredDescription
form_idstringyesLead form id. Accept bare id or urn:li:leadGenForm:{id}; strip the urn prefix and pass the id to the path.

Safeguards

Policy

Review form fields only to ensure lawful-basis alignment; do not store the schema as a vehicle to enrich profiles. Scoped to the authorizing client's form.

Reminder

Only consume form fields the client has a lawful basis to use; never retain member data beyond policy.

Errors

Error classMeansWhat to doRetry
NOT_FOUNDLead form not found (404).Confirm the form id; surface to user.no
PERMISSION_DENIEDNo access to the form's owner or missing lead scope (403).Verify owner role and Lead Sync scope; re-auth if needed (needs_reauth).no
INVALID_ARGUMENTForm id is not numeric / urn not stripped (400).Strip urn:li:leadGenForm: and pass the numeric id.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

  • Custom questions carry maxResponseLength — surface so downstream consumers truncate correctly.
  • Form with no responses yet is still valid metadata — return it.
  • User passes urn:li:leadGenForm URN -> strip to id for the path.
  • Localized text: pick the requested locale or the form default.
  • The form names its owner: when that ad account is turned off for Claude (or not connected), the read returns account_forbidden and nothing from the form. A form owned by an organization (Company Page) has no ad account to check.