Lists a file's comments

GET {{baseUrl}}/files/:fileId/comments?pageToken={{pageToken}}&key={{key}}&oauth_token={{oauthToken}}

Lists a file's comments.

Request Params

KeyDatatypeRequiredDescription
includeDeletedstringWhether to include deleted comments. Deleted comments will not include their original content.
pageSizestringThe maximum number of comments to return per page.
pageTokenstringThe token for continuing a previous list request on the next page. This should be set to the value of 'nextPageToken' from the previous response.
startModifiedTimestringThe minimum value of 'modifiedTime' for the result comments (RFC 3339 date-time).
altstringData format for the response.
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAn opaque string that represents a user for quota purposes. Must not exceed 40 characters.
userIpstringDeprecated. Please use quotaUser instead.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"comments":[{"anchor":"\u003cstring\u003e","author":{"displayName":"\u003cstring\u003e","emailAddress":"\u003cstring\u003e","kind":"drive#user","me":"\u003cboolean\u003e","permissionId":"\u003cstring\u003e","photoLink":"\u003cstring\u003e"},"content":"\u003cstring\u003e","createdTime":"\u003cdateTime\u003e","deleted":"\u003cboolean\u003e","htmlContent":"\u003cstring\u003e","id":"\u003cstring\u003e","kind":"drive#comment","modifiedTime":"\u003cdateTime\u003e","quotedFileContent":{"mimeType":"\u003cstring\u003e","value":"\u003cstring\u003e"},"replies":[{"action":"\u003cstring\u003e","author":{"displayName":"\u003cstring\u003e","emailAddress":"\u003cstring\u003e","kind":"drive#user","me":"\u003cboolean\u003e","permissionId":"\u003cstring\u003e","photoLink":"\u003cstring\u003e"},"content":"\u003cstring\u003e","createdTime":"\u003cdateTime\u003e","deleted":"\u003cboolean\u003e","htmlContent":"\u003cstring\u003e","id":"\u003cstring\u003e","kind":"drive#reply","modifiedTime":"\u003cdateTime\u003e"},{"action":"\u003cstring\u003e","author":{"displayName":"\u003cstring\u003e","emailAddress":"\u003cstring\u003e","kind":"drive#user","me":"\u003cboolean\u003e","permissionId":"\u003cstring\u003e","photoLink":"\u003cstring\u003e"},"content":"\u003cstring\u003e","createdTime":"\u003cdateTime\u003e","deleted":"\u003cboolean\u003e","htmlContent":"\u003cstring\u003e","id":"\u003cstring\u003e","kind":"drive#reply","modifiedTime":"\u003cdateTime\u003e"}],"resolved":"\u003cboolean\u003e"},{"anchor":"\u003cstring\u003e","author":{"displayName":"\u003cstring\u003e","emailAddress":"\u003cstring\u003e","kind":"drive#user","me":"\u003cboolean\u003e","permissionId":"\u003cstring\u003e","photoLink":"\u003cstring\u003e"},"content":"\u003cstring\u003e","createdTime":"\u003cdateTime\u003e","deleted":"\u003cboolean\u003e","htmlContent":"\u003cstring\u003e","id":"\u003cstring\u003e","kind":"drive#comment","modifiedTime":"\u003cdateTime\u003e","quotedFileContent":{"mimeType":"\u003cstring\u003e","value":"\u003cstring\u003e"},"replies":[{"action":"\u003cstring\u003e","author":{"displayName":"\u003cstring\u003e","emailAddress":"\u003cstring\u003e","kind":"drive#user","me":"\u003cboolean\u003e","permissionId":"\u003cstring\u003e","photoLink":"\u003cstring\u003e"},"content":"\u003cstring\u003e","createdTime":"\u003cdateTime\u003e","deleted":"\u003cboolean\u003e","htmlContent":"\u003cstring\u003e","id":"\u003cstring\u003e","kind":"drive#reply","modifiedTime":"\u003cdateTime\u003e"},{"action":"\u003cstring\u003e","author":{"displayName":"\u003cstring\u003e","emailAddress":"\u003cstring\u003e","kind":"drive#user","me":"\u003cboolean\u003e","permissionId":"\u003cstring\u003e","photoLink":"\u003cstring\u003e"},"content":"\u003cstring\u003e","createdTime":"\u003cdateTime\u003e","deleted":"\u003cboolean\u003e","htmlContent":"\u003cstring\u003e","id":"\u003cstring\u003e","kind":"drive#reply","modifiedTime":"\u003cdateTime\u003e"}],"resolved":"\u003cboolean\u003e"}],"kind":"drive#commentList","nextPageToken":"\u003cstring\u003e"}