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.
curl -i -X GET \
'http://memory.papr.ai/v1/schemas/{schema_id}' \
-H 'X-API-Key: YOUR_API_KEY_HERE'{ "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 }
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'