NylorunDocsBeta
Runtime APIAgentsMemory

Read a memory version

GET
/v1/agents/{agentId}/memory_versions/{versionId}

One version with the content it left (null for a delete). To roll a memory back, write this content again.

Authorization

headerAuthorizationBearer <token>

An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).

Path Parameters

agentId*string

The Agent id, percent-encoded

versionId*string

The version's id (mv_…)

Header Parameters

Nylorun-Protocol*string

The protocol version, 18

Nylorun-Subject?string

The person an application key acts for

Nylorun-Scopes?string

The subject's space-separated scopes; required with a subject

Response Body

The version

application/json
  1. response
id*string
path*string
fromPath*string|null
operation*string
Value in"create""str_replace""insert""delete""rename"
bytes*|
Range0 <= value
contentSha256*string|null
actor*string
sessionId*string|null
turnId*string|null
triggerRunId*string|null
createdAt*string
content*string|null
import { createClient } from "@nylorun/agents";const client = await createClient();const version = await client.agents.memories.version("users/alice/assistant", "mv_123");
{  "id": "string",  "path": "string",  "fromPath": "string",  "operation": "create",  "bytes": 0,  "contentSha256": "string",  "actor": "string",  "sessionId": "string",  "turnId": "string",  "triggerRunId": "string",  "createdAt": "string",  "content": "string"}