memory

Store one memory

post/v1/remember

Request

  • Base URL: https://api.contextdb.ai
  • URL: https://api.contextdb.ai/v1/remember
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Project-scoped retry key (8-128 URL-safe characters). The same key and canonical payload replay the encrypted stored response. Reusing a key with a different route or payload returns 409. On extract_memories this applies only when mode is commit.

Request body

user_idstring required

End-user memory partition key. Not an identity assertion.

contentstring required
source'user_stated' | 'agent_inferred' | 'third_party' required

Who vouches for the claim. Required on writes.

confidencenumber
action_relevantboolean
entitystring
attributestring
event_timestring date-time

Response

The stored memory

memory_versioninteger required

Monotonic consistency version within one organization/project.

primary_wal_lsnstring nullable required

Primary PostgreSQL WAL position observed after commit.

Changes

No recorded changes to this operation across all 1 revision of this API.