Endpoints for inviting, creating, and querying organization members, updating their names and roles, and managing member statistics and quotas.
Use an API key belonging to the target organization (
Query parameters:
Response example:
Request example:
Response example:
Create a new user and add the user to the organization. If the email is not registered, a new account is created. If it is registered and the user has no current organization membership, the existing account is reused without changing its password. To let users register or sign in and accept an invitation, use Create email invitations.
Request body:
Request example:
Response example:
The endpoint may return
Invite users to join the organization. Invitations are currently sent by email; recipients follow the link to register or sign in and accept.
Resolve the cause in
An unsupported
This example is the last page:
Create and list responses use this structure for
Cancelling, resending, and deleting invitations are subject to the organization plan restrictions.
Only
Cancelling, resending, and deleting invitations are subject to the organization plan restrictions.
No request body is required. Only
The examples are independent. Replace the invitation ID below with a real
Cancelling, resending, and deleting invitations are subject to the organization plan restrictions.
No request body is required. You can delete a record in any status; a pending invitation also becomes invalid. Deleting a
Request-level errors contain
Downstream business errors use standard messages that may omit the underlying cause. Preserve
Request example:
Response example:
Request example:
Returns HTTP 204 No Content on success.
Request example:
Response example:
Each quota field is an object. In
Request body:
Response example:
Request body:
Response example:
Request body:
Each request accepts 1–100 non-empty member IDs and applies the same cap to every member.
Response example:
Use the target organization’s API key:
Returns the updated member details directly, using the same fields as the get member details endpoint.
Other IAM business errors use the standard OpenAPI error response with
Returns the updated member ID, associated user ID, and display name.
Errors use the standard OpenAPI response with
The member must be active and not removed. The login email domain must be verified, enabled, and owned by the organization. The account must have a local password and allow password login. No password email is sent.
Do not automatically retry 409, 503, or timeouts. Record
Authorization: Bearer <api_key>). See Conventions for service endpoints and the common error format.
List members
| Parameter | Type | Description |
|---|---|---|
userId | string | Exact user UUID lookup; cannot be combined with email |
email | string | Exact match on email address |
includeDeleted | boolean | Include deleted members; defaults to false |
maxResults | integer | Items per page; default 20, max 100 |
nextToken | string | Pagination cursor |
userId must be a non-empty standard UUID. Exact lookup by userId or email returns at most one member and does not return a new nextToken. If no member matches, the API returns 200 OK with an empty members array.
Request example:
Member status values
| Status | Description |
|---|---|
ENABLED | Active |
DISABLED | Disabled |
UNACTIVATED | Not yet activated |
APPROVE_PENDING | Pending approval |
APPROVE_DECLINED | Approval declined |
DELETED | Deleted |
Get member details
Create a member
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | New user email. Its domain must be verified and enabled for the organization |
name | string | Yes | User and member display name |
password | string | Yes | Initial password. It must meet the password-strength requirements and is never returned |
role | string | No | org_member, org_admin, org_config_admin, or org_directory; defaults to org_member |
InvalidParameter, InvalidPassword, InvalidRole, EmailDomainRequired, EmailDomainNotSupported, or InsufficientSeats (HTTP 400), or EmailAlreadyExists, OrgInvitationUserAlreadyInOrg, or OrgInvitationUserInOtherOrg (HTTP 409).
Create email invitations
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id | string | Yes | Organization UUID. |
Email invitation requirements
- Creating, cancelling, resending, and deleting invitations are subject to organization plan restrictions. These writes are rejected if the plan is expired, suspended, cancelled, or an active Free plan. Listing invitations remains available.
- Creating an invitation also requires an allocatable seat. Sending an invitation does not reserve a seat; availability is checked and a seat is allocated when it is accepted.
- You cannot invite an address whose domain is managed by another organization. If verified-domain validation is enabled for the deployment (disabled by default), your organization must also have a verified, enabled email domain matching the recipient's address.
failedEmails; even a batch in which every address fails can return 200 OK. Invalid request parameters or unmet organization prerequisites fail the whole request.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
emails | string[] | Yes | 1 to 3000 addresses per batch. Leading and trailing whitespace is removed, and addresses are lowercased. Empty strings are ignored; an empty resulting list is rejected. |
role | string | No | org_member or org_admin. Defaults to org_member. |
inviterId | string | No | Inviter's user UUID. Must identify an active administrator (org_admin or org_config_admin) in this organization. Use the member's userId. Defaults to the organization creator; provide it explicitly if creator information is missing or the creator is not an eligible administrator. |
expiresInHours | int32 | No | Validity in hours, from 24 to 720. Omitted values or int32 values outside that range use 168 (7 days). Fractional values or values outside the int32 range fail request-body parsing. |
Request example
Success response (200 OK)
Response fields
| Field | Type | Description |
|---|---|---|
invitations | array | Created email invitation objects. Invitations from one batch share a batchId. Empty if none were created. |
failedEmails | array | Failed items, each with email and reason. Empty if none failed. |
totalSent | int32 | Number of invitations created. Email is sent asynchronously; this is not a delivery count. |
totalFailed | int32 | Number of failed items, including validation and write failures. |
Per-address failure reasons
failedEmails[].reason can be a code or text. Preserve the original value for troubleshooting.
| reason | Description |
|---|---|
invalid email format | Invalid address format. |
duplicate email in batch | Duplicate address after normalization. |
pending invitation already exists for this email | A pending invitation already exists. |
this email has already joined the organization | An accepted invitation record already exists. |
OrgEmailInvitationUserInAnotherOrg | The user already has an organization membership, possibly in the current organization. |
OrgEmailInvitationDomainOwnedByAnotherOrg | Another organization manages the email domain. |
OrgEmailInvitationDomainNotMatched | With domain validation enabled, the address does not match a verified domain of this organization. |
internal_error_batch_write_failed | Batch write failure. Retain successful results and investigate or retry only failed items. |
reason, then submit only the addresses that need retrying to the create endpoint. Do not resubmit successful items. Use resend for an existing pending invitation.
List email invitations
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id | string | Yes | Organization UUID. |
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
status | string | No | PENDING, JOINED, EXPIRED, or CANCELLED. Omit to list all statuses. |
batchId | string | No | Filter by the batch UUID from a create response. |
maxResults | integer | No | Defaults to 20, maximum 100. Positive int32 values above 100 are capped at 100; nonpositive values or values that cannot be parsed as int32 use 20. |
nextToken | string | No | Pagination token from the previous response. Omit for the first page. |
status or a batchId that is not a valid UUID returns 400 BadRequest.
Request example
Success response (200 OK)
This example is the last page:
invitations contains the invitation objects; maxResults is the effective page size. When another page exists, pass the returned nextToken unchanged in the next request. The last page omits nextToken. An empty list returns invitations: []. An invalid nextToken returns the first page.
Email invitation object
Create and list responses use this structure for invitations[]; resend uses it for invitation. Timestamps are RFC 3339 strings.
| Field | Type | Description |
|---|---|---|
id | string | Invitation UUID for cancel, resend, or delete operations. |
organizationId | string | Organization ID. |
email | string | Invited email address. |
role | string | Assigned role: org_member or org_admin. |
status | string | PENDING (awaiting acceptance), JOINED (joined), EXPIRED (expired), or CANCELLED (cancelled). |
expiresAt | string | Expiration time. |
joinedUserId | string | User ID after joining; omitted when unset. |
joinedAt | string | Join time; omitted when unset. |
emailSentAt | string | Recorded email send time; omitted when unset. The current sending flow does not guarantee updates to this field. Do not use it to determine delivery. |
cancelledAt | string | Cancellation time; omitted when unset. |
batchId | string | Batch ID; omitted when unset. |
createdAt | string | Creation time. |
updatedAt | string | Last update time. |
Cancel an email invitation
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id | string | Yes | Organization UUID. |
invitation_id | string | Yes | Invitation UUID from the id field. |
PENDING invitations can be cancelled. The invitation becomes invalid and its record remains with status CANCELLED. No request body is required.
Request example
Success response (200 OK)
id identifies the cancelled invitation:
Resend an email invitation
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id | string | Yes | Organization UUID. |
invitation_id | string | Yes | Invitation UUID from the id field. |
EXPIRED invitations can be resent.
EXPIRED: Creates a new invitation with the same email, role, and inviter, and rechecks creation prerequisites. The new invitation has a new ID, link, and batch ID, with the default 168-hour validity. The service attempts to delete the old record after creation; a deletion failure does not fail the response. Use the returned new ID for subsequent operations.
status, whose refresh can lag behind expiration. If expiresAt has passed but the status is still PENDING, the request is rejected. To obtain a new invitation, first list invitations and confirm the status is EXPIRED.
Email sending failures are not returned as errors by this endpoint. 200 OK does not confirm delivery.
Request example
The examples are independent. Replace the invitation ID below with a real EXPIRED invitation; an invitation that has been cancelled cannot be resent.
Success response (200 OK)
invitation is the invitation used for this request:
Delete an email invitation
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
org_id | string | Yes | Organization UUID. |
invitation_id | string | Yes | Invitation UUID from the id field. |
JOINED record does not remove the organization member. Use the Delete member to remove members.
Request example
Success response (200 OK)
id identifies the deleted invitation:
Email invitation error codes
Request-level errors contain requestId, code, and message. Handle them separately from failedEmails in a 200 OK response. For example, resending an expired invitation returns 400 if the original inviter no longer exists:
| HTTP status | code | Description |
|---|---|---|
| 400 | InvalidParameter | Empty email list or invalid inviter / invitation ID. inviterId is required means creator information is missing or the creator is not an eligible administrator; provide the inviter explicitly. |
| 400 | InvalidRole | Role is neither org_member nor org_admin. |
| 400 | BadRequest | Invalid request body, invalid status / batchId, or a missing organization subscription record. |
| 400 | OrgEmailInvitationInviterNotFound | Inviter user does not exist. |
| 400 | OrgEmailInvitationBatchSizeExceeded | Batch exceeds 3000 invitations. |
| 400 | OrgInvitationInsufficientSeats | No seats available when creating invitations. |
| 400 | OrgEmailInvitationNoVerifiedDomain | Domain validation is enabled but no verified, enabled domain exists. |
| 400 | OrgEmailInvitationDomainOwnedByAnotherOrg | The domain of the address being reinvited is managed by another organization. |
| 400 | OrgEmailInvitationOrgMismatch | Invitation does not belong to the specified organization. |
| 400 | OrgEmailInvitationCannotCancel | Invitation is not PENDING. |
| 400 | OrgEmailInvitationStatusNotResendable | Invitation is not EXPIRED. |
| 400 | OrgEmailInvitationCannotResend | Recreating an expired invitation produced no invitation. Request-level failures, such as subscription or seat checks, return their own codes. |
| 401 | Unauthorized | Valid authentication is missing. |
| 403 | Forbidden | No access to the specified organization, or inviterId does not identify an active administrator in that organization. |
| 403 | OrganizationPlanExpired | The organization plan is expired, suspended, cancelled, or an active Free plan. Creating, cancelling, resending, and deleting invitations are blocked. |
| 404 | NotFound | Invitation does not exist or has been deleted. |
| 500 | InternalError | Internal service error. |
requestId for troubleshooting.
Member statistics
| Field | Description |
|---|---|
totalMembers | Total number of members |
billableMembers | Number of billable members |
adminMembers | Number of administrators |
purchasedSeats | Total purchased seats |
remainingSeats | Available seats |
Delete a member
Get member quota
| Field | Description |
|---|---|
planQuota | Quota from the subscription plan |
resourcePackageQuota | Quota from resource packages |
totalQuota | Total available quota |
sharedQuota | Shared quota |
quotaSummary, usedValue, limitValue, and unit represent usage, limit, and unit, respectively.
Batch get member quotas
memberIds: Array of member IDs (1–100 items).
Update member Add-On Cap
addOnCap is required and accepts a non-negative integer or null. null means unlimited; 0 disables the quota.
Request example:
Batch update Add-On Cap
addOnCap is required and accepts a non-negative integer or null. null means unlimited.
Request example:
previousAddOnCap is omitted when the member was previously unlimited. Request validation may return InvalidBatchAddOnCapRequest, EmptyMemberIDs, TooManyMemberIDs, EmptyMemberIDAtIndex, or InvalidAddOnCapFormat.
Update member role
PUT /v1/organizations/{organization_id}/members/{member_id}/role
Set an organization member’s role to Organization Admin, Organization Member, Config Admin, or Directory. Available for CN / Global and Teams / Enterprise, using the same IAM role-change capability as the dashboard.
Authentication and permissions
Use the target organization’s API key: Authorization: Bearer <api_key>. The key must belong to the organization in the path. Service account credentials cannot call this endpoint. The member_id must belong to that organization.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organization_id | string | Yes | Organization ID |
member_id | string | Yes | Member ID returned by a member query endpoint; this is not the user ID |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
role | string | Yes | org_admin: Organization Admin; org_member: Organization Member; org_config_admin: Config Admin; org_directory: Directory |
role cannot be omitted, null, or an empty string. The deprecated org_free_member and other roles are not supported. Setting a non-billable role again still triggers IAM entitlement reclamation and can retry an incomplete reclamation.
Success response (200 OK)
Returns the updated member details directly, using the same fields as the get member details endpoint.
Business restrictions
- At least one administrator (Organization Admin or Config Admin) must remain. Role transitions use the same IAM validation as the dashboard.
- Removed members cannot change roles; IAM rejects other unavailable member states.
- Role changes are prohibited while a Teams-to-Enterprise upgrade is pending activation.
- New assignments of Config Admin or Directory require the DirectoryRole rollout to be enabled for the organization; otherwise, the endpoint returns 403. Both are non-billable roles. Switching to them uses the IAM flow to release seats, remove billing entitlements, and revoke sessions. Switching back to a billable role requires an available seat; failures use the IAM compensation flow. Special-account restrictions match the dashboard.
Error responses
| Error code | HTTP status | Description |
|---|---|---|
BadRequest | 400 | Malformed request body, invalid member ID, or member state does not allow changes |
InvalidRole | 400 | Role is missing or unsupported |
OrgMemberAdminCountLacked | 400 | Cannot remove the last administrator role |
OrganizationPendingUpgrade | 400 | Organization is awaiting activation of a Teams-to-Enterprise upgrade |
Unauthorized | 401 | Missing or invalid credentials |
Forbidden | 403 | Credentials lack permission, or the new role is not enabled for the organization |
UserNotTeamMember | 404 | Member does not exist, was removed, or belongs to a different organization |
InternalError | 500 | Internal service error |
requestId, code, and message.
Request example
Update member name
PUT /v1/organizations/{organization_id}/members/{member_id}/profile
Update the current display name of an organization member.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organization_id | string | Yes | Organization ID bound to the API key |
member_id | string | Yes | Member ID from the id field returned by a member query endpoint; this is not userId |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | New display name; up to 100 characters |
Success response (200 OK)
Returns the updated member ID, associated user ID, and display name.
| Field | Type | Description |
|---|---|---|
memberId | string | Organization member ID updated by this request |
userId | string | User ID associated with this member |
name | string | Updated display name, with leading and trailing whitespace removed |
Business restrictions
- The target must be a member who has not been removed from this organization. Disabled members can still be renamed.
- Display names do not have to be unique. Submitting the current name also returns
200 OK. - Only the associated account’s display name is changed. The avatar, email, sign-in method, role, and seat are unchanged.
- When name content checks are enabled, names that explicitly violate the content policy are rejected.
Error responses
| Error code | HTTP status | Description |
|---|---|---|
BadRequest | 400 | Malformed request body, unknown fields, request body over 16 KiB, invalid ID, invalid name, or a name that violates the content policy |
Unauthorized | 401 | Missing, invalid, revoked, or expired credentials |
Forbidden | 403 | The path organization does not match the API key’s organization, or the credential type is not supported |
NotFound | 404 | Member does not exist, was removed, or belongs to a different organization |
InternalError | 500 | Internal service error |
requestId, code, and message.
Request example
Reset a member password
POST /v1/organizations/{organization_id}/members/resetPassword
Reset a member's password and revoke old sessions and tokens. Use the target organization's API key; service account credentials are not supported.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Member's actual login email; exact match |
newPassword | string | Yes | 8–72 ASCII characters; include uppercase, lowercase, a digit, and a special character. Only ! through ~ are allowed; spaces are not allowed. |
Request example
Success response (200 OK)
Error responses
| Error code | HTTP status | Description |
|---|---|---|
BadRequest | 400 | Invalid request or weak password |
OrgEmailDomainNotVerified | 403 | Email domain is not verified, enabled, or owned by this organization |
PasswordLoginUnsupported | 403 | Local password login is not available |
MemberNotFound | 404 | Member is missing, removed, or belongs to another organization |
SessionRevocationIncomplete | 409 | Password changed, but session revocation is incomplete |
PasswordResetResultUnknown | 503 | Final reset result is unknown |
requestId and contact support to verify the result.