> For the complete documentation index, see [llms.txt](https://docs.aios.foundation/aios-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aios.foundation/aios-docs/aios-agent-sdk/memory-api/get_memory.md).

# get\_memory

**Function**: `get_memory()`\
**Purpose**: Fetch memory contents by ID\
**Parameters**:

* `agent_name`: Namespace identifier
* `memory_id`: Target memory ID
* `base_url`: API endpoint

**Example**:

```python
response = get_memory(
    agent_name="project_bot",
    memory_id="mem_abc123"
)
```

**Response**:

```json
{
    "success": true,
    "memory_id": "mem_abc123",
    "content": "Decided to accelerate...",
    "metadata": {
        "tags": ["project-planning", "urgent"],
        "context": "Q4 strategy meeting"
    },
    "error": null
}
```

<br>
