# garden.engram.getMemory

> Published by [hailey.at](https://lexicon.garden/identity/did:plc:oisofpd7lj26yvgiivf3lxsi)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.getMemory)
- [Documentation](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.getMemory/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:oisofpd7lj26yvgiivf3lxsi/garden.engram.getMemory/examples)

## Definitions

### `garden.engram.getMemory`

**Type**: `query`

Fetch one indexed memory by URI. Same authentication as garden.engram.searchMemories.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `space` | `string` | Yes | The space URI. |
| `uri` | `string` | Yes | The memory's space record URI. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `memory` | `ref` → `garden.engram.defs#memoryView` | Yes |  |

#### Errors

- **UnknownSpace**: This service does not index the space.
- **MemoryNotFound**

## Raw Schema

```json
{
  "$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
}
```
