Skip to main content
Comment on a shared document

Query Parameters

otp
string

Authorization password for the share token. Required if the share is protected.

Example:

"553827"

shareToken
string
required

Share token used to access the shared resource.

Minimum string length: 1
Pattern: ^[A-Za-z0-9._-]+$
Example:

"cir_82c5fa30d26bc.WBv2Jc8lXo3pQ9rT5uYhZaEwSdFgHjKmNbVcXzLqRt0"

tenant
string

Tenant the share belongs to. It only has to be given when neither the share token nor the address the request arrives on says which one it is.

Pattern: ^[a-z0-9]+$
Example:

"default"

Body

application/json
comment
string
required

Text to record on the document. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input. Must contain visible text. Users and documents mentioned in it are resolved, though a mention made here grants nobody access.

Maximum string length: 2000
Example:

"Processed <b>as requested</b>, see <a href=\"https://example.com/report\">the report</a>."

commentAnchor
object | null

Place on a page of the document's main file the comment points at. Only a root comment may carry one, and only while the main file is a PDF. Omit it for a comment about the document as a whole.

isPublicComment
boolean
default:false

Whether every recipient of the document may read the comment, rather than only the workspace. A recipient from outside the workspace always comments in the open, so that they can see what they wrote.

Example:

false

threadParentId
string | null

Identifier of the comment being replied to. Omit to post a root comment. A reply always inherits the visibility of the comment it answers, and an external recipient may only reply to a public comment.

Pattern: ^[a-f0-9]{32}$
Example:

"9f1c4e2ab7d4423d8a6f0c5e3b7d1a92"

Response

The comment was recorded.

historyId
string

Identifier of the created comment, unique within the document. Address a comment by the pair (document id, historyId).

Example:

"9f1c4e2ab7d4423d8a6f0c5e3b7d1a92"

status
string

Status of the current action.

Example:

"SUCCESS"