Sessions & Agents
Memory Operations

Store a memory (Session-based)

Requires:

  • X-Session-Token: {session_token}

The session must be for the specified agent_id.

Provenance types:

  • explicit_statement: Directly stated by user
  • inferred: Derived from behavior/context
  • observed: Seen in action
  • validated: Confirmed/verified
  • corrected: Updated after contradiction
  • imported: From external source
post/api/v2/agents/{agent_id}/remember

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

agent_idstring required

Headers

x-session-tokenstring nullable
authorizationstring nullable
X-Api-Keystring nullable

Cookies

memanto_session_tokenstring nullable

Request body

contentstring required

Memory content

type'fact' | 'preference' | 'goal' | 'decision' | 'artifact' | 'learning' | 'event' | 'instruction' | 'relationship' | 'context' | 'observation' | 'commitment' | 'error' nullable

Memory type. Omit to auto-parse.

titlestring nullable

Memory title (defaults to truncated content)

confidencenumber

Confidence score (0-1)

tagsstring[] nullable

Tags for this memory

status'active' | 'expired' nullable

Memory lifecycle status (e.g. active, expired)

expired_atstring date-time nullable

When this memory was expired

expired_bystring nullable

What/who expired this memory

sourcestring

Who wrote this memory — 'user', 'agent', or a specific writer such as 'cursor', 'codex', or 'claude_code'.

provenancestring

How memory was obtained (explicit_statement, inferred, observed, etc.)

Response

Successful Response

memory_idstring required
agent_idstring required
session_idstring required
namespacestring required
statusstring required
provenancestring required
confidencenumber required
typestring nullable

Changes

    • info

      added the new optional request property expired_at

    • info

      added the new optional request property expired_by

    • info

      added the new optional request property status