Scan backend and Lovable repos
const url = 'https://example.com/api/scan';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"repoFullName":"example","backendRepoId":1,"branch":"example","appSubDir":"example","projectId":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0","lovableRepo":"example","lovableRepoId":1,"lovableBranch":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/scan \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "repoFullName": "example", "backendRepoId": 1, "branch": "example", "appSubDir": "example", "projectId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "lovableRepo": "example", "lovableRepoId": 1, "lovableBranch": "example" }'Two-repo scanning: backend (OpenAPI-first) plus optional Lovable output
(design tokens, mismatches). Stores context on the project if projectId is provided.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Backend repo (owner/repo)
GitHub repo ID (alternative to repoFullName)
Lovable output repo (owner/repo)
Responses
Section titled “ Responses ”Scan results
object
BackendContext from scanning
object
FrontendScanContext including mismatches (if lovableRepo provided)
Invalid request
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
Not authenticated
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
True if re-linking GitHub may fix the issue
Forbidden
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)
Not found
object
Human-readable error message
Stable machine-readable error code for client branching
First validation message per field path
object
Structured validation issues (Zod)
object
Seconds until rate limit resets (429 responses)