Add Comment

Add a comment to a record.


POST /v1/add-comment

Add a comment to a record. Comments are visible to all workspace members. Blank lines in text become paragraphs and single newlines become line breaks. Pass html instead for rich formatting such as bold, lists or links.

Request body

FieldTypeRequiredDescription
recordIdstringYesThe record ID to comment on
textstringYesComment text (plain text; line breaks are preserved)
htmlstringNoComment body as HTML, for rich formatting. Sanitized server-side. Takes precedence over text — the comment’s stored plain-text mirror (used for search) is derived from this HTML, not from text.
{
  "recordId": "string",
  "text": "string",
  "html": "string"
}

Response

{
  "id": "string",
  "uid": "string",
  "text": "string",
  "createdAt": "2024-01-01T00:00:00Z",
  "user": {
    "id": "string",
    "firstName": "string",
    "lastName": "string"
  }
}

Example

curl -X POST https://rest.blue.app/v1/add-comment \
  -H "Authorization: Bearer $BLUE_TOKEN" \
  -H "blue-org-id: $BLUE_ORG_ID" \
  -H "Content-Type: application/json" \
  -d '{"recordId":"string","text":"string","html":"string"}'