Skip to content

API: comments

Status: GA Access: token required API contract: 0.3.0 · capability 2026-09-03.1 View as Markdown Open in Claude Open in ChatGPT

List Comments

Open as a page →

: list filtered by target.

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
target_kindquerynostring | null
target_guidquerynointeger | null
include_deletedquerynoboolean
limitquerynointeger
offsetquerynointeger

Responses:

CodeMeaningBody
200Successful ResponseCommentList
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

Create Comment

Open as a page →

: create a comment, resolve @mentions, record agent mentions as an agent action.

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
Idempotency-KeyheadernostringOptional.

Request body: application/json — schema CommentCreate

FieldTypeRequiredDescription
body_markdownstringyes
target_guidintegeryes
target_kindstringyes

Responses:

CodeMeaningBody
201Successful ResponseCommentRead
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

Delete Comment

Open as a page →

: soft-delete.

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
guidpathyesinteger
Idempotency-KeyheadernostringOptional.

Responses:

CodeMeaningBody
200Successful Responseobject
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

Get Comment

Open as a page →

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
guidpathyesinteger

Responses:

CodeMeaningBody
200Successful ResponseCommentRead
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError

Patch Comment

Open as a page →

: PATCH only by author (or superuser).

Auth: Authorization: Bearer <token> required

ParameterInRequiredTypeDescription
guidpathyesinteger
Idempotency-KeyheadernostringOptional.

Request body: application/json — schema CommentUpdate

FieldTypeRequiredDescription
body_markdownstring | nullno

Example:

{
"body_markdown": "Edited: the figure is confirmed by the source."
}

Responses:

CodeMeaningBody
200Successful ResponseCommentRead
401Missing or invalid authentication credentialsErrorResponse
422Validation ErrorHTTPValidationError