API ReferenceEndpointsGitHub
List GitHub repositories
Returns repositories accessible to the installed GitHub App for the given external user. Use this after installation so the agency can let the external user pick a repo before linking or pushing.
Authorization
http AuthorizationBearer <token>
In: header
Path Parameters
externalUserId*string
Query Parameters
page?|
Range
1 <= valueper_page?|
Range
1 <= value <= 100Response Body
application/json
application/json
application/json
curl -X GET "https://builder.laracopilot.com/api/v1/github/connections/string/repositories"{
"success": true,
"message": "GitHub repositories fetched successfully.",
"data": {
"items": [
{
"id": "string",
"name": "string",
"full_name": "string",
"private": "string",
"default_branch": "string",
"html_url": "string",
"clone_url": "string",
"permissions": "string"
}
],
"meta": {
"total_count": null,
"page": 0,
"per_page": 0
}
},
"errors": null
}{
"success": true,
"message": "GitHub connection not found for the provided external user.",
"data": null,
"errors": null
}{
"message": "string",
"errors": {
"property1": [
"string"
],
"property2": [
"string"
]
}
}