Skip to main content
Version: v3

Get lead forms

GET 

/ad-publishing/linkedin/:accountId/forms

Retrieve LinkedIn lead gen forms for an ad account. By default each form is returned in full as a plain array; pass projection (comma-separated, dot-notation for nested fields) to return only the requested fields — any value outside the known field set is rejected. When limit is provided (max 100) the response is a paginated { leadForms, paging } envelope; pass pageToken (from paging.next) to fetch the next batch.

Request

Version stringrequired

API Version

Available optionsv3
accountId stringrequired

Account identifier

locationId stringrequired

Location identifier

projection string[]

Fields to return on each lead form, comma-separated (e.g. ?projection=id,name,state,created,reviewInfo.reviewStatus). When set, only the requested fields are returned; any value outside the known field set is rejected. Nested fields use dot-notation (naming a parent like reviewInfo returns the whole object). Omit to receive the full form (including content.questions) as-is.

Available optionsidnamestatecreatedlastModifiedversionIdcreationLocaleownerreviewInforeviewInfo.reviewStatusreviewInfo.rejectionReasonscontent
limit string

Page size for a paginated fetch (max 100). When set, the response is a { leadForms, paging } envelope instead of a plain array.

pageToken string

Opaque cursor for the next batch, taken from the previous response paging.next

application/json

A plain array of lead forms (default), or a { leadForms, paging } envelope when limit is provided

Schema
    oneOf
  • Array [
  • idnumber

    Form id. Returned as a number.

    namestring

    Form name

    statestring

    Form lifecycle state

    versionIdnumber

    Version of the form definition

    creatednumber

    When the form was created, epoch milliseconds

    lastModifiednumber

    When the form was last modified, epoch milliseconds

    creationLocaleobject

    Locale the form was authored in

    ownerobject

    Account that owns the form

    reviewInfoobject

    LinkedIn review outcome. Absent on a form that has just been created and not yet reviewed; present on reads.

    hiddenFieldsobject[]

    Hidden fields submitted alongside the lead. Empty array when none.

    contentobject

    Form definition

  • ]