Skip to main content
GET
List Memories

Overview

List all Mem0 AI memories for a specific repository. Memories capture project context, developer patterns, coding standards, and architectural decisions learned from analyzing PRs.

Authentication

Requires a valid JWT token in the Authorization header:

Query Parameters

string
required
Repository to query in owner/repo format (e.g., “acme/api-server”)
string
Filter by memory type. Valid values:
  • project_rule: Project-specific guidelines and standards
  • contributor_profile: Developer contribution summaries
  • developer_pattern: Individual coding patterns and habits
  • developer_strength: Technical areas of expertise
  • architecture: System architecture and design decisions
  • project_map: Codebase structure and module descriptions

Response

array
Array of memory objects
string
Unique memory ID
string
Memory content (text description)
object
Additional metadata about the memory
string
Type of memory (project_rule, contributor_profile, etc.)
string
Associated GitHub username (for developer-specific memories)
integer
PR number where this memory was learned
integer
Number of PRs analyzed (for contributor profiles)
integer
Total commits (for contributor profiles)
integer
Total number of memories returned

Example Request

Example Response

Memory Types

project_rule

Project-specific coding standards, architectural guidelines, and best practices that all contributors should follow. Example:

contributor_profile

High-level summary of a developer’s contribution style and expertise, generated from analyzing their PR history. Example:

developer_pattern

Specific coding patterns, habits, and preferences identified for individual developers. Example:

developer_strength

Technical areas where a developer demonstrates expertise. Example:

architecture

High-level system architecture decisions and design patterns used in the codebase. Example:

project_map

Codebase structure, module descriptions, and file organization patterns. Example:

Error Responses

Repository Not Connected

HTTP Status: 403 Forbidden

Use Cases

Display Project Rules

Developer Onboarding

Context for AI Code Review

Team Knowledge Base