LaraCopilot
LaraCopilot
API ReferenceEndpointsGitHub

Get GitHub connection

Returns the GitHub connection details for a specific external user.

GET
/github/connections/{externalUserId}
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
}