Gemini Files & Cache
List Gemini files
Lists files belonging to the current Workspace.
Lists files belonging to the current Workspace.
pageSize defaults to 50 and is at most 100. Use nextPageToken as pageToken to continue; an invalid pageToken returns 400. Resources can only be read, referenced, changed, or deleted in their owning Workspace.curl -X GET "https://example.com/v1beta/files"{ "files": [ { "name": "string", "displayName": "string", "mimeType": "string", "sizeBytes": "string", "uri": "string", "state": "string", "createTime": "2019-08-24T14:15:22Z", "updateTime": "2019-08-24T14:15:22Z", "expirationTime": "2019-08-24T14:15:22Z", "error": {} } ], "nextPageToken": "string"}AuthorizationBearer <token>
API Key authentication. Create or manage API keys in Dashboard > API > API Keys.
In: header
Query Parameters
key?string
API key alternative to Bearer or x-goog-api-key.
pageSize?integer
Requested page size, 1 to 100. Default: 50. page_size is also accepted.
Range
1 <= value <= 100default
50pageToken?string
Opaque nextPageToken from the previous response. page_token is also accepted.
Response
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json