NavigationTap to open
Documentation/First Memory Store

First Memory Store

Store your first memory, then retrieve and optionally share it with your team.

Hands-onBeginner

1. Create a Memory

Create

Use a simple JSON payload with text content and optional metadata.

curl

curl -X POST "https://api.infaza.dev/v1/memories"   -H "Authorization: Bearer $infaza_API_KEY"   -H "Content-Type: application/json"   -d '{
    "content": {"text": "My first memory"},
    "agent_id": "agent-123",
    "metadata": {"tags": ["quickstart"]}
  }'

Node.js

import { infaza } from '@infaza/sdk'

const client = new infaza({ apiKey: process.env.infaza_API_KEY })
const memory = await client.memories.create({
  content: { text: 'My first memory' },
  agentId: 'agent-123',
  metadata: { tags: ['quickstart'] }
})

2. Retrieve Your Memory

Retrieve

Use the returned memory_id to fetch the item.

curl -X GET "https://api.infaza.dev/v1/memories/mem_abc123"   -H "Authorization: Bearer $infaza_API_KEY"

3. Share with a Team (Optional)

Share

Grant team access to collaborate on the memory.

curl -X POST "https://api.infaza.dev/v1/memories/mem_abc123/share"   -H "Authorization: Bearer $infaza_API_KEY"   -H "Content-Type: application/json"   -d '{"team_id": "team-001", "access_level": "team"}'