---
title: "Get Sources Metadata"
method: GET
path: "/v1/sources/metadata"
tags: ["sources"]
deprecated: true
---

# Get Sources Metadata

`GET /v1/sources/metadata`

> **Deprecated.**

Get aggregated metadata for all sources in an organization.

Returns structured metadata including:
- Total number of sources
- Total number of files across all sources
- Total size of all files
- Per-source breakdown with file details (file_name, file_size per file) if include_detailed_per_source_metadata is True

## Query parameters

- `include_detailed_per_source_metadata` boolean

## Response `200`

Successful Response

- OrganizationSourcesStats — Complete metadata response for organization sources
  - `total_sources` integer — Total number of sources
  - `total_files` integer — Total number of files across all sources
  - `total_size` integer — Total size of all files in bytes
  - `sources` SourceStats[] — List of source metadata
    - `source_id` string, required — Unique identifier of the source
    - `source_name` string, required — Name of the source
    - `file_count` integer — Number of files in the source
    - `total_size` integer — Total size of all files in bytes
    - `files` FileStats[] — List of file statistics
      - `file_id` string, required — Unique identifier of the file
      - `file_name` string, required — Name of the file
      - `file_size` integer, nullable — Size of the file in bytes

## 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)
