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 res = await fetch("https:">//api.relayapi.dev/v1/posts", {
  method: "POST",
  headers: {
    Authorization: "Bearer rlay_live_xxxx",
    "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 about 30 seconds.

2

Build your integration

Use the REST API or our SDKs to publish content from your stack.

3

We handle the rest

RelayAPI manages 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

Do I need LinkedIn Marketing API access to use RelayAPI?

No. RelayAPI handles the Marketing API access and partner program requirements. You connect your LinkedIn account through our OAuth flow and can start publishing immediately.

What content types can I publish to LinkedIn through RelayAPI?

RelayAPI supports text posts, single images, multi-image posts, native videos, document sharing (PDFs), articles, and polls. All through one unified endpoint.

Can I post to LinkedIn Company Pages?

Yes. You can publish to both personal profiles and Company Pages you administer. Specify the target in your request and RelayAPI handles the different URN formats and permission scopes.

How does RelayAPI handle LinkedIn token expiration?

LinkedIn access tokens expire after 60 days. RelayAPI monitors token validity, uses refresh tokens where available, and notifies you proactively if re-authorization is needed -- before your publishing flow breaks.

Start building with LinkedIn.

Join developers who chose RelayAPI over wiring up LinkedIn Marketing API by hand.