List user's Google Drive files

AUTHORITATIVE: Returns LIVE list of files from the authenticated user's actual Google Drive. Use when user asks 'show my files', 'what's in my Drive', 'my recent files'. Supports pagination - use nextPageToken to iterate through large drives without loading everything at once.

get/api/v1/drive/files

Request

  • Base URL: https://localhost:3000
  • URL: https://localhost:3000/api/v1/drive/files
  • Auth: OAuth 2 (authorization code, authorization URL /oauth/authorize, token URL /oauth/token)

Query parameters

max_resultsinteger

Files per page (default: 100, max: 1000)

page_tokenstring

Token from previous response to get next page

mime_typestring

Filter by type: 'application/pdf', 'application/vnd.google-apps.document', 'application/vnd.google-apps.spreadsheet', 'application/vnd.google-apps.folder'

folder_idstring

List contents of specific folder

Response

LIVE file list from user's Drive

userstring
countinteger

Number of files in this page

nextPageTokenstring

Token to get next page (null if no more pages)

hasMoreboolean

Whether more files are available

Changes

No recorded changes to this operation across all 1 revision of this API.