Most users don’t need to call the API directly. The OpenClaw plugin handles memory operations automatically via Auto-Recall, Auto-Capture, and built-in tools.
Store Memory
Store a new memory for your project.
Endpoint: POST /memory/store
The content of the memory
Memory type: episodic, semantic, procedural, or working
Optional tags for organization
Request
curl -X POST https://app.orcamemory.com/api/v1/memory/store \
-H "X-Key-Id: omk_your_key_id" \
-H "X-Api-Key: oms_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"content": "User prefers TypeScript with strict mode enabled",
"memoryType": "procedural",
"tags": ["preferences", "typescript"]
}'
Response
{
"success": true,
"data": {
"id": "jh77abc123xyz",
"content": "User prefers TypeScript with strict mode enabled",
"memoryType": "procedural",
"tags": ["preferences", "typescript"],
"createdAt": 1705312200000
}
}
Search Memories
Search memories using semantic similarity.
Endpoint: POST /memory/search
Natural language search query
Number of results (max 20)
Request
curl -X POST https://app.orcamemory.com/api/v1/memory/search \
-H "X-Key-Id: omk_your_key_id" \
-H "X-Api-Key: oms_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"query": "What are the coding preferences?",
"limit": 5
}'
Response
{
"success": true,
"data": {
"results": [
{
"id": "jh77abc123xyz",
"content": "User prefers TypeScript with strict mode",
"memoryType": "procedural",
"score": 0.92,
"tags": ["preferences"]
}
]
}
}
Get Recent Memories
Retrieve the most recent memories.
Endpoint: POST /memory/recent
Request
curl -X POST https://app.orcamemory.com/api/v1/memory/recent \
-H "X-Key-Id: omk_your_key_id" \
-H "X-Api-Key: oms_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"limit": 10
}'
Response
{
"success": true,
"data": {
"memories": [
{
"id": "jh77abc123xyz",
"content": "User prefers TypeScript with strict mode",
"memoryType": "procedural",
"tags": ["preferences"],
"createdAt": 1705312200000
}
]
}
}
Delete Memory
Delete a memory by ID.
Endpoint: DELETE /memory/:id
Request
curl -X DELETE https://app.orcamemory.com/api/v1/memory/jh77abc123xyz \
-H "X-Key-Id: omk_your_key_id" \
-H "X-Api-Key: oms_your_api_key"
Response
{
"success": true,
"data": {
"deleted": true
}
}