Brain Docs

Reference

TypeScript SDKInstallationHTTP clientWire client
createSpacelistSpacesdeleteSpacecreateSessionlistSessionsdeleteSession
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
TypeScript SDKSpaces and sessionslistSessions

listSessions

The sessions in the caller's space, with their titles and memory counts.

PURPOSE

The sessions in the caller's space. Bounded by limit; it does not page.

GET/v1/sessionsBearer API keystable
listSessions(query?: ListSessionsQuery): Promise<ListSessionsResult>
Handshake credentialstable
listSessions(request: SessionListRequest): Promise<SessionListResponse>

Parameters

ParameterTypeRequired
limitintegeroptional

Cap on returned sessions.

Returns

FieldTypePresence
spaceIdstringalways

The space listed.

sessionsSessionSummary[]always

Each with sessionId, both timestamps, an optional title, and memoryCount.

You do not choose your space on the HTTP tier

The space comes from the credential. These verbs act on the caller's space. Addressing another space per request is a wire-tier capability — see act_as. Per-end-user isolation is a storage-key prefix inside one space, not a key per user; see Namespaces.

See also
createSessionmemoryList

Was this page helpful?

createSession

Create a session inside the caller's space, with an id you choose.

deleteSession

Remove a session and its memories — tombstoned by default, zeroed with hard.

On this page

ParametersReturns
Suggest an editOpen in Playground