Skip to main content
Retrieve the full content and metadata of a specific memory document.

Endpoint

GET /api/memory/get?memory_id=<id>
Authentication: Required (Bearer token)

Query parameters

memory_id
string
required
The unique identifier of the memory document to retrieve

Response

success
boolean
Whether the operation succeeded
document
object
The memory document

Example

curl -X GET "https://your-cems-server.com/api/memory/get?memory_id=550e8400-e29b-41d4-a716-446655440000" \
  -H "Authorization: Bearer $CEMS_API_KEY"
Response:
{
  "success": true,
  "document": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "content": "I prefer using TypeScript for all new backend services",
    "category": "preferences",
    "scope": "personal",
    "source_ref": null,
    "tags": ["typescript", "backend"],
    "created_at": "2024-02-28T10:30:00Z",
    "updated_at": "2024-02-28T10:30:00Z",
    "is_pinned": false,
    "priority": 1.0
  }
}

Use cases

  • Retrieve full memory details for editing
  • Verify memory content after creation
  • Export individual memories
  • Debug search results

Error responses

error
string
Error message if the request fails
Status codes:
  • 400 - Bad request (missing memory_id)
  • 401 - Unauthorized (invalid or missing API key)
  • 404 - Memory not found or access denied
  • 500 - Internal server error

Build docs developers (and LLMs) love