API Reference

LinkedIn API

Post updates, articles, images, and videos to LinkedIn profiles and company pages.

Quick Start

Get started in 3 steps

1

Get API Key

Sign up for free and get your API key in seconds.

2

Connect Account

Use our OAuth flow to connect LinkedIn accounts.

3

Start Posting

Make API calls to post content to LinkedIn.

Post to LinkedIn
JavaScript
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

POST/v1/posts

Create or schedule a LinkedIn post (text, image, video, or article)

GET/v1/posts/{id}

Get status and details of a LinkedIn post

DELETE/v1/posts/{id}

Cancel a scheduled LinkedIn post

GET/v1/profiles

List all connected LinkedIn profiles and pages

Media Specs

Media Requirements

TypeFormatMax SizeNotes
ImagePNG, JPEG, GIF8 MB1200x627 recommended
VideoMP45 GB3 sec - 10 min duration
DocumentPDF100 MBUp to 300 pages
ArticleRich text110,000 charsWith 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

Response
200 OK
{
  "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