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

GET {{baseUrl}}/leadFormResponses/{{lead_id}}?&fields=ownerInfo,associatedEntityInfo,leadMetadataInfo,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 Organization 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

{"form":{"name":"LeadGen form for Highlander Cranberries LLC","hiddenFields":[{"name":"Entity name","value":"Highlander Cranberries LLC"}],"id":6955637458260688897,"content":{"questions":[{"questionId":415148,"question":{"localized":{"en_US":"First Name"}},"responseEditable":true,"name":"firstName","questionDetails":{"textQuestionDetails":{"maxResponseLength":300}},"predefinedField":"FIRST_NAME","responseRequired":true},{"questionId":413300,"question":{"localized":{"en_US":"Last Name"}},"responseEditable":true,"name":"lastName","questionDetails":{"textQuestionDetails":{"maxResponseLength":300}},"predefinedField":"LAST_NAME","responseRequired":true},{"questionId":413956,"question":{"localized":{"en_US":"Email Address"}},"responseEditable":true,"name":"email","questionDetails":{"textQuestionDetails":{"maxResponseLength":300}},"predefinedField":"EMAIL","responseRequired":true},{"questionId":411540,"question":{"localized":{"en_US":"Job title"}},"responseEditable":true,"name":"jobTitle","questionDetails":{"textQuestionDetails":{"maxResponseLength":300}},"predefinedField":"JOB_TITLE","responseRequired":true},{"questionId":412068,"question":{"localized":{"en_US":"Company name"}},"responseEditable":true,"name":"company","questionDetails":{"textQuestionDetails":{"maxResponseLength":300}},"predefinedField":"COMPANY_NAME","responseRequired":true}],"description":{"localized":{"en_US":"Share your information below with Highlander Cranberries LLC to be contacted with more information"}},"legalInfo":{"consents":[{"consent":{"localized":{"en_US":"Highlander Cranberries LLC may contact me via email"}},"checkRequired":true,"id":1}],"legalInfoId":1237956,"privacyPolicyUrl":"http://www.example.com/privacy","legalDisclaimer":{"localized":{"en_US":"Highlander Cranberries LLC may use your name and email address to send you communications about the company's products."}}},"headline":{"localized":{"en_US":"Contact Highlander Cranberries LLC"}}},"creationLocale":{"country":"US","language":"en"}},"leadType":"COMPANY","leadMetadataInfo":{},"associatedEntityInfo":{"associatedCompany":{"organizationUrn":"urn:li:organization:11223344"}},"versionedLeadGenFormUrn":"urn:li:versionedLeadGenForm:(urn:li:leadGenForm:6955637458260688897,1)","ownerInfo":{"organizationInfo":{"organizationUrn":"urn:li:organization:11223344"}},"id":"a9a29e52-c0a3-42e3-8af1-2fc83b697003-4","submittedAt":1690908974184,"testLead":false,"formResponse":{"consentResponses":[{"accepted":true,"consentId":1}],"answers":[{"answerDetails":{"textQuestionAnswer":{"answer":"kitty@gmail.com"}},"questionId":413956},{"answerDetails":{"textQuestionAnswer":{"answer":"Shelly"}},"questionId":415148},{"answerDetails":{"textQuestionAnswer":{"answer":"Kitty"}},"questionId":413300},{"answerDetails":{"textQuestionAnswer":{"answer":"Lead Customer Solutions Engineer"}},"questionId":411540},{"answerDetails":{"textQuestionAnswer":{"answer":"Kellog"}},"questionId":412068}]}}