> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memoclaw.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Memory

> GET /v1/memories/:id — Retrieve a single memory by ID.

<Snippet file="snippets/wallet-auth-callout.mdx" />

**Price:** FREE

## Path Parameters

<ParamField path="id" type="string" required>
  UUID of the memory to retrieve.
</ParamField>

## Response (200)

Returns the full memory object.

<ResponseField name="id" type="string">
  UUID of the memory.
</ResponseField>

<ResponseField name="user_id" type="string">
  UUID of the owning user.
</ResponseField>

<ResponseField name="namespace" type="string">
  Namespace of the memory.
</ResponseField>

<ResponseField name="content" type="string">
  The memory text.
</ResponseField>

<ResponseField name="metadata" type="object">
  Metadata attached to the memory.
</ResponseField>

<ResponseField name="importance" type="number">
  Importance value (0–1).
</ResponseField>

<ResponseField name="memory_type" type="string">
  Memory type: `correction`, `preference`, `decision`, `project`, `observation`, or `general`.
</ResponseField>

<ResponseField name="session_id" type="string | null">
  Session ID, if set.
</ResponseField>

<ResponseField name="agent_id" type="string | null">
  Agent ID, if set.
</ResponseField>

<ResponseField name="pinned" type="boolean">
  Whether the memory is pinned (exempt from decay).
</ResponseField>

<ResponseField name="expires_at" type="string | null">
  ISO 8601 expiry date, if set.
</ResponseField>

<ResponseField name="created_at" type="string">
  ISO 8601 creation timestamp.
</ResponseField>

<ResponseField name="updated_at" type="string">
  ISO 8601 last update timestamp.
</ResponseField>

<ResponseField name="accessed_at" type="string">
  ISO 8601 last access timestamp.
</ResponseField>

<ResponseField name="access_count" type="number">
  Number of times this memory has been recalled.
</ResponseField>

## Errors

| Status | Description                                              |
| ------ | -------------------------------------------------------- |
| 404    | Memory not found, deleted, or belongs to another wallet. |
| 422    | Invalid UUID format.                                     |

## Example

<CodeGroup>
  ```bash curl theme={null}
  curl https://api.memoclaw.com/v1/memories/550e8400-e29b-41d4-a716-446655440000
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    "https://api.memoclaw.com/v1/memories/550e8400-e29b-41d4-a716-446655440000"
  );
  const data = await response.json();
  ```

  ```python Python theme={null}
  from memoclaw import MemoClaw

  client = MemoClaw()
  memory = client.get("550e8400-e29b-41d4-a716-446655440000")
  print(memory.content)
  ```

  ```typescript TypeScript theme={null}
  const memory = await client.get("550e8400-e29b-41d4-a716-446655440000");
  console.log(memory.content);
  ```
</CodeGroup>

```json Response theme={null}
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "user_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
  "namespace": "default",
  "content": "User prefers dark mode and vim keybindings",
  "metadata": {
    "tags": ["preferences", "ui"]
  },
  "importance": 0.8,
  "memory_type": "preference",
  "session_id": null,
  "agent_id": null,
  "pinned": false,
  "expires_at": null,
  "created_at": "2025-01-15T10:30:00Z",
  "updated_at": "2025-01-15T10:30:00Z",
  "accessed_at": "2025-01-20T14:22:00Z",
  "access_count": 3
}
```
