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
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Query parameters

query, string

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

maxResults, integer

Maximum files to return, capped at 25.

pageToken, string
orderBy, 'folder,name_natural' | 'recency desc' | 'modifiedTime desc'
filesOnly, 'true' | 'false'
modifiedAfter, string date-time

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

folderId, string

Limit to direct children of this folder.

Response

Google Drive files returned.

GoogleWorkspaceDriveFilesResponse required
ok, true required
files, GoogleWorkspaceDriveFileSummary[] required
nextPageToken, string
incompleteSearch, boolean

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

Changes

    • breaking

      the response property files/items/size became nullable for the status

    • warning

      changed the pattern of the query request parameter modifiedAfter from ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$ to ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$

    • info

      response property files/items/size list-of-types was narrowed by removing types null from media type application/json of response 200