Look up target repo by source repo
GET
/projects/by-source
const url = 'https://example.com/api/projects/by-source?repo=acme%2Fmy-lovable-app';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/projects/by-source?repo=acme%2Fmy-lovable-app' \ --header 'Authorization: Bearer <token>'Returns the most recent target repo for a given source repo.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” repo
required
string
Source repo (owner/repo)
Example
acme/my-lovable-appResponses
Section titled “ Responses ”Target repo lookup result
Media type application/json
object
targetRepo
required
string | null
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