LinkedIn API: post to profiles with APIWings
Status: coming soon. The APIWings integration with LinkedIn is in review: it opens to beta teams once the network approves it. This page describes how it works.
Accounts
Personal LinkedIn profiles (members). Company pages need a separate LinkedIn approval (Community Management API) and will come later.
Connecting
POST /v1/profiles/{id}/connect/linkedin returns a connect_url. The user signs in on LinkedIn and allows APIWings to see their basic profile and post on their behalf (openid, profile, w_member_social). The connected account is the profile of the person who signed in.
Reconnection every 60 days. LinkedIn tokens last 60 days and LinkedIn only gives automatic renewal to selected partners. Up to 7 days before expiry you get an account.expiring webhook (once); ask the user to connect again. If they do not, the account becomes expired and you get account.disconnected.
Supported content
| Rule | |
|---|---|
| Text | Up to 3,000 characters, counted after escaping LinkedIn's reserved characters: each of | { } @ [ ] ( ) < > \ * _ ~ counts as two characters, and so does a # that does not start a hashtag. |
| Hashtags | #word at the start of the text or after a space becomes a LinkedIn hashtag. |
| Mentions | Not supported: @ is published as plain text. |
| Text or media | A post needs text, images or both. |
| Images | JPEG, PNG or GIF (not WebP). LinkedIn allows up to 20 per post; through APIWings, up to 10 (the per-post media limit). One image is a single-image post; two or more are a multi-image post. |
| Image dimensions | Fewer than 36,152,320 pixels (width × height). Checked by LinkedIn when publishing. |
| Video | Not supported yet (validation_failed). |
Options
| Option | Type | Meaning |
|---|---|---|
alt |
string or array of strings | Alt text. An array gives one text per image, in order; a string applies to the first image only. |
{ "platform": "linkedin", "options": { "alt": ["Team photo", "Our new office"] } }
Result and visibility
- Posts are published with LinkedIn visibility "public", in the main feed.
visibility:public. Reading a post back needs a LinkedIn permission reserved for approved partners, so this is the visibility LinkedIn accepted when it created the post.remote_id: the post URN.url:https://www.linkedin.com/feed/update/<urn>/.
Limits
LinkedIn does not publish a per-member posting quota. Its rate limits come back as rate_limited and are retried, honouring LinkedIn's Retry-After.
Errors
| When | Code |
|---|---|
| Text over 3,000 characters (after escaping), more than 10 images, a video, or a format other than JPEG, PNG or GIF | validation_failed or media_invalid (when creating the post) |
| LinkedIn rejects the text length or a field | validation_failed |
| Token expired (60 days) or permission removed | auth_expired, then account.disconnected |
| The image could not be read or uploaded | media_invalid or platform_down |
| LinkedIn unavailable | platform_down (retried) |
