Requirements, permissions, request and response fields, and error handling.
Request and permissions
GET https://openapi.qwenwork.ai/v1/biz/members
Authentication: Authorization: Bearer <access_token>; use an access token obtained through user OAuth authorization.
Required business Scope: biz.member.read
Authorization method declared in the contract: Organization authorization (organization)
The platform must enable the Scope for the application. The user must have the required business permissions, and the target resource must be within their accessible scope. Availability of personal or organization authorization depends on the application's actual console configuration.
Behavior and limitations
List visible members of the currently authorized organization with pagination for member directories or filtered searches. The application requires biz.member.read authorization, and the operator requires member read permission. Team administrators can query only their own team.
Paginate with page and limit. The defaults are page 1 and 10 members per page, with a maximum of 100 members per page. Filter by status, registration source, role, and search. Omitting status includes all states, including removed. With status=active and include_frozen=true, both active and frozen members are returned.
If search is a complete UUID, it matches user_id. Otherwise, it searches name and China-site phone number substrings and email prefixes. Organizations linked to DingTalk also support DingTalk UID lookup. Pass array parameters by repeating the parameter name, for example registration_source=web®istration_source=desktop.
Success returns items and pagination, including basic member profiles, total count, and maximum page number. Beyond the last page, items is an empty array.
Query parameters
| Parameter | Type | Required | Description and constraints |
|---|---|---|---|
page | integer | No | Page number; defaults to 1. Default: 1 Minimum (inclusive): 1 |
limit | integer | No | Items per page; defaults to 10. Values above 100 are capped at 100. Default: 10 Minimum (inclusive): 1 |
sorting | array | No | Defaults to -created_at. Repeated parameters are applied in order. Only creation time sorting is supported; order is not fixed for members with the same creation time. |
status | string | No | No status filter if omitted. Allowed values: ["pending", "active", "frozen", "removed"] |
registration_source | array | No | Include only the specified registration sources. Maximum items: 1000 |
not_registration_source | array | No | Exclude the specified registration sources. Maximum items: 1000 |
include_frozen | boolean | No | Expands to active and frozen only when status=active. Default: false |
role | string | No | Team role. Allowed values: ["team-admin", "team-member"] |
effective_role | string | No | Display role, including the contact super administrator. Allowed values: ["super-admin", "team-admin", "team-member"] |
search | string | No | Exact UUID match; name/CN phone number substring, email prefix, or exact DingTalk UID match. Maximum length: 128 |
Request body
The public contract does not declare a request body. Do not add identity fields or undeclared business fields.
Success response
Preserve each business API's original response structure. Do not add a common code/msg/data wrapper.
HTTP 200
Organization members retrieved successfully.
Response type: application/json
| Field | Type | Required | Description and constraints |
|---|---|---|---|
items | array | null | Yes | — |
items[] | object | No | Additional properties: false |
items[].email | string | null | Yes | — |
items[].first_name | string | Yes | — |
items[].last_name | string | Yes | — |
items[].org_id | string | Yes | — |
items[].phone | string | null | Yes | — |
items[].status | string | Yes | — |
items[].team_id | string | Yes | — |
items[].user_id | string | Yes | — |
items[].username | string | Yes | — |
pagination | object | Yes | Additional properties: false |
pagination.max_page | integer | Yes | Format: "int64" |
pagination.page | integer | Yes | Format: "int64" |
pagination.total_count | integer | Yes | Format: "int64" |
Error responses
| HTTP | Description and handling |
|---|---|
400 | The request or operator identity profile does not meet business requirements. primary_contact_phone_required / primary_contact_email_required means both phone number and email are missing. Complete the profile before retrying. |
401 | Missing or invalid token. Check the organization-authorized access token. |
403 | Scope, operator permission, or resource scope checks failed. Verify organization authorization and operator permissions. |
404 | The member or organization does not exist. Verify the target identifier. |
405 | Method Not Allowed |
409 | Business conflict. Retain request_id/trace_id and verify the actual outcome. |
413 | Request Entity Too Large |
415 | Unsupported Media Type |
422 | Invalid parameter type, UUID, required field, or length. Correct the request at the location indicated in detail. |
429 | Too Many Requests |
500 | Business processing failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying. |
502 | Biz service call failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying. |
503 | Biz service temporarily unavailable. For writes, verify the actual outcome before retrying. |
504 | Biz service call timed out. The outcome of a write may be uncertain; verify the actual outcome before retrying. |
Complete field contract
The JSON below contains this API's complete request, response, and error schemas, nested constraints, and public extension definitions. Copy it for reference. No success examples are inferred where none are declared.
Expand the complete API OpenAPI JSON
Expand the complete API OpenAPI JSON