Skip to main content
Programmatically add comments to LinkedIn posts through OutX. Engage as a user or on behalf of a company, automate interactions, and keep conversations active without manual effort.

Request Body

string
required
The unique identifier of the post to comment on. This is the id field from the Posts API response.
string
required
Email address of the user who will comment on the post.
  • For user actor type: The user’s email
  • For company actor type: The admin user’s email who manages the company page
string
required
The text content of the comment. Cannot be empty or whitespace-only.Tips for effective comments:
  • Be genuine and add value to the conversation
  • Keep it concise but meaningful
  • Ask questions to encourage engagement
  • Avoid generic responses like “Great post!”
string
default:"user"
Who is posting the comment. Options:
  • user - Comment as an individual user
  • company - Comment on behalf of a company page
string
Required when actor_type is companyThe exact company name/title as it appears on LinkedIn. This is used to identify which company page should post the comment.

Response Fields

boolean
Whether the comment task was created successfully
string
Human-readable message about the operation
string
Unique identifier for the created task. Use this to track the task status.

How It Works

1

Task Creation

When you call the Comment API, a task is created and queued for processing
2

Validation

The system validates:
  • Post exists and belongs to your team’s watchlists
  • User email is valid and associated with your team
  • Comment text is not empty
  • Company title matches (if commenting as company)
  • You haven’t exceeded plan limits
3

Asynchronous Processing

The comment is processed asynchronously by OutX’s automation system
4

Execution

The comment is posted on LinkedIn on behalf of the specified user or company

Actor Types Explained

User Actor Type

When actor_type is user:
  • The comment appears as coming from the individual user
  • user_email should be the email of the user who will comment
  • The user must be part of your OutX team
  • No company_title is needed
Use case: Personal engagement, thought leadership, networking

Company Actor Type

When actor_type is company:
  • The comment appears as coming from your company page
  • user_email should be the admin user’s email who manages the company page
  • company_title must exactly match the company name on LinkedIn
  • The admin user must have permission to manage the company page
Use case: Brand engagement, company thought leadership, B2B marketing

Error Responses

Best Practices

  • Add value to the conversation
  • Share relevant experiences or insights
  • Ask thoughtful questions
  • Avoid generic responses
  • Be authentic and genuine
  • Keep comments concise but substantive
  • Don’t comment on too many posts at once
  • Spread comments throughout the day
  • Monitor your plan limits
  • Implement delays between API calls
  • Quality over quantity
  • Reference specific points from the post
  • Tailor comments to the context
  • Use the author’s name when appropriate
  • Avoid copy-paste comments
  • Make each comment unique

Frequently Asked Questions

Yes. Set actor_type to "company" and provide the company_title field with the exact company name as it appears on LinkedIn. The user_email should be the email of an admin user who has permission to manage that company page.
The OutX API does not impose its own character limit on comments. However, LinkedIn’s standard comment length limits apply. LinkedIn currently allows up to approximately 1,250 characters per comment. Keep your comments within this limit to ensure they are posted successfully.