跳转到主要内容
GET
/
v2
/
enterprise
/
organizations
curl -X GET "https://api.devin.ai/v2/enterprise/organizations" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "items": [
    {
      "org_admin_count": 3,
      "org_id": "org_123",
      "org_member_count": 25,
      "org_name": "Engineering Team",
      "org_user_count": 25,
      "max_cycle_acu_limit": 1000,
      "max_session_acu_limit": 50
    },
    {
      "org_admin_count": 2,
      "org_id": "org_456",
      "org_member_count": 12,
      "org_name": "Product Team",
      "org_user_count": 12,
      "max_cycle_acu_limit": null,
      "max_session_acu_limit": 25
    },
    {
      "org_admin_count": 1,
      "org_id": "org_789",
      "org_member_count": 8,
      "org_name": "Design Team",
      "org_user_count": 8,
      "max_cycle_acu_limit": 500,
      "max_session_acu_limit": null
    }
  ],
  "total": 3,
  "skip": 0,
  "limit": 100,
  "has_more": false,
  "next_cursor": null
}
以分页形式返回此企业中所有组织的列表。

查询参数

skip
integer
default:"0"
分页时要跳过的组织数量。必须大于等于 0。
limit
integer
default:"100"
返回的组织数量上限。必须在 1 到 200 之间。

响应

items
array
required
组织对象数组
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" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "items": [
    {
      "org_admin_count": 3,
      "org_id": "org_123",
      "org_member_count": 25,
      "org_name": "Engineering Team",
      "org_user_count": 25,
      "max_cycle_acu_limit": 1000,
      "max_session_acu_limit": 50
    },
    {
      "org_admin_count": 2,
      "org_id": "org_456",
      "org_member_count": 12,
      "org_name": "Product Team",
      "org_user_count": 12,
      "max_cycle_acu_limit": null,
      "max_session_acu_limit": 25
    },
    {
      "org_admin_count": 1,
      "org_id": "org_789",
      "org_member_count": 8,
      "org_name": "Design Team",
      "org_user_count": 8,
      "max_cycle_acu_limit": 500,
      "max_session_acu_limit": null
    }
  ],
  "total": 3,
  "skip": 0,
  "limit": 100,
  "has_more": false,
  "next_cursor": null
}