Endpoint
Headers
| Header | Type | Required | Description |
|---|---|---|---|
Content-Type | string | Yes | Must be application/json |
x-api-key | string | Yes | Your OutX API key |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
social_urn | string | Yes | The LinkedIn activity URN of the post (e.g., "urn:li:activity:7123456789012345678") |
comment_text | string | Yes | The text content of the comment to post |
Response
The endpoint returns immediately with a task ID:| Field | Type | Description |
|---|---|---|
success | boolean | Whether the task was created successfully |
api_agent_task_id | string | UUID to poll for results via Get Task Status |
message | string | Human-readable confirmation |
Polling for Results
Poll the Get Task Status endpoint to confirm the comment was posted:Completed Response
Code Examples
Best Practices for Comments
- Be genuine and specific. Reference something from the post content rather than posting generic responses like “Great post!”
- Add value. Share a related insight, ask a thoughtful question, or offer a complementary perspective.
- Keep it concise. LinkedIn comments that are 1-3 sentences tend to perform best.
- Vary your comments. If you are commenting on multiple posts, make each comment unique. Repeating the same text can look spammy.
- Space out your comments. Avoid commenting on dozens of posts in rapid succession. Natural timing patterns are less likely to trigger LinkedIn’s activity monitoring.
Error Responses
| Status | Error | Description |
|---|---|---|
400 | Missing or invalid 'social_urn' | The social_urn field is missing or not a string |
400 | Missing or invalid 'comment_text' | The comment_text field is missing or not a string |
401 | Missing API Key / Invalid API Key | API key is missing or invalid |
403 | Plugin installation required... | No team member has an active Chrome extension. See Authentication |
404 | No admin user found in the team | Your team has no admin members |
FAQ
Whose LinkedIn account posts the comment?
Whose LinkedIn account posts the comment?
The comment is posted using your team’s oldest admin member’s LinkedIn account (sorted by when they joined the team). This is the team member whose Chrome extension session executes the action.
Is there a character limit for comments?
Is there a character limit for comments?
LinkedIn’s own comment character limit applies (approximately 1,250 characters). The API does not enforce an additional limit, but your comment will be truncated by LinkedIn if it exceeds their limit.
Can I include mentions or hashtags in the comment text?
Can I include mentions or hashtags in the comment text?
Can I edit or delete a comment after posting?
Can I edit or delete a comment after posting?
The API currently supports posting comments only. Editing and deleting comments is on our roadmap. You can manually edit or delete comments from the LinkedIn interface.
What about rate limits?
What about rate limits?
Since comments are posted through real browser sessions, LinkedIn’s standard activity policies apply. We recommend spacing comments at least 30-60 seconds apart and limiting total daily comment volume to patterns that resemble natural human behavior.
Related
- Like Post - Like posts alongside commenting
- Fetch Posts - Fetch posts to get activity URNs
- Get Task Status - Poll for task results

