LinkedIn
Options for posting via the API to LinkedIn

LinkedIn API Endpoint

Overview

JSON for a basic post with a link and image to LinkedIn:
1
{
2
"post": "The best LinkedIn post ever #best https://www.linkedin.com",
3
"mediaUrls": ["https://img.ayrshare.com/012/gb.jpg"],
4
"platforms": ["linkedin"]
5
}
Copied!
LinkedIn will automatically preview the link in the post unless there is an image or video included. In the above example the image will show. Removing the image will cause the link preview to show.
Hashtags are clickable in LinkedIn.

LinkedIn Auth Refresh

LinkedIn must be reauthorized every year via the Social Accounts page.
  • An email and webhook social action notification will be sent 10 days in advance of authorization expiration.
  • The refresh required date and remaining days can be retrieved from the /user endpoint.
  • The user will see on their social account linkage page an alert and a refresh button 30 days prior to expiration.
Last modified 2mo ago