---
title: "List files in workspace"
method: GET
path: "/workspaces/{workspace_id}/files"
tags: ["files"]
---

# List files in workspace

`GET /workspaces/{workspace_id}/files`

Returns a paginated list of files with optional filters

## Path parameters

- `workspace_id` string, required

## Query parameters

- `status` string
- `limit` integer
- `offset` integer

## Response `200`

List of files

- GithubComActiveloopaiDeeplakeApiInternalFilesListFilesResponse
  - `data` GithubComActiveloopaiDeeplakeApiInternalFilesFile[]
    - `bytes` integer
    - `created_at` integer — Unix timestamp
    - `expires_at` integer — Nullable Unix timestamp
    - `filename` string
    - `id` string
    - `metadata` object — Always include, empty map if none
    - `mime_type` string
    - `object` string — Always "file"
    - `org_id` string
    - `purpose` 'batch' | 'batch_output' | 'vision' | 'user_data' | 'evals'
    - `status` string
    - `status_details` string — Always include, null if empty
    - `user_id` string
    - `workspace_id` string
  - `object` string — Always "list"
  - `total` integer

## Other responses

- `400` — Invalid workspace ID or query parameters
- `401` — Unauthorized - missing or invalid authentication
- `403` — Access denied - user does not have access to this workspace
- `500` — Internal server error

---

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