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"