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 \
'https://memory.papr.ai/v1/user?email=string&external_id=string&page=1&page_size=10' \
-H 'X-API-Key: string'
{ "code": 200, "data": [ { … } ], "page": 1, "page_size": 10, "status": "success", "total": 1 }
curl -i -X GET \
'https://memory.papr.ai/v1/user/{user_id}' \
-H 'X-API-Key: string'
{ "code": 200, "created_at": "2024-03-20T10:00:00.000Z", "email": "user@example.com", "external_id": "user123", "metadata": { "name": "John Doe", "preferences": { … } }, "status": "success", "updated_at": "2024-03-20T10:00:00.000Z", "user_id": "abc123" }
curl -i -X PUT \
'https://memory.papr.ai/v1/user/{user_id}' \
-H 'Content-Type: application/json' \
-H 'X-API-Key: string' \
-d '{
"email": "updated.user@example.com",
"external_id": "updated_user_123",
"metadata": {
"name": "Updated User",
"preferences": {
"theme": "light"
}
},
"type": "developerUser"
}'
{ "code": 200, "created_at": "2024-03-20T10:00:00.000Z", "email": "user@example.com", "external_id": "user123", "metadata": { "name": "John Doe", "preferences": { … } }, "status": "success", "updated_at": "2024-03-20T10:00:00.000Z", "user_id": "abc123" }