Letta · Schema

FileSchema

File with human-readable ID for agent file

Artificial IntelligenceAgentsStateful AgentsMemoryMemGPTContinual LearningMCPMulti-AgentRAGOpen-Source

Properties

Name Type Description
source_id string Deprecated: Use `folder_id` field instead. The unique identifier of the source associated with the document.
file_name object The name of the file.
original_file_name object The original name of the file as uploaded.
file_path object The path to the file.
file_type object The type of the file (MIME type).
file_size object The size of the file in bytes.
file_creation_date object The creation date of the file.
file_last_modified_date object The last modified date of the file.
processing_status object The current processing status of the file (e.g. pending, parsing, embedding, completed, error).
error_message object Optional error message if the file failed processing.
total_chunks object Total number of chunks for the file.
chunks_embedded object Number of chunks that have been embedded.
content object Optional full-text content of the file; only populated on demand due to its size.
id string Human-readable identifier for this file in the file
View JSON Schema on GitHub

JSON Schema

letta-fileschema-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/FileSchema",
  "title": "FileSchema",
  "properties": {
    "source_id": {
      "type": "string",
      "title": "Source Id",
      "description": "Deprecated: Use `folder_id` field instead. The unique identifier of the source associated with the document.",
      "deprecated": true
    },
    "file_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Name",
      "description": "The name of the file."
    },
    "original_file_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Original File Name",
      "description": "The original name of the file as uploaded."
    },
    "file_path": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Path",
      "description": "The path to the file."
    },
    "file_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Type",
      "description": "The type of the file (MIME type)."
    },
    "file_size": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Size",
      "description": "The size of the file in bytes."
    },
    "file_creation_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Creation Date",
      "description": "The creation date of the file."
    },
    "file_last_modified_date": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "File Last Modified Date",
      "description": "The last modified date of the file."
    },
    "processing_status": {
      "$ref": "#/components/schemas/FileProcessingStatus",
      "description": "The current processing status of the file (e.g. pending, parsing, embedding, completed, error).",
      "default": "pending"
    },
    "error_message": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Error Message",
      "description": "Optional error message if the file failed processing."
    },
    "total_chunks": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Total Chunks",
      "description": "Total number of chunks for the file."
    },
    "chunks_embedded": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Chunks Embedded",
      "description": "Number of chunks that have been embedded."
    },
    "content": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Content",
      "description": "Optional full-text content of the file; only populated on demand due to its size."
    },
    "id": {
      "type": "string",
      "title": "Id",
      "description": "Human-readable identifier for this file in the file"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "source_id",
    "id"
  ],
  "description": "File with human-readable ID for agent file"
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/letta-fileschema"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.