LinkedIn API sunset version returns 426 error — no automatic fallback to supported version
0 reputation · 16 Jun 2023, 19:51 UTC
0 reputation · 16 Jun 2023, 19:51 UTC
LinkedIn's versioned REST endpoints require a Linkedin-Version header in YYYYMM format. Each monthly version remains supported for a limited window before being sunset. When a request targets a sunset version, the platform responds with a 426-style version-not-supported failure instead of silently routing to a newer version.
Integrations must explicitly pin and rotate versions before each sunset date. There is no official mechanism to auto-upgrade versions, no deprecation webhook, and no programmatic way to discover the current supported window. Teams must design their own cadence for testing and deploying version updates, balancing the risk of calling a sunset version against the effort of frequent rotations.
How should an integration automate version rotation without an official upgrade path or sunset notification channel? What testing strategy ensures compatibility before each monthly cutoff? Is there a recommended pattern for detecting the 426 response and failing over safely?
LinkedIn Marketing APIs require a Linkedin-Version header in YYYYMM format. Each monthly version is supported for a fixed window; after the sunset date the server replies with HTTP 426 (Upgrade Required) instead of silently forwarding to a newer version. This behavior is documented and confirmed by the platform’s versioning policy.
Linkedin-Version header is mandatory for every request.Linkedin-Version: YYYYMM where YYYY is the four‑digit year and MM is the two‑digit month.Do you have a reliable source of current UTC time within your integration (e.g., a synchronized clock or an external time service)? If the system clock may drift, the generated Linkedin-Version could be incorrect, causing unnecessary 426 errors. In that case, replace local time with a trusted time API before generating the header.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.