Skip to main content
POST
Create LinkedIn article

Authorizations

Authorization
string
header
required

Access token issued by gtm.service.id. Its access_identity claim carries team_sid, actor_sid and actor_type, and that team scope is authoritative.

Team-SID
string
header
required

Team scope for tokens that do not carry one. Ignored when the token already names a team.

Body

application/json

Request body of create_linkedin_article.

linkedin_account_sid
string
required

LinkedIn account sid (ln_ac_…), the authoring account. Identity-bound: REQUIRED, posts publish AS this account.

Required string length: 18
Pattern: ^ln_ac_
title
string
required

The article's title, never blank (a blank one is a 422 here). No cap of ours: a title LinkedIn refuses comes back as its own answer.

Minimum string length: 1
content_html
string
required

The body as HTML, always present; "" is legal for a DRAFT (an empty article). The subset: p, h1-h6 (LinkedIn has one heading level), blockquote, pre or pre>code, ul/ol>li, hr, img (a data: URL, or an https url we download) alone or in a figure with a figcaption, iframe[src] embeds LinkedIn can ingest (YouTube and the like), br, and inline strong/b, em/i, a[href]; u, s, code, span and unknown inline tags are unwrapped. table, video, audio, script, style or any other block tag is a 422 naming the tag. Pictures (the cover included) share one 35 MB decoded budget; the html itself is capped at 1,000,000 characters without them.

state
enum<string>
required

DRAFT: create the draft and stop. SCHEDULED: create it and schedule its share at scheduled_at (REQUIRED then). PUBLISHED: create it, share it now and mark it published. The share is what makes an article public.

Available options:
DRAFT,
SCHEDULED,
PUBLISHED
scheduled_at
string

With state SCHEDULED only (REQUIRED there, refused with DRAFT or PUBLISHED): ISO 8601 with timezone, in the future (a strictly past time is a 422; within a minute of now is passed through for LinkedIn to judge). The share lives in LinkedIn's own queue (get_linkedin_scheduled_posts); the article is listed by get_linkedin_articles with state SCHEDULED. The slot is no part of a key: a retry under the same client_reference with a new scheduled_at is the same share.

commentary
string

The share's text above the article (3000, LinkedIn's post cap); "" when omitted, which LinkedIn accepts. Meaningless for a DRAFT and ignored there.

Maximum string length: 3000
visibility
enum<string>

The share's visibility: ANYONE (the node default) or CONNECTIONS_ONLY. Mutually exclusive with newsletter_id: an issue takes container visibility on its newsletter.

Available options:
ANYONE,
CONNECTIONS_ONLY
allowed_commenters_scope
enum<string>

Who may comment on the share: ALL (the node default), CONNECTIONS_ONLY, or NONE to disable comments.

Available options:
ALL,
CONNECTIONS_ONLY,
NONE
author_organization_id
string

Write AS a company page the account administers: its numeric id in any spelling (the digits, a company urn, a /company// link), or its page link or slug when a company read of your workspace already knows the id (else 422 company_not_readable). get_linkedin_administered_companies lists the pages this account may write as, with their ids. The article and its share both go as the page. Omit to write as the member (the backend supplies the member's own id; no profile_id field exists here).

Maximum string length: 2048
newsletter_id
string

Make the article an issue of this newsletter: the digits of urn:li:fsd_contentSeries: (rows[].newsletter_id of get_linkedin_newsletters) or that urn. The owner must match author_organization_id (a page's newsletter needs the page). Excludes visibility.

Pattern: ^(?:urn:li:fsd_contentSeries:)?\d{1,20}$
cover_image
object

ONE cover picture (file_base64 XOR url, plus an optional caption), uploaded before the create. Shares the 35 MB budget with the inline pictures.

client_reference
string | null

Your key for this ONE article share (max 255, byte for byte): one key per article share, the same key on every repeat of it. The key and its place (where it lands: your own feed or the company page of author_organization_id) are one article share whatever it says, and a repeat never goes out twice: it answers 200 with what the first send made (result.idempotent_replay, result.content_differs when this request says something else) or 409 naming error.context.send_outcome (in_flight, unknown with retry_after and send_decisive_at, or sent; not_sent with blocking_activity_log_sid when another article share in doubt holds the place). The same key at another place is another article share. Without a key the same commentary and article at the same place and slot count as a repeat for an hour after they went out. check_linkedin_posting_sent asks by it.

Maximum string length: 255
confirmed_not_sent
string | null

A person's word that an earlier attempt of THIS send is not on LinkedIn: its activity_log_sid (ln_al_...), from the 409 or check_linkedin_posting_sent, given only after someone looked on LinkedIn. Taken once the attempt can no longer land (before that: 409 send_outcome_unknown, waiting_for may_still_land, retry_after and send_decisive_at that moment): it settles that attempt not_sent and this request goes out. Moot when the attempt is no longer in doubt; another send's sid is 422 not_this_message.

Required string length: 18
Pattern: ^ln_al_
confirmed_sent
string | null

A person's word that an earlier attempt of THIS send IS on LinkedIn: its activity_log_sid, as for confirmed_not_sent (never both). Taken at once; it settles the attempt sent and sends nothing: the answer is 409 concurrent_send_in_flight with send_outcome sent while what it made is not known (LinkedIn is read for it), or 200 with it once a read has found it. Another send's sid is 422 not_this_message; an attempt already proved not sent is 409 confirmed_sent_contradicts.

Required string length: 18
Pattern: ^ln_al_

Response

action success envelope.

success
enum<boolean>
required
Available options:
true
operation
enum<string>
required
Available options:
action
action
string
required

kebab-case verb; matches the route segment.

item
any
required
result
object
required
meta
object
required
pacing
object