One API Call to Post on LinkedIn

The LinkedIn Marketing API requires partner program approval, complex URN-based content schemas, and strict OAuth 2.0 scopes. RelayAPI handles OAuth, rate limits, media hosting, and API changes.

No credit card required · Free plan available

POST /v1/posts
const response = await fetch('https://api.relayapi.dev/v1/posts', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer rlay_live_xxxxxxxxxx',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    content: 'Check out our latest update!',
    platforms: ['linkedin'],
    media: ['https://cdn.example.com/image.jpg'],
  }),
});

LinkedIn Marketing API

  • Marketing API access requires LinkedIn Partner Program approval, which can take weeks with no guaranteed timeline
  • Content creation uses URN-based schemas with nested JSON structures that differ between post types
  • Image and video uploads require a two-step process: register the asset, then upload binary data to a pre-signed URL
  • OAuth 2.0 tokens expire after 60 days with no refresh token on basic scopes, requiring users to re-authorize
  • API versioning uses date-based headers and LinkedIn frequently deprecates endpoints with limited migration guides

RelayAPI

  • RelayAPI manages LinkedIn Partner Program compliance and permissions so you can start posting immediately
  • Simple JSON payloads replace complex URN schemas -- just pass your text, media, and targeting parameters
  • Upload media directly to RelayAPI and we handle asset registration, binary upload, and URN resolution
  • Automatic token refresh and re-authorization flows keep your LinkedIn connections active indefinitely
  • We track LinkedIn API version changes and update our integration layer so your code never breaks
Save 3+ hours of development time

Supported Content Types

Text PostsImagesVideosDocumentsArticlesPolls

How It Works

1

Connect Your Account

Authorize your LinkedIn account via OAuth in 30 seconds

2

Build Your Integration

Use the REST API or our SDKs to publish content

3

RelayAPI Handles the Rest

We manage publishing, rate limits, and delivery notifications

Ship Faster

Publish LinkedIn posts with a single API call. No URN construction, no asset registration, no nested JSON schemas. Just send your content and go.

Official API, Zero Hassle

RelayAPI uses the official LinkedIn Marketing API. Your posts appear natively in feeds with full analytics, while we handle partner program compliance and token lifecycle.

Rich Media Without the Complexity

LinkedIn's multi-step media upload process (register, upload, attach) is reduced to a single request. Support for images, videos, documents, and multi-image posts out of the box.

Frequently Asked Questions

Start Building with LinkedIn

Join developers who chose RelayAPI over building with LinkedIn Marketing API directly.

Get Started Free

© 2026 Relay. All rights reserved.