Skip to main content
POST
/
memories
JavaScript
import Reminix from '@reminix/sdk';

const client = new Reminix({
  apiKey: process.env['REMINIX_API_KEY'], // This is the default and can be omitted
});

const memory = await client.memories.store({
  identity: { user_id: 'user_123' },
  key: 'preferred_language',
  value: 'en',
});

console.log(memory.id);
{
  "id": "<string>",
  "projectId": "<string>",
  "identity": {},
  "key": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "expiresAt": "<string>",
  "value": "<unknown>"
}

Authorizations

Authorization
string
header
required

API Key or Personal Access Token (PAT). When using PAT, include X-Project header.

Body

application/json
identity
object
required

Identity to scope the memory to

key
string
required

Memory key

Required string length: 1 - 255
value
any | null

Value to store

expiresAt
string<date-time>

Optional expiration time (ISO 8601)

Response

Memory stored successfully

id
string
required

Unique memory ID

projectId
string
required

Project ID

identity
object
required

Identity fields for memory scoping (e.g., user_id, tenant_id)

key
string
required

Memory key

createdAt
string
required

When the memory was created

updatedAt
string
required

When the memory was last updated

expiresAt
string | null
required

When the memory expires

value
any | null

Memory value