Skip to content
concord.app
Book a demo
esc
concord.app
Book a demo

API reference

Document comments. 11 operations.

The Document comments operations of the concord.app REST API, each with its parameters, body fields and responses.

Document comments — anchored discussion threads on documents.

Every path is on https://app.concord.app.

GET/api/v1/document-comments

List document comments

Returns every comment on one agreement document, newest first, each with its replies, read in the organization that owns the agreement (the same organization a created comment is written under). Not paginated: the read takes no cursor and is capped at 1,000 comments. anchorType keeps only the comments of one anchor kind. heldBy room keeps only the comments the document's live editor holds (text-passage threads, and whole-document threads of an editable document); heldBy server keeps only the comments no live editor holds (page-region comments and whole-document comments on a kept original), which a page lists beside the editor's own. INTERNAL comments are withheld from callers who are not internal members of the owning organization, and a guest reader sees only EXTERNAL comments: the one External conversation the owning organization and every invited counterparty company read, including what was written before the guest's company was invited. readsInternalComments says which of the two the caller is: true when it reads (and may write) INTERNAL comments on this agreement, false when it does not, and null when that could not be checked just now (treat it as not known yet). An agreement the caller cannot reach answers 404.

Parameters

NameInTypeDescription
agreement_id
required
query string
anchor_type query one of "text-range", "pdf-region", "document"
held_by query one of "room", "server"

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/document-comments

Create a document comment

Creates a new comment on an agreement document, written under the organization that owns the agreement and signed with the caller's own name (no caller can name its author). It is anchored to a page region or a text passage, or, with anchorType document, to the whole document (no anchor text, page, region or selector). INTERNAL keeps it inside that organization, and only an internal member of it may write one: any other signed-in caller must pass visibility EXTERNAL, or is refused with 403 DOCUMENT_COMMENT_INTERNAL_REFUSED, and an invited counterparty guest (whose own company's internal notes are written in the document itself) with 403 DOCUMENT_COMMENT_GUEST_INTERNAL_REFUSED. An omitted visibility is INTERNAL for a member and EXTERNAL for an invited counterparty guest. EXTERNAL publishes the comment into the one External conversation, read by the owning organization and every counterparty company invited to the agreement (now or later), and releases its events to outbound webhooks. Mentioned user ids are only recorded on an agreement.mentioned audit event and the org's outbound webhook; this route does not notify the mentioned users.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
agreement_id
required
string
text
required
string
anchor_text string
anchor_type one of "text-range", "pdf-region", "document"
visibility one of "INTERNAL", "EXTERNAL"
mentions array of object
page_number integer
x number
y number
width number
height number
selector object

Responses

StatusDescription
201OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: Authenticated but not authorized for this resource
404404 — NOT_FOUND: Requested resource does not exist
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: Service temporarily unavailable — may be retried after Retry-After
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

PATCH/api/v1/document-comments/anchor

Move a document comment's highlight

Moves the highlight rectangle of a page-region comment the caller authored to new page coordinates. The comment text, visibility and resolved state are untouched, and the comment stays on the same page. A comment that is not on a page region (one on a text passage, or on the whole document) has no rectangle to move and is refused with 409 DOCUMENT_COMMENT_NOT_A_REGION. An INTERNAL thread the caller may not read (it is not an internal member of the organization that owns the agreement) answers 404, as the list withholds it.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
id
required
string
x
required
number
y
required
number
width
required
number
height
required
number

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: The caller is not the author of the comment or reply
404404 — NOT_FOUND: The comment or reply referenced by the operation was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: The live comment room could not be reached — nothing was changed
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/document-comments/reply

Reply to a document comment

Adds a reply to an existing document comment thread: to the comment itself, or to one reply of that thread when the parent reply's id is given. A parent reply of another thread is refused as not found. The reply is signed with the caller's own name; no caller can name its author. A reply joins its thread's visibility, so the create rule applies to it: only an internal member of the organization that owns the agreement may reply to an INTERNAL thread, and for anyone else that thread answers 404, as the list withholds it.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
comment_id
required
string
text
required
string
parent_reply_id string
written_for one of "INTERNAL", "EXTERNAL" The thread's visibility (INTERNAL or EXTERNAL) as the caller showed it when these words were written. When given, the write is made only while the thread still has that visibility: a thread whose visibility changed meanwhile answers 409 Conflict, and nothing is written. Absent, the write takes the visibility the thread has when it lands.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: The caller is not the author of the comment or reply
404404 — NOT_FOUND: The comment or reply referenced by the operation was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: The live comment room could not be reached — nothing was changed
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

DELETE/api/v1/document-comments/reply

Delete a comment reply

Permanently removes the words of one reply the caller authored. A reply nobody has answered is removed from the thread; when others have answered it, a 'Reply deleted' line keeps their answers in place, and the thread then lists it with deleted: true and empty text. No route restores the words. A reply on an INTERNAL thread the caller may not read (it is not an internal member of the organization that owns the agreement) answers 404, as the list withholds it.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
reply_id
required
string

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: The caller is not the author of the comment or reply
404404 — NOT_FOUND: The comment or reply referenced by the operation was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: The live comment room could not be reached — nothing was changed
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/document-comments/reply/edit

Edit a comment reply

Edits the text of one reply the caller authored on a document comment thread. A reply on an INTERNAL thread the caller may not read (it is not an internal member of the organization that owns the agreement) answers 404, as the list withholds it.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
reply_id
required
string
text
required
string
written_for one of "INTERNAL", "EXTERNAL" The thread's visibility (INTERNAL or EXTERNAL) as the caller showed it when these words were written. When given, the write is made only while the thread still has that visibility: a thread whose visibility changed meanwhile answers 409 Conflict, and nothing is written. Absent, the write takes the visibility the thread has when it lands.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: The caller is not the author of the comment or reply
404404 — NOT_FOUND: The comment or reply referenced by the operation was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: The live comment room could not be reached — nothing was changed
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

