Skip to main content
POST
Start a comment thread on a file, site page, order, or asset. The comment is attributed to the API key's creator.

Authorizations

Authorization
string
header
required

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

Headers

Replo-Api-Version
enum<string>
required

The public API version to use for this request.

Available options:
2026-10-05

Body

application/json
target
object
required
body
string
required

Markdown (GFM) parsed as MDX. To mention someone, insert <Mention data='<mentionable JSON>' />. Expressions in braces, raw HTML and any other JSX are rejected, so escape a literal { or < with a backslash. Images must be hosted on assets.replocdn.com.

Minimum string length: 1
id
string<uuid>

Client-generated thread id. Send the same id and commentId on a retry to get the existing thread back.

commentId
string<uuid>

Client-generated first-comment id. Required with id.

anchor
object

Where on the target to start the thread; omit or pass type none for the whole target. Point anchors work only on file and asset targets; site page and order threads must use none.

Response

Start a comment thread on a file, site page, order, or asset. The comment is attributed to the API key's creator.

object
enum<string>
required
Available options:
comment_thread
id
string<uuid>
required
projectId
string<uuid>
required
target
object
required
anchor
object
required

Where on the target the thread sits; type none means the whole target.

status
enum<string>
required

CommentThreadStatus

Available options:
open,
resolved
resolvedAt
string<date-time> | null
required
createdAt
string<date-time>
required
updatedAt
string<date-time>
required
comments
object[]
required