Skip to main content
POST
Needs comments:create, and a role in the post’s workspace that can add comments. See Permissions.
Without parent_comment_id the comment is a team comment (source: INTERNAL) and stays in PostSyncer. With it, the comment is a reply and takes the parent’s source, network and copy of the post. A reply in a thread a client started on the share link is INTERNAL, and the client sees it on the link. A reply under a SOCIAL comment is sent to its network right after the answer, as the account in the parent’s account_id. platform_post_comment_id is filled once it is out. If the network refuses it, the reply is removed and the post’s comments in the app say why, so read the comment again to know it went out. A comment needs text or media. media takes up to 10 pictures or videos, as library ids or https:// links (copied into the library first), and no documents. quote, anchor and mentions are for team comments only; each person in mentions gets the comment.mentioned notification once. In the answer, is_deleted_on_platform, is_hidden_on_platform and an is_resolved you didn’t send are null; Get the comment gives their values.

Errors

Authorizations

Authorization
string
header
required

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

Body

application/json

Text, media or both: a comment needs one of them.

post_id
integer
required

The post. It must be in a workspace the key can reach, and be the parent's post when parent_comment_id is set.

parent_comment_id
integer | null

Reply under this comment of the same post. A reply under a SOCIAL comment goes out to its network as the account account_id names. Left out, the comment is a team comment (INTERNAL).

content
string | null

The text. Spaces around it are trimmed; blank counts as no text.

Maximum string length: 65535
media
(integer | string<uri>)[] | null

Up to 10 pictures or videos: media library ids of the post's workspace, or public https:// links, which are copied into the library first (as for a post's content[].media). JPEG, PNG, GIF and WebP pictures; MP4, MOV and WebM videos. No documents.

Maximum array length: 10
is_resolved
boolean

Store the comment as resolved.

is_approved
boolean | null

A flag of your own for the comment.

quote
string | null

Team comments only: the words of the post this comment is about. Blank counts as none.

Maximum string length: 500
anchor
object | null

Team comments only: where the quoted words are.

mentions
integer[] | null

Team comments only: the people it tags, as user ids from List people to mention. Each person added gets the comment.mentioned notification once; the writer never does.

Maximum array length: 50

Response

The comment, in data.

data
object
required

A comment on a post: from a network (source: SOCIAL), or written in PostSyncer (team, approval and share-link comments). mentions, media, replies and user are left out of a reply's parent_comment.

message
enum<string>
required
Available options:
Comment created successfully