8. [PUSH] Subscribe for lead notification webhooks

POST {{baseUrl}}/leadNotifications

Register a lead notification webhook to receive notifications for new leads. Lead notifications can also be subscribed at a more granular level - see the linked documentation.

This example registers the webhook url, https://www.example.com, at the Ad Account level (sponsoredAccount). For any new lead submitted for campaigns that live within this Ad Account, a webhook notification will be sent.

Listen for lead notifications

As leads flow into the user's ad account, 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"=>{"sponsoredAccount"=>"urn:li:sponsoredAccount:{{sponsoredaccount_id}}"}, "leadType"=>"{{leadtype_sponsored}}"}

HEADERS

KeyDatatypeRequiredDescription
LinkedIn-Versionstring
X-Restli-Protocol-Versionstring