Sample - Box Platform API
GET/comments/{comment_id}

Get comment

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

2 parameters
comment_idstringrequired
The ID of the comment.
fieldsarray<string>optional
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.

2 status codes
200Returns a full comment object.
idstringoptional
The unique identifier for this comment.
typestringoptional
The value will always be `comment`.
Allowed:comment
is_reply_commentbooleanoptional
Whether or not this comment is a reply to another comment.
messagestringoptional
The text of the comment, as provided by the user.
created_byobjectoptional
created_atstringoptional
The time this comment was created.
modified_atstringoptional
The time this comment was last modified.
itemobjectoptional
tagged_messagestringoptional
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.
defaultAn unexpected client error.
typestringoptional
The value will always be `error`.
Allowed:error
statusintegeroptional
The HTTP status of the response.
codestringoptional
A Box-specific error code.
Allowed:createdacceptedno_contentredirectnot_modifiedbad_requestunauthorizedforbiddennot_foundmethod_not_allowedconflictprecondition_failed
messagestringoptional
A short message describing the error.
context_infoobjectoptional
A free-form object that contains additional context about the error. The possible fields are defined on a per-endpoint basis. `message` is only one example.
help_urlstringoptional
A URL that links to more information about why this error occurred.
request_idstringoptional
A unique identifier for this response, which can be used when contacting Box support.

Error handling

Any other status is an error: An unexpected client error.