9. [PUSH] Fetch full lead data after a lead notification is received

GET {{baseUrl}}/leadFormResponses/{{lead_id}}?&fields=ownerInfo,associatedEntityInfo,leadMetadataInfo,owner,leadType,versionedLeadGenFormUrn,id,submittedAt,testLead,formResponse,form:(hiddenFields,creationLocale,name,id,content)

Responses can be fetched for a single form response, multiple form responses, or at the form or Ad Account level.

When a lead notification event is received, the form response id exists in the lead notification content.

This example pulls back data for a single form response (lead) by ID and uses field projection to pull back specific fields in the request response.

Request Params

KeyDatatypeRequiredDescription
``null
fieldsstring

HEADERS

KeyDatatypeRequiredDescription
LinkedIn-Versionstring
Authorizationstring
X-Restli-Protocol-Versionstring

RESPONSES

status: OK

{"owner":{"sponsoredAccount":"urn:li:sponsoredAccount:1234567"},"submitter":"urn:li:person:BcLKblgopR","leadType":"SPONSORED","leadMetadata":{"sponsoredLeadMetadata":{"campaign":"urn:li:sponsoredCampaign:198356826"}},"versionedLeadGenFormUrn":"urn:li:versionedLeadGenForm:(urn:li:leadGenForm:7234246,1)","id":"249592fc-d272-44ba-a7db-c2bdce579507-6","submittedAt":1689894599288,"testLead":true,"associatedEntity":{"associatedCreative":"urn:li:sponsoredCreative:241257736"},"formResponse":{"consentResponses":[{"accepted":true,"consentId":0}],"answers":[{"answerDetails":{"textQuestionAnswer":{"answer":"kevjohonson@email.com"}},"questionId":307234246},{"answerDetails":{"textQuestionAnswer":{"answer":"kjohonson@email.com"}},"questionId":607234246},{"answerDetails":{"multipleChoiceAnswer":{"options":[0]}},"questionId":707234246},{"answerDetails":{"textQuestionAnswer":{"answer":"Mexico"}},"questionId":807234246},{"answerDetails":{"textQuestionAnswer":{"answer":"Kevin"}},"questionId":107234246},{"answerDetails":{"textQuestionAnswer":{"answer":"Johonson"}},"questionId":207234246},{"answerDetails":{"textQuestionAnswer":{"answer":"Senior Engineer"}},"questionId":407234246},{"answerDetails":{"textQuestionAnswer":{"answer":"IngenierĂ­a"}},"questionId":507234246}]}}