step by step
How to post to LinkedIn with the API
Create a key, connect LinkedIn, then schedule a post.
Open Dashboard → AI & API, create a key, and send it as Authorization: Bearer pw_live_…. Connect your LinkedIn account if you have not already.
Endpoints
API base URL
https://postwing.io/api/v2Docs
https://postwing.io/docsCall POST /posts with a caption, a time, your LinkedIn account id from GET /accounts, and optional media. Full field reference is in the API docs.
curl -s -X POST "https://postwing.io/api/v2/posts" \
-H "Authorization: Bearer pw_live_…" \
-H "Content-Type: application/json" \
-d '{
"caption": "Update from the LinkedIn posting API",
"scheduled_at": "2026-10-05T18:00:00Z",
"accounts": [
{
"id": "LINKEDIN_ACCOUNT_ID"
}
],
"media": [
{
"url": "https://cdn.example.com/post.jpg",
"type": "image"
}
]
}'what you can do
LinkedIn posting from one API
Same PostWing API as the full product, scoped to LinkedIn when you post to a LinkedIn account.
- Schedule LinkedIn text, image, and video posts
- Upload media with a direct upload URL
- Use per-account captions when you need them
- Schedule in one call; edit or cancel any time before it publishes
- Edit or cancel scheduled LinkedIn posts from the same API
built for LinkedIn
Professional posts in one flow
Set a caption, optional media, pick a time, and target LinkedIn. No extra platform options beyond the caption.
- Images and carousels for visual updates
- Video posts for longer updates
- Scheduled posts show up on your PostWing calendar
LinkedIn options
Keep it simple
LinkedIn uses caption only. There are no extra options.
- Clear errors with a code and the exact field to fix
- API key or OAuth with scoped access
one API
Same API for every network
There is no separate LinkedIn product. List more account ids in accounts on the same call. Add Instagram, TikTok, YouTube, LinkedIn, X, Facebook, Pinterest, or Threads without changing your integration.
- YouTube
- X (Twitter)
- Threads
- TikTok
Connect accounts once in PostWing (or via the accounts endpoints)
Call POST /posts with every account you want on that post
It is on your calendar. One key covers every platform PostWing supports.
questions
LinkedIn posting API FAQ
Yes. Add images or a video in media and post to your LinkedIn account id.