API ReferenceEndpointsGitHub
Get GitHub connection
Returns the GitHub connection details for a specific external user.
Authorization
http AuthorizationBearer <token>
In: header
Path Parameters
externalUserId*string
Response Body
application/json
application/json
curl -X GET "https://builder.laracopilot.com/api/v1/github/connections/string"{
"success": true,
"message": "GitHub connection fetched successfully.",
"data": {
"id": 0,
"external_user_id": "string",
"external_user_name": "string",
"external_user_email": "string",
"github_user_id": "string",
"github_login": "string",
"provider": "string",
"installation_id": "string",
"target_type": null,
"user_authorized": true,
"expires_at": "string",
"connected_at": "string",
"updated_at": "string"
},
"errors": null
}{
"success": true,
"message": "GitHub connection not found for the provided external user.",
"data": null,
"errors": null
}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.
Link GitHub repository
Links an existing GitHub repository to a generated project. Use this after the agency end user has connected GitHub and chosen a repo.