def list_chat_conversations(limit: int = 100) -> List[Dict[str, Any]]

Parameters

  • limit (int, optional): Maximum number of conversations to return. Valid range is 1-500. Default is 100.

Returns

  • List[Dict[str, Any]]: Each dictionary contains:
    • chat_id – conversation identifier
    • updated_at – last activity timestamp
    • message_preview – snippet of the last user/assistant message

Example

db = Morphik()
convos = db.list_chat_conversations(limit=20)
for convo in convos:
    print(convo["chat_id"], convo["updated_at"])