{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Fetch one indexed memory by URI. Same authentication as garden.engram.searchMemories.",
      "errors": [
        {
          "description": "This service does not index the space.",
          "name": "UnknownSpace"
        },
        {
          "name": "MemoryNotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "memory": {
              "ref": "garden.engram.defs#memoryView",
              "type": "ref"
            }
          },
          "required": [
            "memory"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "space": {
            "description": "The space URI.",
            "type": "string"
          },
          "uri": {
            "description": "The memory's space record URI.",
            "type": "string"
          }
        },
        "required": [
          "space",
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "garden.engram.getMemory",
  "lexicon": 1
}
