Member ManagementAPI ReferenceAdd Members

Add Members

POST/openapi/v1/members/add

Add members in bulk to a Space. New members are in To Be Activated status and receive an invitation email; a member becomes Enabled after joining via the invitation email, or after clicking Agree on the authorization page in Designated Space Mode. See OAuth Authorization Flow for the end-to-end integration.

Behavior:

  • An email that is already a To Be Activated member of the Space is returned in SuccessList without creating a duplicate.
  • An email that is already an enabled or disabled member of the Space is returned in FailList.
  • A per-member validation failure (invalid email format, invalid name, etc.) only affects that member, which is returned in FailList.

Target Space: When SpaceId is omitted, the Space the access_token belongs to is used. When another Space is given, the app must be installed in that Space, and its authorization there must include member:manage.

Permission: The operator must be an administrator of the target Space. In client_credentials mode, if X-Operator-User-Id is omitted, the app acts on its own behalf.

Constraints: The number of members added must not exceed the remaining member seats of the target Space.

Console equivalent: Members → Add Member.

Required Scope: member:manage


Request Parameters

AuthorizationRequiredstring
Bearer <access_token>
X-Operator-User-IdOptionalstring
Operator user ID, shown as the inviter in invitation emails; must be an administrator of the target Space. Not required in authorization_code mode (the authorized user is used automatically); optional in client_credentials mode, and the app acts on its own behalf if omitted.
application/json
SpaceIdOptionalstring
Target Space ID (optional). Defaults to the Space the access_token belongs to. When another Space is given, the app must be installed in that Space with `member:manage` granted.
MembersRequiredarray<object>
List of members to add.
EmailRequiredstring
Member email address.
NameRequiredstring
Member name, up to 30 characters, shown in invitation emails.
RolesOptionalarray<string>
Role list. Supported values: `admin` (Administrator, can manage the Space), `sender` (Sender, can create and send envelopes). Defaults to `["sender"]` if omitted.

Response Parameters

SuccessListOptionalarray<object>
Members added successfully, including emails that were already To Be Activated members.
EmailOptionalstring
Member email address.
NameOptionalstring
Member display name.
StatusOptionalstring
`success` or `failed`.
successfailed
MessageOptionalstring
Failure reason (only present when Status is `failed`).
FailListOptionalarray<object>
Members that failed to be added, with failure reasons.
EmailOptionalstring
Member email address.
NameOptionalstring
Member display name.
StatusOptionalstring
`success` or `failed`.
successfailed
MessageOptionalstring
Failure reason (only present when Status is `failed`).

Error Codes

Error CodeDescription
INVALID_REQUESTInvalid parameters (empty Members, invalid role, etc.), or the app is not installed in the target Space
FORBIDDENThe app's authorization in the target Space does not include member:manage
OPENAPI.OPERATOR_USER_NOT_FOUNDOperator does not exist or is not an enabled member of the current Space
MEMBER.INSUFFICIENT_PERMISSIONOperator is not an administrator of the target Space
BILLING.MEMBER_QUOTA_INSUFFICIENTInsufficient member seats
VALIDATION.INAPPROPRIATE_CONTENTName contains inappropriate content
OPERATION_FREQUENTAnother add-members request for the same Space is in progress, please retry later
INTERNAL_ERRORInternal server error