Skip to main content
Retrieve a list of the uploaded files.
External DocumentationTo learn more, visit the Gemini documentation.

Example Output

{
	"files": [
		{
			"name": "files/555br5yo5xgh",
			"displayName": "example1",
			"mimeType": "text/plain",
			"sizeBytes": "20",
			"createTime": "2026-02-05T09:56:49.808424Z",
			"updateTime": "2026-02-05T09:56:49.808424Z",
			"expirationTime": "2026-02-07T09:56:49.338590917Z",
			"sha256Hash": "MTFhMWU3MTE0MjE4OWE1ZDJkZjVjODI1OTI4MjRiY2RjZDA4M2JjY2IxNDQ3MTJhNjkxZDQyMDgxOTkxNzQwYg==",
			"uri": "https://generativelanguage.googleapis.com/v1beta/files/555br5yo5xgh",
			"state": "ACTIVE",
			"source": "UPLOADED"
		},
		{
			"name": "files/555br5yo6xgh",
			"displayName": "example2",
			"mimeType": "image/png",
			"sizeBytes": "216605",
			"createTime": "2026-02-05T09:56:45.492822Z",
			"updateTime": "2026-02-05T09:56:45.492822Z",
			"expirationTime": "2026-02-07T09:56:44.956961409Z",
			"sha256Hash": "NTQ1ZjM0N2RlZmExOTU4YzdlNTE0YjA5NzYwM2E5ODkzMjdkNGI2ZDM5ZGNhNDdjYTVkNGJkZDg2OWU5YmQyZA==",
			"uri": "https://generativelanguage.googleapis.com/v1beta/files/555br5yo6xgh",
			"state": "ACTIVE",
			"source": "UPLOADED"
		}
	]
}

Workflow Library Example

List Files with Gemini and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop