Platform Guide

LinkedIn

LinkedIn is where you usually want cleaner formatting, longer copy, and more explicit control over audience-facing metadata. UniPost keeps that complexity under `platform_options.linkedin` while preserving one core publish shape.

Overview

LinkedIn supports text-only posts, multi-image posts, video posts, and first comments. It does not behave like a Twitter-style thread platform, so longer narratives should usually be published as one longer caption.

Supported capabilities

CapabilitySupportedNotes
Text postsUp to 3,000 characters
Image postsUp to 9 images
Video postsExactly 1 video
ThreadsXPublish as separate posts instead
First commentSupported
Visibility optionsUse `platform_options.linkedin`

Requirements

FieldRequiredLimitsNotes
captionOptional3,000 charsBest for longer release notes and announcements
media_urlsOptional1-9 images OR 1 videoDo not mix images and video
platform_options.linkedinOptionalvisibilityUse for audience controls
first_commentOptionaltextPosted after the main post lands

Platform-specific options

OptionValuesNotes
platform_options.linkedin.visibilityanyone / connectionsSet post audience visibility

Example requests

The examples below are intentionally small and copyable. They show the request body only, assuming a standard POST /v1/social-posts call with Bearer auth.

Long-form text post

json
{
  "caption": "We shipped a new release today with managed Connect, preview links, and post validation.",
  "account_ids": ["sa_linkedin_1"]
}

Multi-image post

json
{
  "caption": "Recap of our launch event",
  "account_ids": ["sa_linkedin_1"],
  "media_urls": [
    "https://cdn.example.com/event-1.jpg",
    "https://cdn.example.com/event-2.jpg",
    "https://cdn.example.com/event-3.jpg"
  ]
}

Video post

json
{
  "caption": "Customer story 🎬",
  "account_ids": ["sa_linkedin_1"],
  "media_urls": ["https://cdn.example.com/story.mp4"]
}

Common validation errors

CodeWhat it means
caption_too_longCaption exceeds 3,000 characters
too_many_mediaMore than 9 images supplied
mixed_media_unsupportedLinkedIn does not accept image and video in the same share

Once you know the correct request shape for this platform, move to the API reference for the full endpoint contract, response schema, and validation payload shape.