---
title: "Add a comment to a LinkedIn post"
method: POST
path: "/linkedin-comments"
tags: ["LinkedIn Analytics"]
---

# Add a comment to a LinkedIn post

`POST /linkedin-comments`

Post a comment on a LinkedIn post. Supports replies to existing comments
via the parentComment parameter. Raw input may be up to 10000 characters;
after mention processing, the text sent to LinkedIn must be at most 1250 characters.
Supports @mentions using @{urn:li:person:ID|Name} or @{urn:li:organization:ID|Company} syntax.

## Request body

- object
  - `postedId` string, required — LinkedIn post URN (urn:li:share:*, urn:li:ugcPost:*, or urn:li:activity:*). Activity URNs are attempted directly, with same-ID ugcPost/share fallbacks for retryable LinkedIn target errors.
  - `message` string, required — Raw comment input (max 10000 characters); after mention conversion, the sent text is limited to 1250 characters. Supports @{urn:li:person:ID|Name} and organization mentions.
  - `platformId` string, required — LinkedIn connection ID
  - `parentComment` string — Optional parent comment URN for replies

## Response `201`

Comment created

- object
  - `success` boolean
  - `comment` object
    - `id` string — Comment URN
    - `message` string
    - `actor` string
    - `object` string

## Other responses

- `400` — Invalid request
- `404` — LinkedIn connection not found
- `500` — Server error

---

[API](https://skmtc.dev/publora/apis/publora-api.md) · [All operations](https://skmtc.dev/publora/apis/publora-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/publora/publora-api/revisions/a1534a88d80a/schema)
