Content / CLI

Publish post

Publish a content post to LinkedIn IMMEDIATELY. The post must already have a LinkedIn account associated (set when generated). Returns the live LinkedIn post URL on success. Use schedule-post if you want a delay/safety window before it goes live.

pipeline publish-postDeterministic operation

Parameters

workspaceIdOptional · string
Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client.
postIdRequired · string
The content post ID (must be in draft status).
Request example
pipeline publish-post \
  --post-id "00000000-0000-4000-8000-000000000000"
Full input schema
Input schema
{
  "type": "object",
  "properties": {
    "workspaceId": {
      "type": "string",
      "minLength": 1,
      "description": "Optional workspace ID or slug. Required when this credential can access multiple workspaces and no workspace was configured on the client."
    },
    "postId": {
      "type": "string",
      "description": "The content post ID (must be in draft status)."
    }
  },
  "required": [
    "postId"
  ]
}
See this operation inMCP REST API TypeScript SDK
CLI guide | Pipeline v2 preview