POST/api/v1/document-comments/resolve

Resolve or reopen a comment

Marks a document comment thread resolved and stamps the caller as its resolver, or reopens the thread when resolved is false. A reopened thread keeps the previous resolver and resolution timestamp, which then name who resolved it last. An INTERNAL thread the caller may not read (it is not an internal member of the organization that owns the agreement) answers 404, as the list withholds it.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
id
required
string
resolved
required
boolean

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: The caller is not the author of the comment or reply
404404 — NOT_FOUND: The comment or reply referenced by the operation was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: The live comment room could not be reached — nothing was changed
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

GET/api/v1/document-comments/traces

List comment traces

Returns, newest first, who deleted a comment and who accepted or rejected a redline on one agreement document (a request or a form is a document), and when — capped at 200. Each line carries a display name (null when there is none; never an email), whether the caller did it, the time, and the side it was on. No comment or redline text, quote, section heading, comment or suggestion id ever leaves. INTERNAL lines are withheld from callers who are not internal members of the owning organization, and a guest reader sees only EXTERNAL lines on the one document its invitation admits. A subject the caller cannot reach answers 404.

Parameters

NameInTypeDescription
subjectKind
required
query one of "agreement"
subjectId
required
query string

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: The caller is not the author of the comment or reply
404404 — NOT_FOUND: The comment or reply referenced by the operation was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: The live comment room could not be reached — nothing was changed
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

PATCH/api/v1/document-comments/visibility

Share a comment with the counterparty

Moves a comment the caller authored from INTERNAL to EXTERNAL, making it and its replies readable by the counterparty's guest reader and releasing its business events to outbound webhooks. The move is one-way: EXTERNAL to INTERNAL is refused, because confining the row again cannot un-read what a guest already fetched. Re-sending the class a comment already has is accepted and changes nothing. An INTERNAL thread the caller may not read (it is not an internal member of the organization that owns the agreement) answers 404, as the list withholds it.

Parameters

NameInTypeDescription
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
id
required
string
visibility
required
one of "INTERNAL", "EXTERNAL"

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: The caller is not the author of the comment or reply
404404 — NOT_FOUND: The comment or reply referenced by the operation was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: The live comment room could not be reached — nothing was changed
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

PATCH/api/v1/document-comments/{id}

Update a document comment

Rewrites the text of a comment the caller authored. Nothing else on the comment changes, and the previous text is not recoverable through the API. An INTERNAL thread the caller may not read (it is not an internal member of the organization that owns the agreement) answers 404, as the list withholds it.

Parameters

NameInTypeDescription
id
required
path string
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Request body

NameTypeDescription
text
required
string
written_for one of "INTERNAL", "EXTERNAL" The thread's visibility (INTERNAL or EXTERNAL) as the caller showed it when these words were written. When given, the write is made only while the thread still has that visibility: a thread whose visibility changed meanwhile answers 409 Conflict, and nothing is written. Absent, the write takes the visibility the thread has when it lands.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: The caller is not the author of the comment or reply
404404 — NOT_FOUND: The comment or reply referenced by the operation was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: The live comment room could not be reached — nothing was changed
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

DELETE/api/v1/document-comments/{id}

Delete a document comment thread

Permanently deletes a comment the caller authored together with every reply on its thread, including replies written by other people and by concord.app AI. No route restores any of it. An INTERNAL thread the caller may not read (it is not an internal member of the organization that owns the agreement) answers 404, as the list withholds it.

Parameters

NameInTypeDescription
id
required
path string
Idempotency-Key header string Optional idempotency key. When supplied, a repeat of the same request replays the original response instead of performing the write twice. A retry sent WITHOUT the header is a second write and CAN duplicate its effect — always send one on retries.

Responses

StatusDescription
200OK
400Malformed request or invalid parameters, Request payload failed schema validation; BAD_REQUEST: Malformed request or invalid parameters; VALIDATION: Request payload failed schema validation
401401 — UNAUTHORIZED: Missing or invalid authentication credentials
403403 — FORBIDDEN: The caller is not the author of the comment or reply
404404 — NOT_FOUND: The comment or reply referenced by the operation was not found
405405 — METHOD_NOT_SUPPORTED: HTTP method not supported for this resource
406406 — NOT_ACCEPTABLE: Requested representation is not acceptable
408408 — TIMEOUT: Request timed out
409409 — CONFLICT: Resource state conflict — concurrent modification or duplicate
412412 — PRECONDITION_FAILED: Resource state does not allow the requested operation
413413 — PAYLOAD_TOO_LARGE: Request payload exceeds the allowed size
415415 — UNSUPPORTED_MEDIA_TYPE: Request media type is not supported
422422 — UNPROCESSABLE_CONTENT: Request semantically valid but unprocessable — e.g. file format mismatch
429429 — TOO_MANY_REQUESTS: Rate limit exceeded — wait retryAfterSeconds before retrying
499499 — CLIENT_CLOSED_REQUEST: Client closed the request before the server finished
500500 — INTERNAL_SERVER_ERROR: Unexpected server error — the request should not be retried
501501 — NOT_IMPLEMENTED: The requested operation is not implemented
502502 — BAD_GATEWAY: Invalid response from an upstream dependency
503503 — SERVICE_UNAVAILABLE: The live comment room could not be reached — nothing was changed
504504 — GATEWAY_TIMEOUT: Timed out waiting for an upstream dependency

See it on your contracts.

Book a demo

Trusted by teams at

  • 4M+ documents signed since 2014