Skip to main content

Create an organization member

Requirements, permissions, request and response fields, and error handling.

Request and permissions

POST 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.write 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

Create a regular member using an email address under a verified organization domain, allowing an application to add people to the organization. The application requires biz.member.write authorization, and the operator requires member management permission. The target team must be within their management scope. Use lowercase for email. An email address already used in the same organization causes a conflict; removed members are also checked for duplicates. If team_id is omitted or null, the default enabled team is used. Success returns HTTP 201 and the member profile. The new member is frozen (no seat assigned). To activate the member, call “Assign a member seat” afterward. After a timeout or service error, check whether the member was created before deciding to retry.

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.
FieldTypeRequiredDescription and constraints
emailstringYesLowercase email; Unicode and Punycode domains are accepted and normalized by the service.
first_namestringYesMinimum length: 1
Maximum length: 128
last_namestringNoMaximum length: 128
team_idstring | nullNo—
{
  "email": "member@example.com",
  "first_name": "示例成员",
  "last_name": "",
  "team_id": null
}

Success response

Preserve each business API's original response structure. Do not add a common code/msg/data wrapper.

HTTP 201

Organization member created successfully. Response type: application/json
{
  "biz_org_id": "00000000-0000-4000-8000-000000000002",
  "biz_team_id": "00000000-0000-4000-8000-000000000003",
  "blocked": false,
  "dingtalk_uid": null,
  "email": "member@example.com",
  "first_name": "示例成员",
  "last_name": "",
  "phone_number": null,
  "status": "frozen",
  "user_id": "00000000-0000-4000-8000-000000000001",
  "username": "example-member"
}
FieldTypeRequiredDescription and constraints
biz_org_idstringYes—
biz_team_idstringYes—
blockedbooleanYes—
dingtalk_uidstring | nullYes—
emailstring | nullYes—
first_namestringYes—
last_namestringYes—
phone_numberstring | nullYes—
statusstringYes—
user_idstringYes—
usernamestringYes—

Error responses

HTTPDescription and handling
400The 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.
401Missing or invalid token. Check the organization-authorized access token.
403Scope, operator permission, organization/team access, or email domain checks failed. Verify organization authorization, the target team, and the verified email domain.
404The member or organization does not exist. Verify the target identifier.
405Method Not Allowed
409org_managed_auth_email_exists means the email already exists; enterprise_seat_lock_busy means the organization capacity lock required for member creation is busy. Verify the member creation result before retrying.
413Request Entity Too Large
415Unsupported Media Type
422Invalid parameter type, UUID, required field, or length. Correct the request at the location indicated in detail.
429Too Many Requests
500Business processing failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying.
502Biz service call failed. Retain request_id/trace_id and contact support. For writes, verify the actual outcome before retrying.
503Biz service temporarily unavailable. For writes, verify the actual outcome before retrying. seat_projection_refresh_busy means the lock for refreshing expired capacity is busy. No new allocation is made in this attempt; retry is allowed.
504Biz service call timed out. The outcome of a write may be uncertain; verify the actual outcome before retrying.
Retain the request ID and error fields from the response for troubleshooting. A write operation may have taken effect even after a timeout or disconnection. Do not automatically retry solely because no success response was received.

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.
{
  "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"
      },
      "CreateRequest": {
        "additionalProperties": false,
        "properties": {
          "email": {
            "description": "Lowercase email; Unicode and Punycode domains are accepted and normalized by the service.",
            "type": "string"
          },
          "first_name": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string"
          },
          "last_name": {
            "maxLength": 128,
            "type": "string"
          },
          "team_id": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "required": [
          "email",
          "first_name"
        ],
        "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"
      },
      "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": {
      "post": {
        "description": "Create a regular member using an email address under a verified organization domain, allowing an application to add people to the organization. The application requires biz.member.write authorization, and the operator requires member management permission. The target team must be within their management scope.\n\nUse lowercase for email. An email address already used in the same organization causes a conflict; removed members are also checked for duplicates. If team_id is omitted or null, the default enabled team is used.\n\nSuccess returns HTTP 201 and the member profile. The new member is frozen (no seat assigned). To activate the member, call “Assign a member seat” afterward. After a timeout or service error, check whether the member was created before deciding to retry.",
        "operationId": "biz-create-member",
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "email": "member@example.com",
                "first_name": "示例成员",
                "last_name": "",
                "team_id": null
              },
              "schema": {
                "$ref": "#/components/schemas/CreateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "biz_org_id": "00000000-0000-4000-8000-000000000002",
                  "biz_team_id": "00000000-0000-4000-8000-000000000003",
                  "blocked": false,
                  "dingtalk_uid": null,
                  "email": "member@example.com",
                  "first_name": "示例成员",
                  "last_name": "",
                  "phone_number": null,
                  "status": "frozen",
                  "user_id": "00000000-0000-4000-8000-000000000001",
                  "username": "example-member"
                },
                "schema": {
                  "$ref": "#/components/schemas/MemberLookupRead"
                }
              }
            },
            "description": "Organization member created 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, organization/team access, or email domain checks failed. Verify organization authorization, the target team, and the verified email domain.",
            "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": "org_managed_auth_email_exists means the email already exists; enterprise_seat_lock_busy means the organization capacity lock required for member creation is busy. Verify the member creation result 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"
                }
              }
            }
          },
          "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. seat_projection_refresh_busy means the lock for refreshing expired capacity is busy. No new allocation is made in this attempt; retry is 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"
                }
              }
            }
          },
          "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": "Create an organization member",
        "tags": [
          "成员"
        ]
      }
    }
  },
  "info": {
    "title": "Create an organization member",
    "version": "2026-11-24"
  },
  "servers": [
    {
      "url": "https://openapi.qwenwork.ai"
    }
  ]
}
Back to the OpenAPI overview.