API Reference
LinkedIn API
Post updates, articles, images, and videos to LinkedIn profiles and company pages.
Quick Start
Get started in 3 steps
Get API Key
Sign up for free and get your API key in seconds.
Connect Account
Use our OAuth flow to connect LinkedIn accounts.
Start Posting
Make API calls to post content to LinkedIn.
const response = await fetch('https://getlate.dev/api/v1/posts', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
content: 'Excited to announce our new API! 🚀\n\nWe just launched...',
mediaItems: [{ type: 'image', url: 'https://example.com/announcement.png' }],
platforms: [{
platform: 'linkedin',
accountId: 'acc_abc123'
}],
publishNow: true
})
});
const post = await response.json();
console.log(post.post._id); // '65f1c0a9e2b5af0012ab34cd'Endpoints
LinkedIn Endpoints
/v1/postsCreate or schedule a LinkedIn post (text, image, video, or article)
/v1/posts/{id}Get status and details of a LinkedIn post
/v1/posts/{id}Cancel a scheduled LinkedIn post
/v1/profilesList all connected LinkedIn profiles and pages
Media Specs
Media Requirements
| Type | Format | Max Size | Notes |
|---|---|---|---|
| Image | PNG, JPEG, GIF | 8 MB | 1200x627 recommended |
| Video | MP4 | 5 GB | 3 sec - 10 min duration |
| Document | 100 MB | Up to 300 pages | |
| Article | Rich text | 110,000 chars | With thumbnail image |
Late automatically transcodes and optimizes media for LinkedIn's requirements.
Rate Limits
API Limits
LinkedIn's API has daily limits based on your app tier. Late manages rate limits automatically, queuing posts when limits are approached.
Late handles all rate limiting automatically. We queue and retry requests as needed.
Capabilities
Features
- Post to personal profiles and company pages
- Schedule posts for optimal engagement
- Support for images, videos, and documents
- Article publishing with rich formatting
- Multi-account management
- Webhook notifications for post status
- Visibility controls (public/connections)
Response
Response Example
{
"post": {
"_id": "65f1c0a9e2b5af0012ab34cd",
"status": "published",
"content": "Excited to announce our new API! 🚀\n\nWe just launched...",
"platforms": [{
"platform": "linkedin",
"accountId": { "_id": "acc_abc123", "username": "acme-corp" },
"status": "published",
"platformPostId": "urn:li:share:7012345678901234567",
"platformPostUrl": "https://linkedin.com/feed/update/urn:li:share:7012345678901234567"
}],
"publishedAt": "2025-01-10T10:30:00Z",
"createdAt": "2025-01-10T10:29:55Z"
},
"message": "Post published successfully"
}Start building with LinkedIn API
Skip the LinkedIn Marketing API complexity. Late handles OAuth, media uploads, and rate limits so you can ship faster.
Free tier available • No credit card required • 99.97% uptime