Can You Post to LinkedIn via API? Yes, Two Ways
LinkedIn's Posts API wants a developer app, a monthly version header and 60-day tokens. Or connect once and send one POST to our API, or MCP.

Short answer: Yes. LinkedIn’s own Posts API creates a post with one call, POST https://api.linkedin.com/rest/posts, but you build the rest yourself: a LinkedIn developer app, the w_member_social permission, a Linkedin-Version header on every call and an OAuth sign-in whose access tokens are “issued with a 60-day lifespan.” The second way skips the developer app. With Status 200 Uploads it is connect, post, simple: you sign in on LinkedIn once, then send one POST /api/v2/posts with "platform": "linkedin". Our LinkedIn page says: “You need no LinkedIn developer app of your own, and the REST API is on every plan”. The request is in our API docs. From an AI app, our hosted MCP server does the same from one sentence you type; MCP is on every paid plan, from Beginner. All pages opened 29 November 2026.
Key Takeaways
| Point | Details |
|---|---|
| LinkedIn’s own API | The Posts API, POST https://api.linkedin.com/rest/posts. It “replaces the ugcPosts API”. |
| Permission to post as yourself | w_member_social: “Post, comment, and like posts on behalf of an authenticated member.” |
| Permission to post as a Company Page | w_organization_social, for members with a Page role, through the Community Management API. Its Development tier allows 500 calls per app in 24 hours. |
| Every call | Two headers: Linkedin-Version (YYYYMM) and X-Restli-Protocol-Version: 2.0.0. LinkedIn ships a new version every month. |
| Through our REST API | Connect LinkedIn, then one POST /api/v2/posts with "platform": "linkedin", optional linkedin.text, and "dryRun": true to check first. |
| Watch out | We post to your member profile only: “Company pages are not supported.” One image or one video per post. |
Way 1: LinkedIn’s own Posts API
LinkedIn’s Posts API page (last updated 7 May 2026) says it “facilitates the creation and retrieval of organic and sponsored posts”. It covers text, images, videos, documents, articles, multi-image posts and polls. Two rules apply to every call: “All APIs require the request header Linkedin-Version: {Version in YYYYMM format}.” and the header X-Restli-Protocol-Version: 2.0.0.
Which permission you need
| You want to post as | Permission | What LinkedIn says |
|---|---|---|
| Yourself (member profile) | w_member_social |
“Post, comment, and like posts on behalf of an authenticated member.” |
| A Company Page | w_organization_social |
“Post, comment, and like posts on behalf of an organization.” Only for Pages where you are ADMINISTRATOR, DIRECT_SPONSORED_CONTENT_POSTER or CONTENT_ADMIN. |
For member posts, LinkedIn’s Share on LinkedIn page tells you to open your app, “navigate to the Products tab, and add the Share on LinkedIn product which will grant you w_member_social”. The author of the post is your Person URN, urn:li:person:{id}.
Company Pages take longer. LinkedIn’s Increasing Access page (last updated 14 October 2026) lists w_organization_social under the Community Management API. Its Development tier “is the default tier provisioned”, with “500 API calls for an app for 24 hrs” and 100 per member. You “must complete your integration and testing within twelve months”, then apply for Standard, which has “No restrictions”. And: “LinkedIn reserves the right to review applications and select partners at its discretion”.
The call itself
LinkedIn’s own text-post example, from the Posts API page:
curl -X POST 'https://api.linkedin.com/rest/posts' \
-H 'Authorization: Bearer {INSERT_TOKEN}' \
-H 'X-Restli-Protocol-Version: 2.0.0' \
-H 'Linkedin-Version: {version number in the format YYYYMM}' \
-H 'Content-Type: application/json' \
--data '{
"author": "urn:li:organization:5515715",
"commentary": "Sample text Post",
"visibility": "PUBLIC",
"distribution": {
"feedDistribution": "MAIN_FEED",
"targetEntities": [],
"thirdPartyDistributionChannels": []
},
"lifecycleState": "PUBLISHED",
"isReshareDisabledByAuthor": false
}'
For a post on your own profile, the author is your urn:li:person:{id} instead. The post id does not come back in the body: “You should get a 201 response and the response header x-restli-id contains the Post ID”. An image, video or document post needs one more step first: you upload the file through LinkedIn’s Images, Videos or Documents API and put the URN you get back into the post.
Versions and tokens: the upkeep
LinkedIn’s versioning page (last updated 16 November 2026) lists November 2026, 202611, as the latest version. Versions “are supported and stable for a minimum of one year before sunset”, and “the latest version is not applied by default”: you choose it, and you move on before your version ends.
Sign-in is LinkedIn’s 3-legged OAuth flow. From LinkedIn’s authorization code flow page (last updated 10 November 2025): “Currently, all access tokens are issued with a 60-day lifespan.” So plan for every member to sign in again, or for refresh tokens if your app has them.
Way 2: Post to LinkedIn through our API
Status 200 Uploads already has a LinkedIn app. From our LinkedIn page: “You sign in on LinkedIn itself (OAuth), so we never see your LinkedIn password.” Then you post with your own API key. The API docs describe POST /api/v2/posts as: “Create, publish or schedule a post. Each request goes to one network from one profile.” These are the documented calls; no authenticated request was sent to write this guide.
Step 1: Import an image or video (skip it for a text post)
curl -X POST 'https://status200uploads.com/api/v2/media' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer rl_your_api_key' \
-d '{"url": "https://example.com/video.mp4"}'
The answer has a file_id and "status": "ready". A large file answers 202 with "status": "processing"; the docs say to check GET /api/v2/media?file_id=YOUR_FILE_ID every 10 to 30 seconds until it is ready. Text needs no file: the docs list LinkedIn among the networks where text-only posts “are accepted”.
Step 2: Check, then post
Send it first with "dryRun": true. “Every check a publish makes is run and nothing is sent.” The body below is the REST example from our LinkedIn page, with the dry run added:
curl -X POST 'https://status200uploads.com/api/v2/posts' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer rl_your_api_key' \
-H 'Idempotency-Key: hiring-video-linkedin' \
-d '{
"dryRun": true,
"post": {
"accountId": "@yourprofile",
"platform": "linkedin",
"content": {
"text": "We are hiring!",
"mediaID": ["YOUR_VIDEO_ID"]
},
"linkedin": {
"text": "We are hiring two engineers for our Berlin office. In this video the team explains what the work is like."
}
}
}'
Drop dryRun to post. linkedin.text is “Text for LinkedIn only, up to 3,000 characters, in place of the post text”, so LinkedIn can get a longer, more formal version than your other networks. The Idempotency-Key header matters more on LinkedIn than elsewhere: “LinkedIn refuses a duplicate post, and the key makes a retried run return the first answer instead.” Large videos on LinkedIn (over 200 MB) answer 202 and finish in the background, with the result in History.
To post later, add post.scheduledFor with a time zone, for example 2026-12-07T08:30:00+01:00. The docs allow “up to 365 days ahead and at most 500 posts waiting per account”.
What you can post
| Rule | Through Status 200 Uploads |
|---|---|
| Where it goes | “To the LinkedIn member profile you sign in with. Company pages are not supported.” |
| Kinds of post | Text on its own, or text with one image or one video. If you send several files, “only the first is attached”. |
| Largest video | “5 GB per file.” |
| Largest image | 10 MB in the dashboard; through the API, LinkedIn itself decides. |
| Text | Up to 3,000 characters, shared caption or linkedin.text. |
Two recent changes from our changelog. Since 16 November 2026, “A post to X or LinkedIn whose photo or video could not be uploaded is no longer sent without it. Nothing is posted, and History says which file and why.” And because LinkedIn sign-ins end, the Connections page shows when LinkedIn ends a connection, with “a Reconnect LinkedIn button, which starts a new 60 days and keeps your scheduled posts and settings.”
Post to LinkedIn from an AI app (MCP)
Rather type a sentence than write a request? Add https://mcp.status200uploads.com/mcp as an MCP server (in Claude, a custom connector). The prompt from our LinkedIn page:
Turn this paragraph into a LinkedIn post and publish it tomorrow at 8:30 with the chart I uploaded.
“The app writes the text, finds the chart with status200_list_media, checks the post with status200_validate_post (which flags text over LinkedIn's limit) and schedules it with status200_schedule_post. The answer gives the scheduled post's id, so you can change or cancel it before it goes out.” MCP is “Included in every paid plan, from Beginner.”
Which way should you pick?
| LinkedIn’s API directly | Through Status 200 Uploads | |
|---|---|---|
| Developer app | Yours, with Share on LinkedIn (or Community Management) added | Not needed: ours |
| Member profile posts | Yes, with w_member_social |
Yes |
| Company Page posts | Yes, with w_organization_social and a Page role |
Not supported |
| Every call | Linkedin-Version and X-Restli-Protocol-Version headers |
Your API key |
| Sign-in | Access tokens are “issued with a 60-day lifespan” | Reconnect LinkedIn to start a new 60 days; e-mail reminders before it ends |
Build on LinkedIn’s API if you need Company Pages or document, multi-image and poll posts, and can keep up with versions and tokens. Use ours if you post to your own profile and want the same API for TikTok, YouTube, Instagram and the rest. Scheduling from the dashboard, and what a company Page needs, is in How to Schedule LinkedIn Posts.
FAQ
Does LinkedIn have an API for posting?
Yes, the Posts API at https://api.linkedin.com/rest/posts. It creates text, image, video, document, article, multi-image and poll posts, and it replaces the older ugcPosts API.
Can I post to a LinkedIn company page via API?
With LinkedIn’s own API, yes: you need w_organization_social, which comes with the Community Management API, and one of the Page roles ADMINISTRATOR, DIRECT_SPONSORED_CONTENT_POSTER or CONTENT_ADMIN. Through Status 200 Uploads, no: posts go to your member profile, and company pages are not supported.
How long does a LinkedIn API token last?
LinkedIn says all access tokens are currently issued with a 60-day lifespan. Through Status 200 Uploads you reconnect LinkedIn, which starts a new 60 days and keeps your scheduled posts.
Can I post a video or image to LinkedIn via API?
Yes. Through our API, import the file, then send its file_id in content.mediaID: one image or one video per post, videos up to 5 GB. LinkedIn’s own API needs the file uploaded through its Images or Videos API first.
Can I schedule LinkedIn posts via API?
Yes. Add post.scheduledFor with a time zone to the same POST /api/v2/posts request, up to 365 days ahead and at most 500 posts waiting per account.
Sourced
- LinkedIn (Microsoft Learn), Posts API (last updated 2026-05-07): https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/posts-api (opened 29 November 2026).
- LinkedIn (Microsoft Learn), Increasing Access (last updated 2026-10-14): https://learn.microsoft.com/en-us/linkedin/marketing/increasing-access (opened 29 November 2026).
- LinkedIn (Microsoft Learn), API Documentation Versioning (last updated 2026-11-16): https://learn.microsoft.com/en-us/linkedin/marketing/versioning (opened 29 November 2026).
- LinkedIn (Microsoft Learn), LinkedIn 3-Legged OAuth Flow (last updated 2025-11-10): https://learn.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow (opened 29 November 2026).
- LinkedIn (Microsoft Learn), Share on LinkedIn (last updated 2021-02-05): https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/share-on-linkedin (opened 29 November 2026).
- LinkedIn (Microsoft Learn), Post API Schema (last updated 2026-02-13): https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/post-api-schema (opened 29 November 2026).
- Status 200 Uploads, API docs (Quick Start, Create a post, Checking a Post Without Sending It, Schedule and cancel): https://status200uploads.com/docs/api (opened 29 November 2026).
- Status 200 Uploads, LinkedIn posting page: https://status200uploads.com/platforms/linkedin (opened 29 November 2026).
- Status 200 Uploads, MCP server: https://status200uploads.com/integrations/mcp (opened 29 November 2026).
- Status 200 Uploads, Changelog (16 November and 15 October 2026 entries): https://status200uploads.com/changelog (opened 29 November 2026).
- Status 200 Uploads, Pricing (REST API on every plan; MCP from Beginner): https://status200uploads.com/pricing (opened 29 November 2026).