curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/conversations/conv_7d2e3f4a5b6c7d8e/messages?page_size=50' \ -H 'Authorization: Bearer sk_xxxxxx'
curl -X GET 'https://app.memorylake.ai/openapi/memorylake/api/v3/conversations/conv_7d2e3f4a5b6c7d8e/messages?after_message_id=msg_1a2b3c4d5e6f7a8b' \ -H 'Authorization: Bearer sk_xxxxxx'
{ "success": true, "data": { "items": [ { "id": "msg_1a2b3c4d5e6f7a8b", "content": [ { "block_type": "TEXT", "text": "Hi, I'd like to learn more about your enterprise plan." } ], "metadata": {}, "timestamp": "2025-06-01T14:05:00Z", "conversation_id": "conv_7d2e3f4a5b6c7d8e", "sequence_no": 1, "actor_id": "actor_user_jane", "created_at": "2025-06-01T14:05:12Z" }, { "id": "msg_9e4b2c3d5f6a7b8c", "content": [ { "block_type": "TEXT", "text": "Of course! Our enterprise plan includes dedicated support, custom integrations, and advanced analytics. Would you like me to walk you through the details?" } ], "metadata": {}, "timestamp": "2025-06-01T14:05:30Z", "conversation_id": "conv_7d2e3f4a5b6c7d8e", "sequence_no": 2, "actor_id": "actor_assistant_v2", "created_at": "2025-06-01T14:05:35Z" } ], "continuation_token": null }}
Conversations
List Messages
Returns a paginated list of messages in a conversation
GET /openapi/memorylake/api/v3/conversations/{conversationId}/messages
Returns a paginated list of messages within a conversation, ordered by sequence number. You can use after_message_id to fetch only messages added after a known point, which is useful for syncing new messages incrementally.