Skip to main content
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 the x-api-key header.

Project Status

Projects can have different statuses:

Error Responses

The endpoint requires a valid API key for authentication.
Causes:
  • Missing x-api-key header
  • Invalid or expired API key
  • API key doesn’t match any user account
Solution: Include a valid API key in the request header:
The endpoint returns this error when unexpected exceptions occur.
Causes:
  • Database connection failures
  • Service unavailability
Solution: Retry the request after a brief delay. If the issue persists, contact support.

Complete Workflow

Building a Project Dashboard

Filtering and Sorting

Common Patterns

Project Selector Component

Project Validation

Troubleshooting

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

x-api-key
string
header
required

API key authentication. Get your key from potpie settings page

Response

Projects retrieved successfully

id
string

Project identifier

repo_name
string

Repository name

status
enum<string>

Project status

Available options:
submitted,
cloned,
parsed,
processing,
inferring,
ready,
error