st.reactToPost
This action allows you to react to a post using any available reaction type.
In the SDK this is the reactToPost method. It takes the parameters below except label and then, which exist only in workflow JSON. It returns no data: a failed action comes back in errors, with one of the error types below.
In the CLI this is linkedin post react – the command is below, under Parameters.
Constraints
⏺️ Root Start: allowed, when
postUrlorpostUrnparameter is provided.
⬆️ Parent Actions: st.openPost, st.doForPosts.
⬇️ Child Actions: N/A.
Parameters
{
"actionType": "st.reactToPost",
"postUrl": "https://www.linkedin.com/posts/post1",
"companyUrl": "https://www.linkedin.com/company/company1",
"type": "like",
"label": "post1"
}In AI assistants, the MCP server runs this action as the react_to_post tool.
In the CLI this is linkedin post react:
bash
linkedin post react <url> --type <reaction> [flags]| Flag | Type | Required | Description |
|---|---|---|---|
--type | string | yes | Reaction type: like, love, support, celebrate, insightful, funny |
--company-url | string | no | React on behalf of a company page |
postUrl(required for root start unlesspostUrnis provided, forbidden for parent start) – LinkedIn URL of the post.postUrn(optional) – URN of the post, accepted instead ofpostUrl. When both are provided, the URL must contain that same URN.type– enum describing the reaction type.like– standard "like".celebrate– to celebrate an achievement.support– to show support.love– to express love or admiration.insightful– to appreciate insightful content.funny– to react to something humorous.
companyUrl(optional) – LinkedIn company page URL. When provided, the reaction will be posted on behalf of the company. Requires content admin access to the company page.label(optional) – custom label for tracking this action in workflow completion.
Result options
- Successful post reaction:
json
{
"actionType": "st.reactToPost",
"success": true,
"label": "post1"
}label– included only if specified in the action parameters.
- Failed post reaction:
json
{
"actionType": "st.reactToPost",
"success": false,
"label": "post1",
"error": {
"type": "postNotFound",
"message": "The provided URL is not an existing LinkedIn post."
}
}label– included only if specified in the action parameters.error.type– enum with the following possible values:postNotFound– provided URL is not an existing LinkedIn post.noPostingPermission– no permission to react on behalf of this company.