API for managing personal memory items with authentication and user-specific data.
API for managing personal memory items with authentication and user-specific data.
This API supports three authentication methods:
X-API-Key headerX-API-Key: <your-api-key>X-Session-Token headerX-Session-Token: <your-session-token>Authorization headerAuthorization: Bearer <token>All endpoints require one of these authentication methods.
Update an existing schema.
Allows modification of schema properties, node types, relationship types, and status. User must have write access to the schema. Updates create a new version while preserving the existing data.
Status Management:
status to "active" to activate the schema and trigger Neo4j index creationstatus to "draft" to deactivate the schemastatus to "archived" to soft-delete the schemacurl -i -X PUT \
'http://memory.papr.ai/v1/schemas/{schema_id}' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{}'{ "success": true, "data": { "id": "string", "name": "string", "description": "string", "version": "1.0.0", "user_id": "string", "workspace_id": "string", "organization": "string", "namespace": "string", "node_types": { … }, "relationship_types": { … }, "status": "draft", "scope": "personal", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "read_access": [ … ], "write_access": [ … ], "usage_count": 0, "last_used_at": "2019-08-24T14:15:22Z" }, "error": "string", "code": 200 }
curl -i -X DELETE \
'http://memory.papr.ai/v1/schemas/{schema_id}' \
-H 'X-API-Key: YOUR_API_KEY_HERE'Store a chat message and queue it for AI analysis and memory creation.
Authentication Required: Bearer token, API key, or session token
Processing Control:
process_messages: true (default) to enable full AI analysis and memory creationprocess_messages: false to store messages only without processing into memoriesProcessing Flow (when process_messages=true):
Role-Based Categories:
Session Management:
sessionId is required to group related messagessessionId for an entire conversationThe content of the chat message - can be a simple string or structured content objects
The content of the chat message - can be a simple string or structured content objects
The content of the chat message - can be a simple string or structured content objects
Optional metadata for the message
Optional metadata for the message
Whether to process messages into memories (true) or just store them (false). Default is true.
Optional organization ID for multi-tenant message scoping
Optional organization ID for multi-tenant message scoping
Optional organization ID for multi-tenant message scoping
curl -i -X POST \
http://memory.papr.ai/v1/messages \
-H 'Content-Type: application/json' \
-H 'X-API-Key: YOUR_API_KEY_HERE' \
-d '{
"content": "Can you help me plan the Q4 product roadmap?",
"metadata": {
"location": "Office",
"topics": [
"product",
"planning",
"roadmap"
]
},
"process_messages": true,
"role": "user",
"sessionId": "session_123"
}'Message stored and queued for processing
Content of the message - can be a simple string or structured content objects
Content of the message - can be a simple string or structured content objects
Content of the message - can be a simple string or structured content objects
When the message was created
{ "content": "Can you help me plan the Q4 product roadmap?", "createdAt": "2024-01-15T10:30:00Z", "objectId": "msg_abc123", "processing_status": "queued", "role": "user", "sessionId": "session_123" }