---
title: "List Environment Files"
method: GET
path: "/v1/environments/{environmentId}/files"
tags: ["Environments"]
---

# List Environment Files

`GET /v1/environments/{environmentId}/files`

Returns every file attached to the environment. Files are dropped into the workspace at the configured `path` when the workspace is provisioned.

## Path parameters

- `environmentId` string, required

## Response `200`

Successful response

- ListEnvironmentFilesResponse
  - `environment_files` EnvironmentFile[], required
    - `id` string, uuid, required
    - `organization_id` string, uuid, required
    - `environment_id` string, uuid, required
    - `name` string, required — Human-readable name
    - `path` string, required — Destination path inside the workspace (typically under `~/`)
    - `content` string, required — File contents (≤ 64 KB)
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `400` — Bad request - Missing or invalid parameters
- `401` — Unauthorized - Invalid or missing API key
- `500` — Internal server error

---

[API](https://skmtc.net/tryreplicas/apis/replica-api.md) · [All operations](https://skmtc.net/tryreplicas/apis/replica-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tryreplicas/replica-api/versions/aa3b4c932f7a/schema)
