获取开发者成员

通过 OpenAPI 获取通义灵码开发者成员。

适用版本

企业专属版、企业标准版

服务接入点

获取服务接入点,替换 API 请求语法中的 {domain}

授权信息

产品

资源

所需权限

通义灵码

开发者

只读

请求语法

GET https://{domain}/oapi/v1/lingma/organizations/{organizationId}/developer/members

请求说明

企业标准版

查询组织下全部开发者成员

curl -X 'GET' \
  'https://openapi-rdc.aliyuncs.com/oapi/v1/lingma/organizations/c7655445-143f-4466-9724-8b371a21****/developer/members?page=1&perPage=100' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

查询某部门的开发者成员

curl -X 'GET' \
  'https://openapi-rdc.aliyuncs.com/oapi/v1/lingma/organizations/c7655445-143f-4466-9724-8b371a21****/developer/members?departmentId=7b58e90a-063f-475b-ad6d-32d1f438****&page=1&perPage=100' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

根据用户ID查询某个开发者成员

curl -X 'GET' \
  'https://openapi-rdc.aliyuncs.com/oapi/v1/lingma/organizations/c7655445-143f-4466-9724-8b371a21****/developer/members?userId=f6652104-fcd8-4524-8390-da717b66****&page=1&perPage=100' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

企业专属版

查询组织下全部开发者成员

curl -X 'GET' \
  'https://test-domain-***.rdc.aliyuncs.com/oapi/v1/lingma/organizations/c7655445-143f-4466-9724-8b371a21****/developer/members?page=1&perPage=100' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

查询某部门的开发者成员

curl -X 'GET' \
  'https://test-domain-***.rdc.aliyuncs.com/oapi/v1/lingma/organizations/c7655445-143f-4466-9724-8b371a21****/developer/members?departmentId=7b58e90a-063f-475b-ad6d-32d1f438****&page=1&perPage=100' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

根据用户ID查询某个开发者成员

curl -X 'GET' \
  'https://test-domain-***.rdc.aliyuncs.com/oapi/v1/lingma/organizations/c7655445-143f-4466-9724-8b371a21****/developer/members?userId=f6652104-fcd8-4524-8390-da717b66****&page=1&perPage=100' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

请求头(Headers)

x-yunxiao-token string (必选)

个人访问令牌。您可参考个人访问令牌获取。

示例:pt-0fh3****0fbG_35af****0484。

请求参数

organizationId string (必选)

所属组织ID。您可以前往组织管理后台基本信息页面获取organizationId

departmentId string (可选)

部门 ID。请参见查询组织部门列表获取部门 ID。

userId string (可选)

用户 ID。请参见查询成员列表获取用户 ID。

page integer (可选)默认值为1

当前页。

perPage integer (可选)默认值为100

每页数据条数的最大值,取值范围:[1,100]

返回参数

返回示例

[
    {
        "displayName": "zzz_only_delete",
        "gmtCreate": 1749537696208,
        "LastActiveTime": 1750409905205,
        "memberId": "193232726783565****",
        "status": "N",
        "userId": "f6652104-fcd8-4524-8390-da717b66****",
        "userName": "zzz_only_delete"
    }
]

displayName string

登录名。

gmtCreate long

创建时间。

lastActiveTime long

最近活跃时间。

memberId string

开发者成员 ID。

status string

状态:

  • Y:已激活。

  • N或为空:未激活。

userId string

用户 ID。

userName string

用户名称。

响应头

参数

描述

示例值

x-next-page

下一页

2

x-page

当前页

1

x-per-page

每页大小

100

x-prev-page

前一页

0

x-request-id

请求 ID

37294673-00CA-5B8B-914F-A8B35511E90A

x-total

总数

10

x-total-pages

总分页数

1

错误码

访问错误码中心查看 API 相关错误码。