Skip to main content
GET
Get Project Map

Overview

Get a structured map of the project’s codebase, including directory organization, module descriptions, and architectural overview. This endpoint is optimized for onboarding new developers and providing context to AI code reviewers.

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”)

Response

array
Array of project map memory objects describing codebase structure
string
Unique memory ID
string
Description of a specific part of the codebase (directory, module, or file)
object
Metadata about the memory
string
Always β€œproject_map” for this endpoint
string
File or directory path being described
string
Type of component: β€œdirectory”, β€œmodule”, β€œservice”, β€œapi”, β€œmodel”, etc.
integer
Total number of project map entries

Example Request

Example Response

Use Cases

Generate Documentation

Developer Onboarding

AI Code Review Context

Search Project Structure

Generate Codebase Graph

Triggering Project Map Generation

The project map is automatically generated when you connect a repository. To update it:

Error Responses

Repository Not Connected

HTTP Status: 403 Forbidden

Notes

  • The project map is built by analyzing repository structure, README files, and code patterns
  • It’s automatically updated when significant changes are detected through PR reviews
  • Use the /memory/rescan endpoint to manually trigger a full project scan
  • Empty repositories or those without PR activity may have limited project map data