Returns a paginated list of git connections that a specific organization has access to within your enterprise.
Path Parameters
The unique identifier of the organization to get connections for
Query Parameters
Number of connections to skip for pagination. Must be >= 0.
Maximum number of connections to return. Must be between 1 and 1000.
Response
Array of git connection objects for the organizationShow Git Connection Object
Unique identifier for the connection
Type of git connection (e.g., “github”, “gitlab”, “azure_devops”)
Display name for the connection (null if not set)
ISO 8601 timestamp when the connection was created
Git host (e.g., “github.com”, “gitlab.com”)
Total number of connections for the organization
Number of connections skipped
Maximum number of connections returned
Whether there are more connections available
Cursor for the next page of results
curl -X GET "https://api.devin.ai/v2/enterprise/organizations/org_123/git/connections" \
-H "Authorization: Bearer YOUR_API_KEY"
{
"items": [
{
"id": "conn_123",
"type": "github",
"name": "GitHub Enterprise",
"created_at": "2024-01-15T10:30:00Z",
"host": "github.com"
},
{
"id": "conn_456",
"type": "gitlab",
"name": "GitLab Instance",
"created_at": "2024-01-20T14:45:00Z",
"host": "gitlab.example.com"
}
],
"total": 2,
"skip": 0,
"limit": 100,
"has_more": false,
"next_cursor": null
}