{
  "opencollection": "1.0.0",
  "info": {
    "name": "Letta Admin Memory Files API",
    "version": "1.0.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Memory Files",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Directory",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.letta.com/v1/agents/:agent_id/memory-files/directory",
            "params": [
              {
                "name": "agent_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "path",
                "value": "",
                "type": "query",
                "description": "Directory path to list. Empty for root."
              },
              {
                "name": "depth",
                "value": "",
                "type": "query",
                "description": "Depth of directory listing (default: 1)."
              },
              {
                "name": "ref",
                "value": "",
                "type": "query",
                "description": "Git ref (default: HEAD)."
              }
            ]
          },
          "docs": "List immediate children of a directory in the agent memory repo (single level)."
        },
        {
          "info": {
            "name": "Get File History",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.letta.com/v1/agents/:agent_id/memory-files/history",
            "params": [
              {
                "name": "agent_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "file_path",
                "value": "",
                "type": "query",
                "description": "Path to the file (e.g. \"blocks/persona.md\")."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Max commits to return (default: 50)."
              }
            ]
          },
          "docs": "Get commit history for a specific file in the agent memory repo."
        },
        {
          "info": {
            "name": "Read File Content",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.letta.com/v1/agents/:agent_id/memory-files/content",
            "params": [
              {
                "name": "agent_id",
                "value": "",
                "type": "path"
              },
              {
                "name": "file_path",
                "value": "",
                "type": "query",
                "description": "Path to the file (e.g. \"blocks/persona.md\")."
              },
              {
                "name": "ref",
                "value": "",
                "type": "query",
                "description": "Git ref (default: HEAD)."
              }
            ]
          },
          "docs": "Read a single file content at a specific git ref from the agent memory repo."
        }
      ]
    }
  ],
  "bundled": true
}