Adds a member to an organization using an invite token.
owner
, admin
, developer
, operator
, viewer
. Defaults to viewer
.success
if successful, error
if not.error
if not successful.UNAUTHORIZED
: The user is not authenticated or lacks sufficient permissions.INSUFFICIENT_PERMISSIONS_TO_ADD_MEMBERS
: The user does not have owner
or admin
role to add members.ORGANIZATION_NOT_FOUND
: The specified organization does not exist.INVALID_ROLE
: The provided role is invalid.ORGANIZATION_MEMBER_LIMIT_REACHED
: The organization has reached its member limit.INVALID_OR_EXPIRED_TOKEN
: The provided invite token is invalid or expired.USER_ALREADY_IN_ORGANIZATION
: The user is already a member of the organization.CODE_MUST_BE_STRING
: The provided code is not a string.