List Projects
Potpie API
List Projects
Get a list of all projects using API key authentication
GET
List Projects
Use Cases
- Display available projects in your application
- Verify a project exists before creating conversations
- Check project parsing status and metadata
- Build project selection interfaces
- Monitor project creation and management
Authentication
This endpoint requires API key authentication via thex-api-key header.
Request & Response
Request & Response
| Location | Field | Type | Required | Description |
|---|---|---|---|---|
| Response | id | string | - | Unique project identifier (UUID) - use this for conversations and searches |
| Response | repo_name | string | - | Repository name (e.g., “facebook/react”) |
| Response | status | string | - | Current project status (see Project Status table below) |
Project Status
Projects can have different statuses:| Status | Description | Actions Available |
|---|---|---|
submitted | Parsing queued but not started | Wait for processing |
cloned | Repository cloned successfully | Wait for processing |
parsed | Code structure analyzed | Wait for processing |
processing | Building knowledge graph | Wait for completion |
inferring | Generating knowledge graph inferences | Wait for completion |
ready | Ready for use | All operations available |
error | Parsing failed | Review errors, retry parsing |
Error Responses
401 Unauthorized
401 Unauthorized
500 Internal Server Error
500 Internal Server Error
The endpoint returns this error when unexpected exceptions occur.Causes:
- Database connection failures
- Service unavailability
Complete Workflow
Building a Project Dashboard
Filtering and Sorting
Common Patterns
Project Selector Component
Project Validation
Troubleshooting
Empty project list
Empty project list
Problem: API returns an empty array
[].Solution:- This is normal if you haven’t created any projects yet
- Use the Parse Directory endpoint to create your first project
- Verify you’re using the correct API key for your account
- Check that projects weren’t accidentally deleted
Projects missing from list
Projects missing from list
Problem: Some projects don’t appear in the response.Solution:
- Projects are user-specific - ensure you’re using the correct API key
- Check if projects were deleted or archived
- Verify the projects completed parsing successfully
- Contact support if projects are definitely missing
Status shows 'error'
Status shows 'error'
Problem: Project status indicates parsing failure.Solution:
- Use the Get Parsing Status endpoint to get detailed error information
- Check if the repository is accessible
- Verify the branch exists
- Try re-parsing the repository with the Parse Directory endpoint
Authorizations
API key authentication. Get your key from potpie settings page

