跳转到主要内容
GET
/
v2
/
enterprise
/
members
curl -X GET "https://api.devin.ai/v2/enterprise/members?limit=50" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "items": [
    {
      "user_id": "user_123",
      "email": "john.doe@company.com",
      "name": "John Doe",
      "enterprise_role": "account_admin",
      "created_at": "2024-01-15T10:30:00Z",
      "last_login": "2024-01-20T14:22:00Z",
      "login_count": 15,
      "sessions_created_count": 8
    },
    {
      "user_id": "user_456",
      "email": "jane.smith@company.com",
      "name": "Jane Smith",
      "enterprise_role": "account_member",
      "created_at": "2024-01-16T09:15:00Z",
      "last_login": null,
      "login_count": null,
      "sessions_created_count": 0
    }
  ],
  "total": 125,
  "skip": 0,
  "limit": 50,
  "has_more": true,
  "next_cursor": 50
}
返回此企业中所有成员的分页列表,包括其基本信息和在企业中的角色。

查询参数

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/members?limit=50" \
  -H "Authorization: Bearer YOUR_API_KEY"
{
  "items": [
    {
      "user_id": "user_123",
      "email": "john.doe@company.com",
      "name": "John Doe",
      "enterprise_role": "account_admin",
      "created_at": "2024-01-15T10:30:00Z",
      "last_login": "2024-01-20T14:22:00Z",
      "login_count": 15,
      "sessions_created_count": 8
    },
    {
      "user_id": "user_456",
      "email": "jane.smith@company.com",
      "name": "Jane Smith",
      "enterprise_role": "account_member",
      "created_at": "2024-01-16T09:15:00Z",
      "last_login": null,
      "login_count": null,
      "sessions_created_count": 0
    }
  ],
  "total": 125,
  "skip": 0,
  "limit": 50,
  "has_more": true,
  "next_cursor": 50
}