> ## Documentation Index
> Fetch the complete documentation index at: https://docs.linkupapi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Add Comment to Post

> Add a comment to a LinkedIn post

Add a new comment to any LinkedIn post using the post URL.

<Note>
  This endpoint costs **1 credit** per request.
</Note>

### Header Parameters

<ParamField header="x-api-key" type="string" required>
  Your API key
</ParamField>

### Body Parameters

<ParamField body="post_url" type="string" required>
  LinkedIn post URL to comment on (must contain a valid activity URN)
</ParamField>

<ParamField body="message" type="string" required>
  Text content of the comment to post
</ParamField>

<ParamField body="country" type="string" default="FR">
  Country code for proxy selection. Available: (US, UK, FR, DE, NL, IT, IL, CA, BR, ES, IN)
</ParamField>

<ParamField body="login_token" type="string" required>
  LinkedIn authentication cookie obtained from the login/verify process
</ParamField>

<ParamField body="company_url" type="string">
  URL of the LinkedIn company page to comment as (e.g., "[https://www.linkedin.com/company/your-company](https://www.linkedin.com/company/your-company)"). If provided, the comment will be posted on behalf of the company page instead of the personal profile.
</ParamField>

### Response

<ResponseField name="status" type="string">
  Request status (success/error)
</ResponseField>

<ResponseField name="message" type="string">
  Detailed status message about the comment request
</ResponseField>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "status": "success",
    "message": "Comment posted successfully"
  }

  ```
</ResponseExample>

### Notes

* The post URL must contain a valid LinkedIn activity URN
* Example of valid post URLs:
  * `https://www.linkedin.com/feed/update/urn:li:activity:...`
  * `https://www.linkedin.com/posts/user-activity-...`
* Comments are posted with the identity associated with the login token
* **Company Page Comments**: When `company_url` is provided, the comment will be posted on behalf of the company page. You must have admin rights on the company page to use this feature.
* Comment text supports plain text only
* No formatting or special characters are supported in comments
* The post must be accessible with the provided login token
* LinkedIn's rate limits and spam detection apply to comment posting
* Comments cannot be longer than LinkedIn's maximum character limit
* Some posts may have commenting disabled by their authors
