Skip to main content
POST
Post Comment
Posts a comment on an existing post. Write action: the comment is publicly visible. text is capped at 1250 characters. See Pricing for current prices. Where supported, get a quote for your request.

Example

Path parameters and required query parameters are documented in the operation reference.

Request contract

  • Method and path: POST /apis/v1/unipile/linkedin/posts/{post_id}/comments/send
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/unipile/linkedin/posts/{post_id}/comments/send
  • post_id: path; required
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Published reference price: $0.02 USD per successful request. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

post_id
string
required

The ID of the associated post.
Linkedin: use the social_id from the post object (GET post or list posts). The post id visible in url will not work in all case, you can refer here for more details : https://developer.unipile.com/docs/posts-and-comments
Instagram Post short code dont work on this route, please use the provider_id instead.

Body

account_id
string
required

The id of the account to perform the request from.

Minimum string length: 1
text
string
required

Linkedin: You can add a mention by inserting the index of the corresponding entry from the mentions array between two double braces. Example: Hey {{0}}, check this out !
Instagram: You can mention users by inserting their username in the text, like @username.

Required string length: 1 - 1250
as_organization
string

Linkedin only Provide the ID of an organization over which you have control to perform the action on its behalf.

Minimum string length: 1
comment_id
string

The id of the comment to reply to. Linkedin: use the comment id returned by the comments list.

Minimum string length: 1

Linkedin only An external link that should be displayed within a preview card. The URL must also be included in the post textual content. Otherwise, it will be automatically added at the end.

Pattern: ^https?://

Response

Created. Comment sent successfully.

object
enum<string>
required
Available options:
CommentSent
comment_id
string