Skip to main content
Comment on a document

Authorizations

token
string
query
required

Standard authorization for most API calls. This token identifies the logged-in user and their permissions. It is obtained either as a temporary token after a successful login or as a long-term API key.

Path Parameters

id
string
required

Identifier of the document the comment is added to.

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

"a0d01c9d-f72f-4c57-af11-e26bda19cc59"

Query Parameters

addMentionRights
boolean

Gives every mentioned user read access to the document, so a person can be pulled into the discussion even when the document was never shared with them. Without it, only users who can already read the document are recognized as mentions. Together with isPublicComment it also sends a view share to mentioned e-mail addresses that have no access yet.

comment
string

Deprecated: send the comment in the body. Still accepted for existing clients; ignored when the body carries one.

Maximum string length: 2000
Example:

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

isPublicComment
boolean

Deprecated: send it in the body. Still accepted for existing clients; ignored when the body carries it.

Body

application/json
comment
string

Comment written by a user. May carry basic formatting — bold, italic, underline, https links and bullet lists; everything else is stripped on input. Must contain visible text. Write @username or @email to mention a person and #doc:<definition>:<id> to mention another document, which is rendered as that document's title. Required here unless the deprecated query parameter is used or the comment carries a commentAttachment.

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.

commentAttachment
string | null

Identifier of a drawing the comment carries - a PNG image of at most 1048576 bytes that the caller uploaded and that is not used anywhere yet. The settings of the document owner must allow drawings in comments. The drawing is kept with the document but never listed among its attachments; it is downloaded by its identifier, and a reply's drawing has the visibility of its thread. A comment carrying one needs no text.

Minimum string length: 1
Pattern: ^[a-z0-9]+$
Example:

"s1pss1atbzli272pinbt48n2ssy96ax2pwgqrz5qyzklwxg1kl0tq6anvz1p97xj"

isPublicComment
boolean

Makes the comment part of the history that external recipients of the document see. A comment left private stays visible only to internal users with access to the document. Defaults to false. Ignored on a reply, which always inherits the visibility of the comment it answers.

threadParentId
string | null

Identifier of the comment being replied to. Omit to post a root comment. Only one level of replies exists, so this must address a root comment.

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

"9f1c4e2ab7d4423d8a6f0c5e3b7d1a92"

Response

The comment was written into the document workflow history.

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"