API Reference
Subscribe to lead notifications
/rest/leadNotificationshttps://linkedin-ads.mimicr.dev · provider: https://api.linkedin.comCreates a webhook subscription. Before answering, LinkedIn validates the URL: GET {webhook}?challengeCode={uuid} must answer 200 within 3 seconds with {"challengeCode": "…", "challengeResponse": "<hex HMAC-SHA256 of the code with the client secret>"}. On failure → 400 "This URL did not pass the security challenge check". The URL is re-validated every 2 hours; after 3 consecutive failures it is blocked.
Scope r_marketing_leadgen_automation and CREATIVE_MANAGER or higher on the account (a VIEWER gets 403). HTTPS only (Mimicr also accepts http on localhost); up to 1,500 subscriptions per owner and lead type.
Authorization
Bearer token in the Authorization: Bearer <token> header. See Authentication.
Headers
API version, YYYYMM (the latest is 202610). Missing → 400 VERSION_MISSING; sunset, unknown or unreleased → 426 NONEXISTENT_VERSION. 202511 stops on 2026-11-16 by the sandbox clock.
"202610"Always 2.0.0. Calls that use the 2.0 syntax (List(…), (key:value), encoded URN keys) without it answer 400 "Invalid query parameters passed to request".
2.0.0Body
application/jsonSubscription id.
HTTPS URL that receives the notifications. A secret in the query string is the documented way to authenticate them.
One of sponsoredAccount or organization.
Show child attributes
Only SPONSORED is simulated.
SPONSOREDOptional: only leads of this form version (versionedFormUrn is accepted too).
Optional: only leads of this creative.
Responses
201Created. The id is in the x-restli-id header (empty body): the subscription id.
400Challenge failed, URL not HTTPS ("Malformed subscription creation request that doesn't meet validation checks."), form of another owner, or limit reached.
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.
401Missing token (Empty oauth2_access_token), invalid token (65600 INVALID_ACCESS_TOKEN), revoked (65601 REVOKED_ACCESS_TOKEN) or expired (65602 EXPIRED_ACCESS_TOKEN).
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.
403"Unauthorized! the member doesn't have permission to take this action on a subscription for the owner."
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.
426LinkedIn-Version sunset, unknown or not released: NONEXISTENT_VERSION "Requested version {version} is not active".
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.
429Daily quota of the application or the member reached: TOO_MANY_REQUESTS, with Retry-After (seconds to 00:00 UTC).
HTTP status.
Service error code (100, 401, 65600…).
Present when LinkedIn gives one (VERSION_MISSING, NONEXISTENT_VERSION, ACCESS_DENIED, USER_NOT_AUTHORIZED, TOO_MANY_REQUESTS).
Error message.