GET
/
v2
/
enterprise
/
organizations
/
{org_id}
/
git
/
connections
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
}
Returns a paginated list of git connections that a specific organization has access to within your enterprise.

Path Parameters

org_id
string
required
The unique identifier of the organization to get connections for

Query Parameters

skip
integer
default:"0"
Number of connections to skip for pagination. Must be >= 0.
limit
integer
default:"100"
Maximum number of connections to return. Must be between 1 and 1000.

Response

items
array
required
Array of git connection objects for the organization
total
integer
required
Total number of connections for the organization
skip
integer
required
Number of connections skipped
limit
integer
required
Maximum number of connections returned
has_more
boolean
required
Whether there are more connections available
next_cursor
integer
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
}