API Reference/Endpoints
Comment on a post
POST/api/linkedin/gateway/posts/{post_id}/comments
Posts a top-level comment, or, with comment_id set, a reply to an existing comment.
Authentication
Send your personal API key as a bearer token. A missing, malformed or revoked key returns 401.
Path parameters
Body parameters
Response fields
Attaching an image to a comment isn't reachable through this JSON route yet — the underlying call takes it as a multipart file upload, which the gateway doesn't forward.
Errors
·400 Bad Request. account_id or text is missing, or text is over 1250 characters.·401 Unauthorized. The key is missing, malformed or has been rotated.·403 Forbidden. The account_id doesn't belong to this key.·404 Not Found. No post — or, if comment_id was set, no comment — exists for that id.