author | string or SelectItem | Yes | - | Who publishes the post: ‘me’ for the connected member’s personal profile, or a Company Page id from linkedin_select_pages (urn:li:organization:<id> also works). There is no default: confirm with the user which one they mean. |
text | string | No | - | The post text. Hashtags (#marketing) work as typed. Mention a page or member with @[Exact Name](urn:li:organization:<id>) or @[Name](urn:li:person:<id>); the name must match the entity’s LinkedIn name or it shows as plain text. |
link_url | string | No | - | Share a link as an article card. LinkedIn does not scrape the page, so set link_title (and optionally link_description and link_thumbnail_url) to control how the card looks. |
link_title | string | No | - | Article card title. |
link_description | string | No | - | Article card description. |
link_thumbnail_url | string | No | - | Article card image. Accepts direct URLs, Google Drive share links with sharing set to ‘Anyone with the link’, or files uploaded through Markifact. |
image_urls | string or array of string | No | - | One image, or 2 to 20 images for a multi-image post (JPG, PNG or GIF). Accepts direct URLs, Google Drive share links with sharing set to ‘Anyone with the link’, or files uploaded through Markifact. |
video_url | string | No | - | A video to post (MP4). Accepts direct URLs, Google Drive share links with sharing set to ‘Anyone with the link’, or files uploaded through Markifact. |
document_url | string | No | - | A document to post as a swipeable carousel: PDF, PPT(X) or DOC(X), up to 100 MB and 300 pages. Accepts direct URLs, Google Drive share links with sharing set to ‘Anyone with the link’, or files uploaded through Markifact. |
media_title | string | No | - | Title shown on a video or document post. |
repost_of | string | No | - | Repost an existing post with your text on top: its URN (urn:li:share:<id> or urn:li:ugcPost:<id>) or its LinkedIn URL. |
visibility | enum (PUBLIC, CONNECTIONS, LOGGED_IN) | No | PUBLIC | PUBLIC (default) shows the post to anyone. CONNECTIONS (member posts only) limits it to the member’s connections. LOGGED_IN limits it to signed-in LinkedIn members. |
disable_reshare | boolean | No | False | Set to True to stop others from reposting this post. |