Box Developer Documentation
 
    Latest version

    Get comment

    get
    https://api.box.com/2.0
    /comments/:comment_id

    This endpoint is in the version 2024.0. No changes are required to continue using it. For more details, see Box API versioning.

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

    Request

    bearer [ACCESS_TOKEN]
    application/json

    Path Parameters

    stringin pathrequired
    12345

    The ID of the comment.

    Query Parameters

    string arrayin queryoptional
    id,type,name

    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

    application/jsonComment (Full)

    Returns a full comment object.

    application/jsonClient error

    An unexpected client error.

    get
    Get comment
    You can now try out some of our APIs live, right here in the documentation.
    Log in

    Request Example

    Response Example

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