Skip to main content
POST
/
api
/
v2
/
agents
/
{agent_id}
/
batch-remember
curl -X POST "http://localhost:8000/api/v2/agents/my-agent/batch-remember" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token" \
  -H "Content-Type: application/json" \
  -d '{"memories":[{"content":"Alice","type":"fact"},{"content":"Prefers email","type":"preference"}]}'
{
  "memory_ids": ["mem_1", "mem_2"],
  "agent_id": "my-agent",
  "status": "queued"
}

Overview

Store multiple memory entries in one request.

Authentication

  • Authorization: Bearer your_api_key
  • X-Session-Token: {session_token}

Path Parameters

agent_id
string
required
Agent identifier.

Body Parameters

memories
array
required
Array of memory objects.
curl -X POST "http://localhost:8000/api/v2/agents/my-agent/batch-remember" \
  -H "Authorization: Bearer your_api_key" \
  -H "X-Session-Token: your_session_token" \
  -H "Content-Type: application/json" \
  -d '{"memories":[{"content":"Alice","type":"fact"},{"content":"Prefers email","type":"preference"}]}'
{
  "memory_ids": ["mem_1", "mem_2"],
  "agent_id": "my-agent",
  "status": "queued"
}

Response Fields

memory_ids
array
Created memory IDs.
agent_id
string
Agent ID.
status
string
Ingestion status.