Skip to content

Agreement Comments

Lists comments for an agreement and allows authenticated users to add new comments.

GET /agreements/{agreementId}/comments

  • Auth: not required
  • Response: array of comment items

Comment fields:

  • id
  • author
  • authorAvatar
  • authorOpenId
  • content
  • createdAt

POST /agreements/{agreementId}/comments

  • Auth: required
  • Rate limit: enabled

Request body:

{
  "content": "Validation notes look good."
}

Responses:

  • 200 OK: created comment object
  • 400 Bad Request
  • 401 Unauthorized
  • 500 Internal Server Error