---
title: "List stored files"
method: GET
path: "/3.0/file-manager/folders/{folder_id}/files"
tags: ["file-manager"]
---

# List stored files

`GET /3.0/file-manager/folders/{folder_id}/files`

## Request

- Base URL: `https://api.mailchimp.com`
- URL: `https://api.mailchimp.com/3.0/file-manager/folders/{folder_id}/files`
- Auth: one of:
  - HTTP bearer
  - OAuth 2
    - Authorization code: `https://login.mailchimp.com/oauth2/authorize`
    - Token URL: `https://login.mailchimp.com/oauth2/token`
- TypeScript: <https://skmtc.dev/mailchimp/apis/mailchimp-api/docs/3.0/file-manager/folders/:folder_id/files/get.ts> (a function with typed inputs; its response is checked against the schema)

Get a list of available images and files stored in this folder.

## Path parameters

- `folder_id` string, required

## Query parameters

- `fields` string[]
- `exclude_fields` string[]
- `count` integer
- `offset` integer
- `type` string
- `created_by` string
- `before_created_at` string
- `since_created_at` string
- `sort_field` 'added_date' | 'name' | 'size'
- `sort_dir` 'ASC' | 'DESC'

## Response `200`

- object: A list of available images and files stored in the File Manager for the account.
  - `_links` object[]: A list of link types and descriptions for the API schema documents.
    - `href` string: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
    - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD': The HTTP method that should be used when accessing the URL defined in 'href'.
    - `rel` string: As with an HTML 'rel' attribute, this describes the type of link.
    - `schema` string: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
    - `targetSchema` string: For GETs, this is a URL representing the schema that the response should conform to.
  - `files` object[]: A list of files and images in an account.
    - `_links` object[]: A list of link types and descriptions for the API schema documents.
      - `href` string: This property contains a fully-qualified URL that can be called to retrieve the linked resource or perform the linked action.
      - `method` 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD': The HTTP method that should be used when accessing the URL defined in 'href'.
      - `rel` string: As with an HTML 'rel' attribute, this describes the type of link.
      - `schema` string: For HTTP methods that can receive bodies (POST and PUT), this is a URL representing the schema that the body should conform to.
      - `targetSchema` string: For GETs, this is a URL representing the schema that the response should conform to.
    - `created_at` string, date-time: The date and time a file was added to the File Manager in ISO 8601 format.
    - `created_by` string: The username of the profile that uploaded the file.
    - `folder_id` integer: The id of the folder.
    - `full_size_url` string, uri: The url of the full-size file.
    - `height` integer: The height of an image.
    - `id` integer: The unique id of the file.
    - `name` string: The name of the file.
    - `size` integer: The size of the file in bytes.
    - `thumbnail_url` string, uri: The url of the thumbnail preview.
    - `type` 'image' | 'file': The type of file in the File Manager.
    - `width` integer: The width of the image.
  - `total_file_size` number: The total size of all File Manager files in bytes.
  - `total_items` integer: The total number of items matching the query regardless of pagination.

## Other responses

- `default`: An error generated by the Mailchimp API.

---

[API](https://skmtc.dev/mailchimp/apis/mailchimp-api.md) - [All operations](https://skmtc.dev/mailchimp/apis/mailchimp-api/llms.txt) - [OpenAPI document](https://skmtc.dev/mailchimp/apis/mailchimp-api/revisions/53bf4b156855?raw)
