LinkedIn API Reference

Post text, images, video, and GIFs to LinkedIn profiles and organizations.

Quick reference

authOAuth 2.0
text Limit3,000 characters
max Media1 item
media RuleOnly 1 media item per post (no carousel)
max Video Duration10 min
entity SelectionLinkedIn Organizations
first CommentSupported — 1,500 chars

Content types

Text

Up to 3,000 characters

Images

JPEG, PNG, GIF. Max 10 MB. Only 1 per post.

Video

MP4 only. Max 5 GB. Up to 10 minutes.

Carousel

Not supported via API (single media only)

GIF

Animated GIFs supported

Media requirements

Constraints enforced by LinkedIn's API. Requests that violate these limits will be rejected.

ConstraintValue
Max image size10 MB
Max video size5 GB
Image formatsJPEG, PNG, GIF
Video formatsMP4
Max video duration10 min
Image aspect ratio0.42:1 to 2.40:1
Min image dimensions200x200 px
Max media items1
GIF supportYes

Platform settings

Pass these fields inside platformSettings.linkedin in the request body.

documentTitle
stringOptional

Title for PDF carousel posts (when media is a PDF document). Max 200 characters.

Code examples

Basic post

curl -X POST https://schedulala.com/api/v1/posts \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Thrilled to share our latest milestone!",
"platforms": [
{ "platform": "linkedin", "accountId": "acc_li" }
],
"publishNow": true
}'

Post with media

curl -X POST https://schedulala.com/api/v1/posts \
-H "Authorization: Bearer sk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"content": "Our new office space!",
"platforms": [
{ "platform": "linkedin", "accountId": "acc_li" }
],
"mediaItems": [
{ "type": "image", "url": "https://example.com/office.jpg" }
],
"publishNow": true
}'

Quirks & gotchas

!

Only 1 media item per post — no carousel via the API.

!

Video max: 5 GB — largest among all platforms.

!

Image aspect ratio: 1:2.4 to 2.4:1.

!

Minimum image dimensions: 200x200 px.

!

Entity selection: you can post as a LinkedIn Organization by selecting one after connecting.

Related