Capability Sources

Search Google Drive files as the calling member

Changed on

Lists or searches Drive files, including an optional modifiedAfter date and direct-parent folder filter. Follow nextPageToken until absent, and honor incompleteSearch before claiming complete coverage.

get/v1/capabilities/google-workspace/drive-files

Request

  • Base URL: https://api.openworklabs.com
  • URL: https://api.openworklabs.com/v1/capabilities/google-workspace/drive-files
  • Auth: one of:
    • API key in header x-api-key
    • HTTP bearer

Query parameters

querystring

Optional text to search in Drive file names and full text. Omit to list files.

maxResultsinteger

Maximum files to return, capped at 25.

pageTokenstring
orderBy'folder,name_natural' | 'recency desc' | 'modifiedTime desc'
filesOnly'true' | 'false'
modifiedAfterstring date-time

Only files modified after this RFC3339 timestamp; follow nextPageToken to enumerate all matching files.

folderIdstring

Limit to direct children of this folder.

Response

Google Drive files returned.

oktrue required
nextPageTokenstring
incompleteSearchboolean

Google reports some drives were not searched; do not claim these are all matching files.

Changes

    • info

      added the new optional query request parameter filesOnly

    • info

      added the new optional query request parameter orderBy

    • info

      the endpoint scheme security bearerAuth was added to the API

    • info

      the endpoint scheme security denApiKey was added to the API