8. [PUSH] Subscribe for lead notification webhooks
POST {{baseUrl}}/leadNotifications
This is our recommended back practice (with a pull backup). Register a lead notification webhook to receive notifications for new leads. Lead notifications can also be subscribed at a more granular level and/or for a different lead type - see the linked documentation.
This example registers the webhook url, https://www.example.com, at the organization level for leads of type COMPANY. For any new lead submitted on the company or showcase page, a webhook notification will be sent.
--Listen for lead notifications--
As leads flow into the user's organization, LinkedIn will send your webhook endpoint a notification for each lead. The notification body will contain content as laid out in our documentation here.
Request Body
{"webhook"=>"https://www.example.com", "owner"=>{"organization"=>"urn:li:organization:{{organization_id}}"}, "leadType"=>"{{leadtype_organic}}"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
LinkedIn-Version | string | ||
X-Restli-Protocol-Version | string |