v1

latestOpenAPI 3.0.2Apache-2.02026-07-142963051.0 MB
Comments

Get comment

Retrieves the message and metadata for a specific comment, as well as information on the user who created the comment.

get/comments/{comment_id}

Path parameters

comment_idstring required

The ID of the comment.

Query parameters

fieldsstring[]

A comma-separated list of attributes to include in the response. This can be used to request fields that are not normally returned in a standard response.

Be aware that specifying this parameter will have the effect that none of the standard fields are returned in the response unless explicitly specified, instead only fields for the mini representation are returned, additional to the fields requested.

Response

Returns a full comment object.

idstring

The unique identifier for this comment.

type'comment'

The value will always be comment.

is_reply_commentboolean

Whether or not this comment is a reply to another comment.

messagestring

The text of the comment, as provided by the user.

created_atstring date-time

The time this comment was created.

modified_atstring date-time

The time this comment was last modified.

tagged_messagestring

The string representing the comment text with @mentions included. @mention format is @[id:username] where id is user's Box ID and username is their display name.

Example response

{
  "id": "11446498",
  "type": "comment",
  "is_reply_comment": true,
  "message": "@Aaron Levie these tigers are cool!",
  "created_by": {
    "id": "11446498",
    "type": "user",
    "name": "Aaron Levie",
    "login": "ceo@example.com"
  },
  "created_at": "2012-12-12T10:53:43-08:00",
  "modified_at": "2012-12-12T10:53:43-08:00",
  "item": {
    "id": "11446498",
    "type": "file"
  },
  "tagged_message": "@[1234567:Aaron Levie] these tigers are cool!"
}