Comments

This endpoint returns a comment by its ID. Corresponds to liveblocks.getComment.

get/rooms/{roomId}/threads/{threadId}/comments/{commentId}

Request

  • Base URL: https://api.liveblocks.io/v2
  • URL: https://api.liveblocks.io/v2/rooms/{roomId}/threads/{threadId}/comments/{commentId}
  • Auth: none declared

Path parameters

roomIdstring required

ID of the room

Example:my-room-id
threadIdstring required

ID of the thread

Example:th_abc123
commentIdstring required

ID of the comment

Example:cm_abc123

Response

Success. Returns the requested comment.

type'comment' required
threadIdstring required
roomIdstring required
idstring required
userIdstring required
createdAtstring date-time required
editedAtstring date-time
deletedAtstring date-time
metadataCommentMetadata required

Custom metadata attached to a comment. Supports maximum 50 entries. Key length has a limit of 40 characters maximum. Value length has a limit of 4000 characters maximum for strings.

Example response

{
  "type": "comment",
  "threadId": "thread-id",
  "roomId": "room-id",
  "id": "comment-id",
  "userId": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "editedAt": "2019-08-24T14:15:22Z",
  "deletedAt": "2019-08-24T14:15:22Z",
  "body": {},
  "metadata": {},
  "reactions": [],
  "attachments": []
}

Changes

    • info

      api operation id get-rooms-roomId-threads-threadId-comments-commentId removed and replaced with get-comment

    • info

      the response property / became required for the status

    • info

      the response property / became required for the status

    • info

      the response property became required for the status

    • info

      the response's property default value comment was removed for the status

    • info

      added 'propertyNames' constraint to the response property for the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      the response required property became not read-only for the status

    • warning

      removed the optional property / from the response with the status