Moonborn — API · chat
Inspect distilled memory chunks for a session
GET/v1/chat/sessions/{id}/memoryscope · Bearer (API key or session JWT)
Path parameters
| Field | Type | Description |
|---|---|---|
| idreq | string | Chat session id (e.g. `chs_*`). |
Query parameters
| Field | Type | Description |
|---|---|---|
| cursor | string | Opaque pagination cursor; omit for the first page. |
| limit | number | Page size (1-100; default 20). |
Responses
200OK
Body
| Field | Type | Description |
|---|---|---|
| itemsreq | object[] | |
| nextCursorreq | string |
401Unauthenticated
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
404Session not found
Body
| Field | Type | Description |
|---|---|---|
| errorreq | object | |
| error.codereq | string | |
| error.messagereq | string |
Examples
cURL
curl -X GET https://api.moonborn.co/v1/chat/sessions/<id>/memory \ -H "Authorization: Bearer $MOONBORN_API_KEY"
TypeScript
import Moonborn from '@moonborn/sdk';
const client = new Moonborn({ apiKey: process.env.MOONBORN_API_KEY });
const result = await client.chat.inspectChatMemory({
id: '<id>',
});Python
import os
from moonborn import Moonborn
client = Moonborn(api_key=os.environ["MOONBORN_API_KEY"])
result = client.chat.inspect_chat_memory(
id="<id>",
)