Skip to content

Google: Gets a comment by ID For more information, see Manage comments and replies (https: developers google com workspace drive api guides manage-comments) Required: The `fields` parameter must be set To return the exact fields you need, see Return specific fields (https: developers google com workspace drive api guides fields-parameter) — response body

Gets a comment by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set. To return the exact fields you need, see [Return specific fields](https://developers.google.com/workspace/drive/api/guides/fields-parameter).: response body. Complete fields and constraints for contract 2026-10-27.

API reference · Contract 2026-10-27

SDK schema: Gets a comment by ID. For more information, see [Manage comments and replies](https://developers.google.com/workspace/drive/api/guides/manage-comments). Required: The `fields` parameter must be set To return the exact fields you need, see Return specific fields (https: developers google com workspace drive api guides fields-parameter) — response body

FieldTypePresenceDescription and constraints
$objectRootA comment on a file. Some resource methods (such as `comments.update`) require a `commentId`. Use the `comments.list` method to retrieve the ID for a comment in a file.
anchorstringOptionalA region of the document represented as a JSON string. For details on defining anchor properties, refer to [Manage comments and replies](https://developers.google.com/workspace/drive/api/v3/manage-comments).
assigneeEmailAddressstringOptionalOutput only. The email address of the user assigned to this comment. If no user is assigned, the field is unset.
Read only: true
authorModelOptionalExpand Gets information about the user, the user’s Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). Required: The `fields` parameter must be set To return the exact fields you need, see Return specific fields (https: developers google com workspace drive api guides fields-parameter) — response body — user
Output only. The author of the comment. The author’s email address and permission ID will not be populated.
contentstringOptionalThe plain text content of the comment. This field is used for setting the content, while `htmlContent` should be displayed.
createdTimestringOptionalThe time at which the comment was created (RFC 3339 date-time).
Format: date-time
deletedbooleanOptionalOutput only. Whether the comment has been deleted. A deleted comment has no content.
htmlContentstringOptionalOutput only. The content of the comment with HTML formatting.
idstringOptionalOutput only. The ID of the comment.
kindstringOptionalOutput only. Identifies what kind of resource this is. Value: the fixed string `“drive#comment”`.
Default: drive#comment
mentionedEmailAddressesarrayOptionalOutput only. A list of email addresses for users mentioned in this comment. If no users are mentioned, the list is empty.
Read only: true
mentionedEmailAddresses[]stringEach item
modifiedTimestringOptionalThe last time the comment or any of its replies was modified (RFC 3339 date-time).
Format: date-time
quotedFileContentobjectOptionalThe file content to which the comment refers, typically within the anchor region. For a text file, for example, this would be the text at the location of the comment.
quotedFileContent.mimeTypestringOptionalThe MIME type of the quoted content.
quotedFileContent.valuestringOptionalThe quoted content itself. This is interpreted as plain text if set through the API.
repliesarrayOptionalOutput only. The full list of replies to the comment in chronological order.
replies[]ModelEach itemExpand Gets a reply by ID For more information, see Manage comments and replies (https: developers google com workspace drive api guides manage-comments) — response body
resolvedbooleanOptionalOutput only. Whether the comment has been resolved by one of its replies.

Referenced models: Gets a reply by ID For more information, see Manage comments and replies (https: developers google com workspace drive api guides manage-comments) — response body, Gets information about the user, the user’s Drive, and system capabilities. For more information, see [Return user info](https://developers.google.com/workspace/drive/api/guides/user-info). Required: The `fields` parameter must be set To return the exact fields you need, see Return specific fields (https: developers google com workspace drive api guides fields-parameter) — response body — user

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.