---
title: "Get File Metadata"
method: GET
path: "/v1/sources/{source_id}/files/{file_id}"
tags: ["sources"]
deprecated: true
---

# Get File Metadata

`GET /v1/sources/{source_id}/files/{file_id}`

> **Deprecated.**

Retrieve metadata for a specific file by its ID.

## Path parameters

- `source_id` string, required
- `file_id` string, required

## Query parameters

- `include_content` boolean — Whether to include full file content

## Response `200`

Successful Response

- FileMetadata — Representation of a single FileMetadata
  - `source_id` string, required — The unique identifier of the source associated with the document.
  - `file_name` string, nullable — The name of the file.
  - `original_file_name` string, nullable — The original name of the file as uploaded.
  - `file_path` string, nullable — The path to the file.
  - `file_type` string, nullable — The type of the file (MIME type).
  - `file_size` integer, nullable — The size of the file in bytes.
  - `file_creation_date` string, nullable — The creation date of the file.
  - `file_last_modified_date` string, nullable — The last modified date of the file.
  - `processing_status` 'pending' | 'parsing' | 'embedding' | 'completed' | 'error'
  - `error_message` string, nullable — Optional error message if the file failed processing.
  - `total_chunks` integer, nullable — Total number of chunks for the file.
  - `chunks_embedded` integer, nullable — Number of chunks that have been embedded.
  - `content` string, nullable — Optional full-text content of the file; only populated on demand due to its size.
  - `id` string — The human-friendly ID of the File
  - `created_at` string, date-time, nullable — The creation date of the file.
  - `updated_at` string, date-time, nullable — The update date of the file.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/yu-code666/apis/letta-api.md) · [All operations](https://skmtc.dev/yu-code666/apis/letta-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/yu-code666/letta-api/revisions/6cec99480c13/schema)
