---
title: "GET /files"
method: GET
path: "/files"
---

# GET /files

`GET /files`

List the file resources. This is only supported for code-interpreter session pools.

## Query parameters

- `api-version` string, required
- `identifier` string, required
- `path` string
- `recursive` boolean

## Response `200`

The request has succeeded.

- PagedSessionResourceFile — Paged collection of SessionResourceFile items
  - `value` SessionResourceFile[], required — The SessionResourceFile items on this page
    - `name` string, required — The name of the file.
    - `type` string, required — The type of the session resource file.
    - `contentType` string — The type of the content of this file.
    - `sizeInBytes` integer — The size of the file.
    - `lastModifiedAt` string, date-time, required — The date time in RFC3339 format when the file was last modified.
    - `directory` string — The directory path of the session resource file.
  - `nextLink` string, uri — The link to the next page of items

## Other responses

- `default` — An unexpected error response.

## Changes

- **2026-07-13** (2024-10-02-preview) `acc255eeaad5` — 1 info
  - added the new optional `query` request parameter `recursive`
- **2025-09-05** (2024-10-02-preview) `f47dad5a0361` — 1 warning
  - deleted the `query` request parameter `recursive`

[Change history](https://skmtc.dev/azure/apis/app-dynamicsessions/changes/files/get.md)

---

[API](https://skmtc.dev/azure/apis/app-dynamicsessions.md) · [All operations](https://skmtc.dev/azure/apis/app-dynamicsessions/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/app-dynamicsessions/revisions/acc255eeaad5/schema)
