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
| Name | Type | Required | Description |
|---|---|---|---|
form_id | string | yes | Lead 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 class | Means | What to do | Retry |
|---|---|---|---|
NOT_FOUND | Lead form not found (404). | Confirm the form id; surface to user. | no |
PERMISSION_DENIED | No 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_ARGUMENT | Form id is not numeric / urn not stripped (400). | Strip urn:li:leadGenForm: and pass the numeric id. | no |
TOKEN_REVOKED | Token expired/revoked (401). | Refresh and retry once; else re-auth. | yes |
RESOURCE_EXHAUSTED | Rate limit (429). | Backoff 5/10/20s cap 60s; respect Retry-After. | yes |
PLATFORM_ERROR | LinkedIn 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.