Skip to content

List user's projects

GET
/projects
curl --request GET \
--url https://example.com/api/projects \
--header 'Authorization: Bearer <token>'

Returns all projects for the authenticated user with run statistics and staleness info.

Project list

Media type application/json
object
projects
required
Array<object>
object
id
required
string format: uuid
name
required
string
status
required
string
frontendRepo
required

Primary Lovable/frontend repo (owner/repo)

string
sourceRepo
required

Legacy alias of frontendRepo

string
targetRepo
string | null
backendRepo
string | null
repos
Array
object
repoSlug
required

GitHub repo in owner/repo format.

string
Example
TeamK2K/app-apphandoff
role
required
string
Allowed values: backend frontend shared monorepo
branch

Optional branch override. Empty means default branch.

string
appSubDir

Optional relative scan root inside the repo, such as apps/backend or apps/frontend.

string | null
id
string format: uuid
repoId
integer | null
ordinal
integer
commitSha
string | null
outputDestination
string | null
createdAt
required
string format: date-time
updatedAt
required
string format: date-time
lastScanAt
string | null format: date-time
last_scan_at

Snake_case alias of lastScanAt

string | null format: date-time
lastActivityAt

Most recent agent (bot) or human (user) activity_events row for the project; null when no activity recorded. Drives the “Latest activity” sort on the projects list.

string | null format: date-time
runCount
required

Null when run stats could not be loaded (distinct from zero runs)

integer | null
successCount
required

Null when run stats could not be loaded

integer | null
latestRunStatus
string | null
latestRunDate
string | null format: date-time
confidenceScore
number | null
routeCount
integer | null
ssrBlockerCount
integer | null
sourceAhead
required

Always false on GET /projects list; use GET /projects/{id}/sync-check for live GitHub ahead/behind

boolean

Not authenticated

Media type application/json
object
error
required

Human-readable error message

string
code

Stable machine-readable error code for client branching

string
fieldErrors

First validation message per field path

object
key
additional properties
string
issues

Structured validation issues (Zod)

Array<object>
object
path
required
string
message
required
string
retryAfter

Seconds until rate limit resets (429 responses)

number
reconnect

True if re-linking GitHub may fix the issue

boolean