Requirements, permissions, request and response fields, and error handling.
Request and permissions
POSThttps://openapi.qwenwork.ai/v1/biz/members:resolve
Authentication: Authorization: Bearer <access_token>; use an access token obtained through user OAuth authorization.
Required business Scope: biz.member.resolve
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
Resolve an organization member's profile from a known email, phone number, DingTalk UID, or member user_id to associate an external person identifier with an organization member. The application requires biz.member.resolve authorization, and the operator requires member read permission. Provide exactly one non-null value among the four identifiers. If team_id is omitted or null, the organization's default enabled team is queried. The target team must belong to the authorized organization and be within the operator's management scope. Only members in pending, active, or frozen status are returned. Success returns an items array, empty when there are no matches. An email may correspond to multiple members. If a phone number matches multiple members, 409 member_ambiguous_contact is returned; query with a known user_id instead. An unavailable organization or team returns 403 org_managed_auth_login_denied.Request body
A request body is required.application/json
A child field is required only when its parent object is present. Union branches are listed separately; fields from all branches are not required simultaneously.| Field | Type | Required | Description and constraints |
|---|---|---|---|
dingtalk_uid | string | null | No | Minimum length: 1 Maximum length: 64 Pattern: "^[0-9]+$" |
email | string | null | No | — |
phone_number | string | null | No | — |
team_id | string | null | No | Format: "uuid" |
user_id | string | null | No | Format: "uuid" |
email | string | Yes | Exactly one of: branch 1 — |
phone_number | string | Yes | Exactly one of: branch 2 — |
dingtalk_uid | string | Yes | Exactly one of: branch 3 — |
user_id | string | Yes | Exactly one of: branch 4 — |
Copy
{
"email": "member@example.com",
"team_id": null
}
Success response
Preserve each business API's original response structure. Do not add a commoncode/msg/data wrapper.
HTTP 200
Organization member identity resolved successfully. Response type:application/json
Copy
{
"items": []
}
| Field | Type | Required | Description and constraints |
|---|---|---|---|
items | array | null | Yes | — |
items[] | object | No | Additional properties: false |
items[].biz_org_id | string | Yes | — |
items[].biz_team_id | string | Yes | — |
items[].blocked | boolean | Yes | — |
items[].dingtalk_uid | string | null | Yes | — |
items[].email | string | null | Yes | — |
items[].first_name | string | Yes | — |
items[].last_name | string | Yes | — |
items[].phone_number | string | null | Yes | — |
items[].status | string | Yes | — |
items[].user_id | string | Yes | — |
items[].username | string | Yes | — |
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 | member_ambiguous_contact means the phone number matches multiple members. Resolve precisely using user_id. |
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
Copy
{
"components": {
"schemas": {
"BizDomainErrorResponse": {
"additionalProperties": false,
"properties": {
"code": {
"type": "string"
},
"detail": {
"type": "string"
},
"error": {
"type": "string"
},
"org_status_reason": {
"description": "Raw JSON value of the organization status reason; may be null"
},
"request_id": {
"type": "string"
},
"seat_count": {
"description": "Configured organization seat count, returned when provided by the domain error",
"format": "int64",
"type": "integer"
},
"seat_used": {
"description": "Used organization seat count, returned when provided by the domain error",
"format": "int64",
"type": "integer"
},
"trace_id": {
"type": [
"string",
"null"
]
}
},
"required": [
"error",
"detail",
"request_id",
"trace_id"
],
"type": "object"
},
"BizGatewayErrorResponse": {
"additionalProperties": false,
"properties": {
"code": {
"type": "integer"
},
"data": {
"type": "null"
},
"error_code": {
"type": "string"
},
"msg": {
"type": "string"
},
"request_id": {
"type": "string"
},
"trace_id": {
"type": "string"
}
},
"required": [
"code",
"msg",
"data",
"error_code"
],
"type": "object"
},
"MemberLookupRead": {
"additionalProperties": false,
"properties": {
"biz_org_id": {
"type": "string"
},
"biz_team_id": {
"type": "string"
},
"blocked": {
"type": "boolean"
},
"dingtalk_uid": {
"type": [
"string",
"null"
]
},
"email": {
"type": [
"string",
"null"
]
},
"first_name": {
"type": "string"
},
"last_name": {
"type": "string"
},
"phone_number": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"user_id": {
"type": "string"
},
"username": {
"type": "string"
}
},
"required": [
"user_id",
"username",
"first_name",
"last_name",
"email",
"phone_number",
"dingtalk_uid",
"biz_org_id",
"biz_team_id",
"status",
"blocked"
],
"type": "object"
},
"ResolveInput": {
"additionalProperties": false,
"oneOf": [
{
"properties": {
"email": {
"type": "string"
}
},
"required": [
"email"
],
"type": "object"
},
{
"properties": {
"phone_number": {
"type": "string"
}
},
"required": [
"phone_number"
],
"type": "object"
},
{
"properties": {
"dingtalk_uid": {
"type": "string"
}
},
"required": [
"dingtalk_uid"
],
"type": "object"
},
{
"properties": {
"user_id": {
"type": "string"
}
},
"required": [
"user_id"
],
"type": "object"
}
],
"properties": {
"dingtalk_uid": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[0-9]+$",
"type": [
"string",
"null"
]
},
"email": {
"type": [
"string",
"null"
]
},
"phone_number": {
"type": [
"string",
"null"
]
},
"team_id": {
"format": "uuid",
"type": [
"string",
"null"
]
},
"user_id": {
"format": "uuid",
"type": [
"string",
"null"
]
}
},
"type": "object"
},
"ResolveResponse": {
"additionalProperties": false,
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/MemberLookupRead"
},
"type": [
"array",
"null"
]
}
},
"required": [
"items"
],
"type": "object"
},
"ValidationErrorResponse": {
"additionalProperties": false,
"properties": {
"detail": {
"items": {
"$ref": "#/components/schemas/ValidationIssue"
},
"type": [
"array",
"null"
]
},
"error": {
"type": "string"
},
"request_id": {
"type": "string"
},
"trace_id": {
"type": [
"string",
"null"
]
}
},
"required": [
"error",
"detail",
"request_id",
"trace_id"
],
"type": "object"
},
"ValidationIssue": {
"additionalProperties": false,
"properties": {
"ctx": {
"additionalProperties": {},
"type": "object"
},
"input": {},
"loc": {
"items": {},
"type": [
"array",
"null"
]
},
"msg": {
"type": "string"
},
"type": {
"type": "string"
}
},
"required": [
"type",
"loc",
"msg",
"input"
],
"type": "object"
}
},
"securitySchemes": {
"OpenPlatformBearer": {
"description": "Organization-authorized application access token; Scope does not replace operator permissions or resource isolation",
"scheme": "bearer",
"type": "http"
}
}
},
"openapi": "3.1.0",
"paths": {
"/v1/biz/members:resolve": {
"post": {
"description": "Resolve an organization member's profile from a known email, phone number, DingTalk UID, or member user_id to associate an external person identifier with an organization member.\n\nThe application requires biz.member.resolve authorization, and the operator requires member read permission. Provide exactly one non-null value among the four identifiers. If team_id is omitted or null, the organization's default enabled team is queried. The target team must belong to the authorized organization and be within the operator's management scope.\n\nOnly members in pending, active, or frozen status are returned. Success returns an items array, empty when there are no matches. An email may correspond to multiple members. If a phone number matches multiple members, 409 member_ambiguous_contact is returned; query with a known user_id instead. An unavailable organization or team returns 403 org_managed_auth_login_denied.",
"operationId": "biz-resolve-member",
"requestBody": {
"content": {
"application/json": {
"example": {
"email": "member@example.com",
"team_id": null
},
"schema": {
"$ref": "#/components/schemas/ResolveInput"
}
}
},
"required": true
},
"responses": {
"200": {
"content": {
"application/json": {
"example": {
"items": []
},
"schema": {
"$ref": "#/components/schemas/ResolveResponse"
}
}
},
"description": "Organization member identity resolved successfully.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"400": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "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.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"401": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Missing or invalid token. Check the organization-authorized access token.",
"headers": {
"WWW-Authenticate": {
"schema": {
"type": "string"
}
},
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"403": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Scope, operator permission, or resource scope checks failed. Verify organization authorization and operator permissions.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"404": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "The member or organization does not exist. Verify the target identifier.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"405": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
}
},
"description": "Method Not Allowed",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"409": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "member_ambiguous_contact means the phone number matches multiple members. Resolve precisely using user_id.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"413": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
}
},
"description": "Request Entity Too Large",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"415": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
}
},
"description": "Unsupported Media Type",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"422": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/ValidationErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Invalid parameter type, UUID, required field, or length. Correct the request at the location indicated in detail.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"429": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
}
},
"description": "Too Many Requests",
"headers": {
"Retry-After": {
"description": "Seconds to wait before retrying.",
"schema": {
"type": "string"
}
},
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"500": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Business processing failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"502": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Biz service call failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"503": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Biz service temporarily unavailable. For writes, verify the actual outcome before retrying.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
},
"504": {
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/BizDomainErrorResponse"
},
{
"$ref": "#/components/schemas/BizGatewayErrorResponse"
}
]
}
}
},
"description": "Biz service call timed out. The outcome of a write may be uncertain; verify the actual outcome before retrying.",
"headers": {
"X-Request-ID": {
"description": "Request ID generated by the open platform for each HTTP request for log correlation and troubleshooting. Retries generate a new ID. This is not an idempotency key or a distributed Trace ID.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
},
"X-Trace-ID": {
"description": "OpenTelemetry TraceID of the current open platform request, correlated with X-Request-ID through request logs. A complete trace may not be available if sampling did not retain it.",
"schema": {
"pattern": "^[0-9a-f]{32}$",
"type": "string"
}
}
}
}
},
"security": [
{
"OpenPlatformBearer": []
}
],
"summary": "Resolve an organization member's identity",
"tags": [
"成员"
]
}
}
},
"info": {
"title": "Resolve an organization member's identity",
"version": "2026-11-24"
},
"servers": [
{
"url": "https://openapi.qwenwork.ai"
}
]
}