API for managing memory, context, and retrieval for AI agents or apps with authentication and user-specific data.
API for managing memory, context, and retrieval for AI agents or apps with authentication and user-specific data.
X-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.
Retrieve message history for a specific conversation session.
Authentication Required: Bearer token, API key, or session token
Pagination:
limit and skip parameters for paginationtotal_count indicates total messages in the sessionAccess Control:
curl -i -X GET \
'http://memory.papr.ai/v1/messages/sessions/{session_id}?limit=50&skip=0' \
-H 'X-API-Key: YOUR_API_KEY_HERE'Message history retrieved
List of messages in chronological order
Parse Server objectId of the stored message
Role of the message sender
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
{ "messages": [ { … }, { … } ], "sessionId": "session_123", "total_count": 2 }
curl -i -X GET \
'http://memory.papr.ai/v1/messages/sessions/{session_id}/status' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Process all stored messages in a session that were previously stored with process_messages=false.
Authentication Required: Bearer token, API key, or session token
This endpoint allows you to retroactively process messages that were initially stored without processing. Useful for:
Processing Behavior:
curl -i -X POST \
'http://memory.papr.ai/v1/messages/sessions/{sessionId}/process' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'