跳转到主要内容
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
}
返回企业中某个特定组织可访问的 Git 连接分页列表。

路径参数

org_id
string
required
要获取其连接信息的组织的唯一标识符

查询参数

skip
integer
default:"0"
用于分页时要跳过的连接数。必须大于等于 0。
limit
integer
default:"100"
要返回的最大连接数。必须在 1 到 200 之间。

响应

items
array
required
组织的 Git 连接对象数组
total
integer
required
组织的连接总数
skip
integer
required
跳过的连接数量
limit
integer
required
返回的最大连接数量
has_more
boolean
required
是否还有更多连接可用
next_cursor
integer
下一页结果的游标
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
}