---
search:
  tags:
    - Files
    - GET
seo:
  description: >-
    Reference for the GET /v1/sandboxes/{id}/files/list endpoint in the Carton
    API reference.
sidebar:
  label: GET /v1/sandboxes/{id}/files/list
  badge: GET
title: GET /v1/sandboxes/{id}/files/list
type: openapi-operation
---
`GET /v1/sandboxes/{id}/files/list`

**Responses**

- `200` — Immediate children of a directory; a file path is 422 invalid\_argument
- `400` — Typed error; Retry-After is present when retryable
- `401` — Typed error; Retry-After is present when retryable
- `403` — Typed error; Retry-After is present when retryable
- `404` — Unknown resource
- `410` — Sandbox existed and is gone; details contains its reason
- `422` — Typed error; Retry-After is present when retryable
- `429` — Typed error; Retry-After is present when retryable
- `500` — Typed error; Retry-After is present when retryable
- `503` — Typed error; Retry-After is present when retryable

Response example, 200:

```json
{
  "entries": [
    {
      "kind": "file",
      "mode": 0,
      "modified_at": "2019-08-24T14:15:22Z",
      "path": "string",
      "size_bytes": 0
    }
  ],
  "path": "string"
}
```
