---
title: "Get file metadata"
method: GET
path: "/workspaces/{workspace_id}/files/{file_id}"
tags: ["files"]
---

# Get file metadata

`GET /workspaces/{workspace_id}/files/{file_id}`

Returns metadata for a specific file

## Path parameters

- `workspace_id` string, required
- `file_id` string, required

## Response `200`

File metadata

- 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

## Other responses

- `400` — Invalid workspace ID or file ID
- `401` — Unauthorized - missing or invalid authentication
- `403` — Access denied - user does not have access to this workspace
- `404` — File not found
- `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)
