Method: files.list

Lists the metadata for Files owned by the requesting project.

HTTP request

GET https://generativelanguage.googleapis.com/v1beta/files

The URL uses gRPC Transcoding syntax.

Query parameters

Parameters
pageSize

integer

Optional. Maximum number of Files to return per page. If unspecified, defaults to 10. Maximum pageSize is 100.

pageToken

string

Optional. A page token from a previous files.list call.

Request body

The request body must be empty.

Response body

Response for files.list.

If successful, the response body contains data with the following structure:

JSON representation
{
  "files": [
    {
      object (File)
    }
  ],
  "nextPageToken": string
}
Fields
files[]

object (File)

The list of Files.

nextPageToken

string

A token that can be sent as a pageToken into a subsequent files.list call.