---
title: "Get Session Memory"
method: GET
path: "/ai/session-memory/{session_id}"
tags: ["agent"]
---

# Get Session Memory

`GET /ai/session-memory/{session_id}`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/ai/session-memory/{session_id}`
- Auth: none declared

Get Session Memory contents for debugging.

Returns the current SessionMemory state including:
- contact_bindings: Learned contact aliases (e.g., "жена" → thread_id)
- last_target_aliases: Recent target names
- artifacts: Found files/links during session
- focus: Current thread context
- current_thread: Active thread details

This is useful for debugging AI Agent context awareness.

SECURITY: Verifies user owns the session.

Args:
    session_id: Session ID to get memory for
    user: Current user (from JWT)

Returns:
    SessionMemory contents as JSON

## Path parameters

- `session_id` string, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
