WarmablyWarmablyDOCS
Search docs⌘K
Dashboard
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

FieldTypeDescription
post_id *stringThe post's social_id, not necessarily the id visible in its URL.

Body parameters

FieldTypeDescription
account_id *stringA connected account's id.
text *stringUp to 1250 characters.
comment_idstringReply to this existing comment instead of commenting on the post directly.
mentionsarrayLinkedIn only. Entries of { name, profile_id, is_company }.
external_linkstringLinkedIn only. A URL to attach.
as_organizationstringLinkedIn only. Comment on behalf of a company page this account manages.

Response fields

FieldTypeDescription
object"CommentSent"Always this value.
comment_idstringThe id of the comment that was just posted.
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.
CredentialsRequired
AuthorizationBearer wm_live_••••••••
RequestTry it
curl -X POST https://api.warmably.com/api/linkedin/gateway/posts/7123456789012345678/comments \
  -H "Authorization: Bearer wm_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "account_id": "459993d2-b0e7-4b19-baf9-45252ca324cf",
    "text": "Congrats on the launch!"
  }'
Response
201 Created
{
  "object": "CommentSent",
  "comment_id": "6e2f1a9c-..."
}
No key yet? Create one from Dashboard → API Keys.