Publish text, images, and video to a LinkedIn Destination with the OpenPMM API, including media limits and review steps.
Use the OpenPMM API to prepare and publish a Post to a LinkedIn Destination. This guide shows the LinkedIn-specific choices. Read Create posts first for the complete Post workflow.
Publishing creates content on LinkedIn. Review the Destination, content, media, and timing before you send a confirmed request.
Upload the file as an Asset before you publish the Post. Add the Asset ID to the Post body that should contain the media.Use one of these patterns:
Add one video Asset to the Post.
Add up to 20 image Assets to the Post.
Do not mix a video Asset with image Assets in the same LinkedIn Post.
OpenPMM checks the media before publication. If the file cannot publish, the
request identifies the required change before any provider request starts.
Send the body to POST /workspaces/{workspace_id}/posts/publish. Add a unique Idempotency-Key header. Use the same key when you retry the same request after a timeout.For a scheduled Post, use when: "schedule" and provide the publication time described in Queue, schedule, and retry.
Use GET /workspaces/{workspace_id}/posts/{post} after the request. The Post response includes its state and publication receipt.If the Post enters preparing, it has not reached LinkedIn. Poll the Post until it becomes ready, scheduled, or needs-attention. Do not confirm the same Post again after it moves from preparing.If LinkedIn rejects the media or content, read the error details and correct the Post. OpenPMM keeps each Post independent when the same request targets other Destinations.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OpenPMM","description":"Official documentation for the OpenPMM social publishing API, hosted MCP server, and first-party @openpmm/cli package","colors":{"primary":"#C83F1D","light":"#FF9A3D","dark":"#D84420"},"logo":"https://mintcdn.com/open-pmm/Y4bqcTFv_MCkrIIC/logo/openpmm.png?fit=max\u0026auto=format\u0026n=Y4bqcTFv_MCkrIIC\u0026q=85\u0026s=cdc550716e5a29bb13424cc795a18490","favicon":"https://mintcdn.com/open-pmm/Y4bqcTFv_MCkrIIC/favicon.ico?fit=max\u0026auto=format\u0026n=Y4bqcTFv_MCkrIIC\u0026q=85\u0026s=da4a9698e6119ac0274a1d31b0dc1248","api":{"playground":{"display":"simple"}},"appearance":{"default":"system","strict":false},"navbar":{"primary":{"type":"button","label":"Login","href":"https://app.openpmm.com"}},"seo":{"organization":{"name":"OpenPMM","url":"https://www.openpmm.com","sameAs":["https://github.com/OpenPMM/cli","https://www.npmjs.com/package/@openpmm/cli"]},"indexing":"navigable","trailingSlash":false},"integrations":{"telemetry":{"enabled":false}},"contextual":{"options":["copy","view","chatgpt","claude","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"OpenPMM","icon":"house","href":"https://www.openpmm.com"},{"anchor":"Dashboard","icon":"grid-2","href":"https://app.openpmm.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"open-pmm","hasAudioNarration":false,"actualSubdomain":"open-pmm","customDomains":["www.openpmm.com"],"gitSource":{"type":"github","owner":"openpmm","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6adf6b44d7cf896c8ad89e52","collectionId":"07a2f178-b073-447c-8eae-951e7ea8443b","liveDeploymentHistoryId":"6adf6b44d7cf896c8ad89e52","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6adf6b44d7cf896c8ad89e52","clientVersion":"0.0.4021","searchFilterCounts":[{"language":"default","tag":"API reference","count":71},{"language":"default","tag":"Guides","count":29},{"language":"default","tag":"CLI","count":12},{"language":"default","tag":"Publishing guides","count":11},{"language":"default","tag":"Get started","count":10},{"language":"default","tag":"Media guidelines","count":10},{"language":"default","tag":"Posts","count":10},{"language":"default","tag":"Inbox","count":9},{"language":"default","tag":"Workflows","count":8},{"language":"default","tag":"Destinations","count":7}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"guides/publish-to-linkedin","slug":"/guides/publish-to-linkedin","pageMetadata":{"title":"Publish to LinkedIn with the OpenPMM API","description":"Publish text, images, and video to a LinkedIn Destination with the OpenPMM API, including media limits and review steps.","href":"/guides/publish-to-linkedin"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Publish text, images, and video to a LinkedIn Destination with the OpenPMM API, including media limits and review steps.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Use the OpenPMM API to prepare and publish a Post to a LinkedIn Destination. This guide shows the LinkedIn-specific choices. Read `,_jsx(_components.a,{href:`/guides/publish-posts`,children:`Create posts`}),` first for the complete Post workflow.`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Publishing creates content on LinkedIn. Review the Destination, content, media, and timing before you send a confirmed request.`})}),`\n`,_jsx(Heading,{level:`2`,id:`before-you-start`,children:`Before you start`}),`\n`,_jsx(_components.p,{children:`You need these objects:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`An API credential with access to the Workspace.`}),`\n`,_jsx(_components.li,{children:`A Workspace ID.`}),`\n`,_jsx(_components.li,{children:`A connected LinkedIn Destination ID.`}),`\n`,_jsx(_components.li,{children:`Any media Asset that the Post uses.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.a,{href:`/guides/connect-a-destination`,children:`Connect a destination`}),` to authorize the LinkedIn account. Use `,_jsx(_components.a,{href:`/guides/upload-assets`,children:`Upload assets`}),` when the Post includes media.`]}),`\n`,_jsx(Heading,{level:`2`,id:`choose-the-linkedin-post-type`,children:`Choose the LinkedIn Post type`}),`\n`,_jsx(_components.p,{children:`LinkedIn accepts one video or a set of images in one Post. It does not accept a video and an image in the same Post.`}),`\n`,_jsx(_components.p,{children:`Use the following content choices:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Text only when the Post has no media.`}),`\n`,_jsx(_components.li,{children:`One video when the Post contains a video.`}),`\n`,_jsx(_components.li,{children:`One to 20 images when the Post contains images.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.a,{href:`/media/linkedin`,children:`LinkedIn media guidelines`}),` page lists the current file and duration limits.`]}),`\n`,_jsx(Heading,{level:`2`,id:`create-a-linkedin-draft`,children:`Create a LinkedIn draft`}),`\n`,_jsxs(_components.p,{children:[`Create a draft with the LinkedIn channel. A draft uses `,_jsx(_components.code,{children:`channel`}),` because it does not have a Destination yet.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"when\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"draft\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"group\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linkedin-launch\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"posts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"channel\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"linkedin\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"headline\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"A release update from OpenPMM.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"media\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"destination_options\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Send the request to `,_jsx(_components.code,{children:`POST /workspaces/{workspace_id}/posts`}),`. Store the returned Post `,_jsx(_components.code,{children:`id`}),` and `,_jsx(_components.code,{children:`version`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`add-media-to-the-post`,children:`Add media to the Post`}),`\n`,_jsx(_components.p,{children:`Upload the file as an Asset before you publish the Post. Add the Asset ID to the Post body that should contain the media.`}),`\n`,_jsx(_components.p,{children:`Use one of these patterns:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Add one video Asset to the Post.`}),`\n`,_jsx(_components.li,{children:`Add up to 20 image Assets to the Post.`}),`\n`,_jsx(_components.li,{children:`Do not mix a video Asset with image Assets in the same LinkedIn Post.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`OpenPMM checks the media before publication. If the file cannot publish, the\nrequest identifies the required change before any provider request starts.`}),`\n`,_jsx(Heading,{level:`2`,id:`publish-the-reviewed-post`,children:`Publish the reviewed Post`}),`\n`,_jsx(_components.p,{children:`Publish the same Post with its current version and the LinkedIn Destination ID.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"confirmed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"when\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"now\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"time_zone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"UTC\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"posts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"send_01JABCDEF\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"version\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"destination_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dest_01JABCDEF\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Send the body to `,_jsx(_components.code,{children:`POST /workspaces/{workspace_id}/posts/publish`}),`. Add a unique `,_jsx(_components.code,{children:`Idempotency-Key`}),` header. Use the same key when you retry the same request after a timeout.`]}),`\n`,_jsxs(_components.p,{children:[`For a scheduled Post, use `,_jsx(_components.code,{children:`when: \"schedule\"`}),` and provide the publication time described in `,_jsx(_components.a,{href:`/guides/schedule-and-retry`,children:`Queue, schedule, and retry`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`check-the-result`,children:`Check the result`}),`\n`,_jsxs(_components.p,{children:[`Use `,_jsx(_components.code,{children:`GET /workspaces/{workspace_id}/posts/{post}`}),` after the request. The Post response includes its state and publication receipt.`]}),`\n`,_jsxs(_components.p,{children:[`If the Post enters `,_jsx(_components.code,{children:`preparing`}),`, it has not reached LinkedIn. Poll the Post until it becomes `,_jsx(_components.code,{children:`ready`}),`, `,_jsx(_components.code,{children:`scheduled`}),`, or `,_jsx(_components.code,{children:`needs-attention`}),`. Do not confirm the same Post again after it moves from `,_jsx(_components.code,{children:`preparing`}),`.`]}),`\n`,_jsx(_components.p,{children:`If LinkedIn rejects the media or content, read the error details and correct the Post. OpenPMM keeps each Post independent when the same request targets other Destinations.`}),`\n`,_jsx(Heading,{level:`2`,id:`related-pages`,children:`Related pages`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/media/linkedin`,children:`LinkedIn media guidelines`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/guides/media-compatibility`,children:`Check media compatibility`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/guides/publish-posts`,children:`Create posts`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/guides/schedule-and-retry`,children:`Queue, schedule, and retry`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Publish to LinkedIn with the OpenPMM API","description":"Publish text, images, and video to a LinkedIn Destination with the OpenPMM API, including media limits and review steps.","href":"/guides/publish-to-linkedin"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Before you start","slug":"before-you-start","depth":2,"children":[]},{"title":"Choose the LinkedIn Post type","slug":"choose-the-linkedin-post-type","depth":2,"children":[]},{"title":"Create a LinkedIn draft","slug":"create-a-linkedin-draft","depth":2,"children":[]},{"title":"Add media to the Post","slug":"add-media-to-the-post","depth":2,"children":[]},{"title":"Publish the reviewed Post","slug":"publish-the-reviewed-post","depth":2,"children":[]},{"title":"Check the result","slug":"check-the-result","depth":2,"children":[]},{"title":"Related pages","slug":"related-pages","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"open-pmm","siteName":"OpenPMM","title":"Publish to LinkedIn with the OpenPMM API - OpenPMM","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-08-27T10:42:47.978Z","originalFileLocation":"guides/publish-to-linkedin.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Publish text, images, and video to a LinkedIn Destination with the OpenPMM API, including media limits and review steps.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OpenPMM\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/open-pmm/Q6BZMi2O6IrklsYx/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/open-pmm/Q6BZMi2O6IrklsYx/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/open-pmm/Q6BZMi2O6IrklsYx/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/open-pmm/Q6BZMi2O6IrklsYx/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/open-pmm/Q6BZMi2O6IrklsYx/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/open-pmm/Q6BZMi2O6IrklsYx/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/open-pmm/Q6BZMi2O6IrklsYx/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/open-pmm/Q6BZMi2O6IrklsYx/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/open-pmm/Q6BZMi2O6IrklsYx/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Publish to LinkedIn with the OpenPMM API - OpenPMM\">\u003cmeta data-mint-head property=\"og:description\" content=\"Publish text, images, and video to a LinkedIn Destination with the OpenPMM API, including media limits and review steps.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OpenPMM\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.openpmm.com/docs/guides/publish-to-linkedin\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://open-pmm.mintlify.app/_mintlify/api/og/v2?division=Publishing+guides\u0026amp;title=Publish+to+LinkedIn+with+the+OpenPMM+API\u0026amp;description=Publish+text%2C+images%2C+and+video+to+a+LinkedIn+Destination+with+the+OpenPMM+API%2C+including+media+limits+and+review+steps.\u0026amp;theme=d3f8c8d79f1e36f864055b30\u0026amp;signature=f3fe28151b29af4f868a0ee7b538f2a59597835b706e843f5b5ab38eafee260f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Publish to LinkedIn with the OpenPMM API - OpenPMM\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Publish text, images, and video to a LinkedIn Destination with the OpenPMM API, including media limits and review steps.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://open-pmm.mintlify.app/_mintlify/api/og/v2?division=Publishing+guides\u0026amp;title=Publish+to+LinkedIn+with+the+OpenPMM+API\u0026amp;description=Publish+text%2C+images%2C+and+video+to+a+LinkedIn+Destination+with+the+OpenPMM+API%2C+including+media+limits+and+review+steps.\u0026amp;theme=d3f8c8d79f1e36f864055b30\u0026amp;signature=f3fe28151b29af4f868a0ee7b538f2a59597835b706e843f5b5ab38eafee260f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/open-pmm/Q6BZMi2O6IrklsYx/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OpenPMM\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#C83F1D\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.openpmm.com/docs/guides/publish-to-linkedin\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/guides/publish-to-linkedin.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.openpmm.com/#organization\",\"name\":\"OpenPMM\",\"url\":\"https://www.openpmm.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/open-pmm/Y4bqcTFv_MCkrIIC/logo/openpmm.png?fit=max\u0026auto=format\u0026n=Y4bqcTFv_MCkrIIC\u0026q=85\u0026s=cdc550716e5a29bb13424cc795a18490\"},\"sameAs\":[\"https://github.com/OpenPMM/cli\",\"https://www.npmjs.com/package/@openpmm/cli\"]},{\"@type\":\"WebSite\",\"@id\":\"https://www.openpmm.com/docs#website\",\"name\":\"OpenPMM\",\"url\":\"https://www.openpmm.com/docs\",\"publisher\":{\"@id\":\"https://www.openpmm.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.openpmm.com/docs/guides/publish-to-linkedin#webpage\",\"url\":\"https://www.openpmm.com/docs/guides/publish-to-linkedin\",\"name\":\"Publish to LinkedIn with the OpenPMM API\",\"description\":\"Publish text, images, and video to a LinkedIn Destination with the OpenPMM API, including media limits and review steps.\",\"dateModified\":\"2026-08-27T10:42:47.978Z\",\"isPartOf\":{\"@id\":\"https://www.openpmm.com/docs#website\"},\"breadcrumb\":{\"@id\":\"https://www.openpmm.com/docs/guides/publish-to-linkedin#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.openpmm.com/docs/guides/publish-to-linkedin#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Publishing guides\",\"item\":\"https://www.openpmm.com/docs/guides/connect-a-destination\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Publish to LinkedIn with the OpenPMM API\",\"item\":\"https://www.openpmm.com/docs/guides/publish-to-linkedin\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.openpmm.com/docs/guides/publish-to-linkedin#article\",\"headline\":\"Publish to LinkedIn with the OpenPMM API\",\"name\":\"Publish to LinkedIn with the OpenPMM API\",\"description\":\"Publish text, images, and video to a LinkedIn Destination with the OpenPMM API, including media limits and review steps.\",\"url\":\"https://www.openpmm.com/docs/guides/publish-to-linkedin\",\"mainEntityOfPage\":{\"@id\":\"https://www.openpmm.com/docs/guides/publish-to-linkedin#webpage\"},\"dateModified\":\"2026-08-27T10:42:47.978Z\",\"publisher\":{\"@id\":\"https://www.openpmm.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.openpmm.com/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OpenPMM\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"OpenPMM","nav":{"global":{"anchors":[{"anchor":"OpenPMM","icon":"house","href":"https://www.openpmm.com"},{"anchor":"Dashboard","icon":"grid-2","href":"https://app.openpmm.com"}]},"tabs":[{"tab":"Guides","groups":[{"group":"Get started","pages":[{"title":"OpenPMM API","sidebarTitle":"Home","href":""},{"title":"OpenPMM API quickstart","sidebarTitle":"Quickstart","href":"/quickstart"},{"title":"Create an account from an agent","sidebarTitle":"Create an account","href":"/guides/create-account"},{"title":"Manage billing","href":"/guides/billing"}]},{"group":"Core concepts","pages":[{"title":"Accounts and workspaces","href":"/concepts/accounts-and-workspaces"},{"title":"Destinations","href":"/concepts/destinations"},{"title":"Posts and publishing","href":"/concepts/posts-and-sends"}]},{"group":"Publishing guides","pages":[{"title":"Connect a destination","href":"/guides/connect-a-destination"},{"title":"Upload assets","href":"/guides/upload-assets"},{"title":"Resolve media changes","sidebarTitle":"Media requirements","href":"/guides/media-compatibility"},{"title":"Refine post copy","href":"/guides/refine-post-copy"},{"title":"Create posts","description":"Create an OpenPMM draft Post, publish it, and check its final status safely.","href":"/guides/publish-posts"},{"title":"Publish to LinkedIn with the OpenPMM API","href":"/guides/publish-to-linkedin"},{"title":"Publish to Instagram with the OpenPMM API","description":"Publish Instagram posts, Reels, and Stories with the OpenPMM API, including media choices, limits, and confirmation steps.","href":"/guides/publish-to-instagram"},{"title":"Queue, schedule, and retry","href":"/guides/schedule-and-retry"},{"title":"Receive webhook events","href":"/guides/webhooks"},{"title":"Review post analytics","href":"/guides/post-analytics"},{"title":"Reply to comments","href":"/guides/reply-to-comments"}]},{"group":"Product feedback","pages":[{"title":"Send product feedback","href":"/guides/send-feedback"}]},{"group":"Media guidelines","pages":[{"title":"Media guidelines","sidebarTitle":"Overview","href":"/media/overview"},{"title":"Bluesky media guidelines","sidebarTitle":"Bluesky","href":"/media/bluesky"},{"title":"X media guidelines","sidebarTitle":"X","href":"/media/x"},{"title":"LinkedIn media guidelines","sidebarTitle":"LinkedIn","href":"/media/linkedin"},{"title":"Facebook media guidelines","sidebarTitle":"Facebook","href":"/media/facebook"},{"title":"Instagram media guidelines","sidebarTitle":"Instagram","href":"/media/instagram"},{"title":"Threads media guidelines","sidebarTitle":"Threads","href":"/media/threads"},{"title":"TikTok media guidelines","sidebarTitle":"TikTok","href":"/media/tiktok"},{"title":"YouTube media guidelines","sidebarTitle":"YouTube","href":"/media/youtube"},{"title":"Mastodon media guidelines","sidebarTitle":"Mastodon","href":"/media/mastodon"}]}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/mcp/overview"}]},{"tab":"CLI","pages":[{"title":"CLI","href":"/cli/overview"}]},{"tab":"API reference","pages":[{"title":"API reference","href":"/reference/overview"}]}]},"title":"Publish to LinkedIn with the OpenPMM API - OpenPMM","buildId":"dpl_DGmhKsAzJdVqypJzon18vViniWRY","deploymentId":"dpl_DGmhKsAzJdVqypJzon18vViniWRY","dynamics":[],"chunks":[]}