LinkedIn

Post to LinkedIn via API — Schedule, Publish, Analyze

Publish native video, images, documents, and text to personal profiles or company pages — with visibility control and company page targeting in one API call.

Get Started FreeNo credit card required

LinkedIn content types via API

Four post formats, company page targeting, visibility control.

Native video postspost_type: video

Upload video natively to LinkedIn — performs significantly better in the algorithm than external video links.

Image postspost_type: image

Single images or multi-image carousels to your LinkedIn profile or company page.

Text postspost_type: text

LinkedIn text posts — up to 3,000 characters. Great for thought leadership, threads-style long-form content.

Document / PDF carouselpost_type: document

Upload PDFs as LinkedIn document posts — displayed as paginated carousels directly in the feed.

Company page postinglinkedin_page_id

Post directly to a LinkedIn Company Page by supplying its numeric page ID. No need to switch accounts.

Audience visibilitylinkedin_visibility

Set PUBLIC for open reach or CONNECTIONS to limit the post to your 1st-degree connections only.

API Example

Company page post with visibility

Target a specific LinkedIn Company Page and set audience visibility — all without touching the LinkedIn UI.

linkedin-post.sh
# Post to LinkedIn Company Page
curl -X POST \
  https://api.codivupload.com/v1/posts \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
    "profile_name": "my-workspace",
    "platforms": ["linkedin"],
    "post_type": "image",
    "description": "Q1 product roadmap preview",
    "media_urls": ["https://cdn.example.com/roadmap.png"],
    "linkedin_page_id": "12847391",
    "linkedin_visibility": "PUBLIC"  }'
Setup

Getting started with LinkedIn

Connect your LinkedIn personal profile or company page in under two minutes. CodivUpload uses OAuth 2.0 with LinkedIn's official Community Management API — no passwords stored, and you can revoke access from your LinkedIn settings at any time.

1

Connect via OAuth

Open the Integrations tab in your CodivUpload dashboard and click Connect LinkedIn. Sign in with your LinkedIn account and authorize the requested permissions. CodivUpload requests only w_member_social and r_liteprofile — the minimum needed to publish on your behalf.

2

Choose profile or company page

After authorization, select whether you want to post to your personal profile or a company page you administer. For company pages, CodivUpload lists all pages you manage — pick one or connect multiple. Each appears as a separate profile in the dashboard.

3

Pick your post type

From the compose screen, choose between Video, Image, Text, or Document (PDF carousel). Set your description, attach media, configure visibility (PUBLIC or CONNECTIONS), pick a scheduled time, and publish. The API accepts these same parameters in the request body.

Strategy

LinkedIn content strategy

LinkedIn rewards professional, insightful content. The algorithm favors posts that spark meaningful conversations over viral clickbait. Here are the patterns that consistently perform well.

Article vs. post

Regular posts (up to 3,000 characters) appear in the feed and get immediate engagement. LinkedIn Articles are long-form content hosted on LinkedIn with their own URL — better for SEO and evergreen topics. CodivUpload supports feed posts; for articles, use LinkedIn's native editor and link to them from scheduled posts.

Hashtags: 3-5 maximum

LinkedIn's own data shows that 3-5 hashtags is the sweet spot. More than 5 can reduce organic reach. Mix one broad hashtag (#leadership) with two niche ones (#DevToolsStartup, #APIIntegration). Place them at the end of the post, not inline.

Peak hours: Tue-Thu, 8-10 AM

LinkedIn engagement peaks on Tuesday, Wednesday, and Thursday between 8:00 AM and 10:00 AM in your target audience's time zone. Early morning catches professionals during their commute and pre-meeting scroll. Use CodivUpload's scheduled_date parameter to hit these windows consistently.

Professional tone matters

LinkedIn's audience skews professional. Posts that share specific learnings, data points, or industry insights outperform generic motivational content. Lead with a strong first line — LinkedIn truncates after 3 lines with a “see more” link, so your hook needs to land immediately.

LinkedIn via API

Schedule a document carousel

Upload a PDF to create a pageable carousel post on LinkedIn. Each page of the PDF becomes a swipeable slide in the feed — one of the highest-engagement formats on the platform.

All LinkedIn-specific parameters use the linkedin_ prefix. See the full API reference for every supported parameter.

linkedin-document.sh
# Post a PDF carousel to LinkedIn
curl -X POST \
  https://api.codivupload.com/v1/posts \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "profile_name": "my-workspace",
    "platforms": ["linkedin"],
    "post_type": "document",
    "description": "5 lessons from scaling to 10K users",
    "media_urls": [
      "https://cdn.example.com/deck.pdf"
    ],
    "linkedin_page_id": "12847391",
    "linkedin_visibility": "PUBLIC",
    "scheduled_date": "2026-04-08T08:30:00Z"  }'

Start posting to LinkedIn for free

2 profiles, 10 uploads/mo on the free plan. Upgrade for unlimited.

Get Started Free

LinkedIn API questions