List files in a folder or search the drive
Lists the children of folderId (the root by default), folders first.
With q and no folderId the whole drive is searched by name (on Google, every drive the app can see, shared drives included).
- The account must have been connected with
scopes=files(412account_scope_missingotherwise). - Cursors are opaque and provider-issued.
- Google Drive returns only files Zernio created or the user picked (see the Files tag): an unpicked folder lists empty.
Authentication
API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.
Query parameters
The connected Google, Microsoft or IMAP account.
Provider folder id; omit for the root.
Name search.
50Responses
Success· the request worked
Errors· the request failed
Respond to an invitation
Accepts, declines or tentatively accepts on behalf of the mailbox and notifies the organizer, unless `sendResponse` is false.
Create a hosted Google Picker session
Creates a hosted Google Picker session so your end user can grant Zernio access to Drive files. Google accounts are connected with `drive.file`, so Zernio opens only files it created or the user picked (see the Files tag). 1. Create a session. 2. Send the user to `url`. 3. They pick files in Google Picker on a Zernio-hosted page. ### Redirect When they finish, the browser is sent to `redirectUrl` with these query params added (existing params are kept): - `status=picked`, `pickerSessionId`, `fileIds` (comma-separated Drive file ids, already checked against Drive), or - `status=cancelled`, `pickerSessionId` when the user pressed Cancel. A `file.picked` webhook fires on every successful pick, so `redirectUrl` is optional for server-side integrations. Closing the picker without picking keeps the session open; the user can try again until it expires. ### Limits - The URL is single-use and expires after 30 minutes; create a new session for every pick. - Google accounts only: Microsoft accounts answer 400 `platform_not_supported` because OneDrive needs no picker. - Picks are permanent grants: once picked, a file stays readable through the Files endpoints until the user removes Zernio from their Google account.