Skip to main content
Version: v3

Create lead form

POST 

/ad-publishing/linkedin/:accountId/form

Create a new LinkedIn lead gen form for an ad account

Request

Version stringrequired

API Version

Available optionsv3
locationId stringrequired

Location identifier

application/json

Bodyrequired

    ownerobjectrequired

    Form owner

    creationLocaleobjectrequired

    Creation locale

    namestringrequired

    Form name

    statestringrequired

    Form state

    Available optionsPUBLISHED
    contentobjectrequired

    Form content

    hiddenFieldsobject[]

    Hidden fields

application/json

The created lead form. Same shape as a list entry, minus reviewInfo until LinkedIn reviews it.

Schema
    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