referralSystemEnabled: boolean(true/false) -> Referral system in ProfileApi that awards bonuses to users if someone used their referral code during registration.
referralProperty:
referralCodeLength: int
referralStartBonus: int
registrationBonus: int
multifactorAuthentication:
multifactorAuthSystemEnabled: boolean(true/false) -> Multi factor authentication during login flow
registration:
emailRegistrationEnabled: boolean(true/false) -> Registration via email
phoneRegistrationEnabled: boolean(true/false) -> Registration via phone number
registrationViaInviteLinkEnabled: boolean(true/false) -> Registration Via Invite link FLOW
registrationWithVerificationEnabled: boolean(true/false) -> Default Registration FLOW
oauth2:
facebook: true -> Login via Facebook. If a user logs in for the first time, we automatically register him.
google: true -> Login via Google. If a user logs in for the first time, we automatically register him.
registrationWithVerificationEnabled: true
endpoint → /api/v1/registration
{
"userKey": "a.kinashchuk@gmail.com" or "+123456789" -> email or phone number
"referralCode": null -> OPTIONAL
}
{
"userKey": "+12345678" -> ONLY PHONE NUMBER!
"referralCode": null -> OPTIONAL
}
{
"userKey": "a.kinashchuk@gmail.com" -> ONLY EMAIL!
"referralCode": null -> OPTIONAL
}
{
"userKey": "a.kinashchuk@gmail.com" or "+123456789" -> email or phone number
}
Referral System is not present in Profile-API
endpoint: → /api/v1/token/registration/verification/{processingId}
processingId -> Processing after first step.
endpoint → /api/v1/registration/verification
Request body:
{
"processingId": "processingId", -> Processing after first step.
"oneTimeToken": "123456", -> Token that came to you on your userKey. (Valid token -> 6 digits)
"isMfaEnabled": true -> OPTIONAL!!!
}
if user sets the isMFAEnabled attribute to true, then MfaStep is enabled for the userKey under which he registers (mail or phone). And when logging in, he will need to request a token for verification.
{
"processingId": "processingId", -> Processing after first step.
"oneTimeToken": "{{123456}", -> Token that came to you on your userKey. (Valid token -> 6 digits)
}
endpoint → /api/v1/registration/confirmation
Request body:
{
"processingId": "processingId", -> Processing after first step.
"password": "Qwerty123-" -> Valid password
}
Http.OK(200)
registrationViaInviteLinkEnabled: true
endpoint → /api/v1/account/invite → private endpoint. This means this operation is only available to authorized users.
Request Body:
{
"email" : "new-user-by-invitation@gmail.com"
}
Response
Http.OK(200) -> A invite link will be sent to the email address you provided in your request.
endpoint → /api/v1/registration/link?token=
token = This is an encrypted token that stores information about who the invitation was sent to and the expiration time of this invitation.
endpoint: → /api/v1/token/registration/verification/{processingId}
processingId -> Processing after first step.
endpoint → /api/v1/registration/verification
Request body:
{
"processingId": "processingId", -> Processing after first step.
"oneTimeToken": "123456", -> Token that came to you on your userKey. (Valid token -> 6 digits)
"isMfaEnabled": true -> OPTIONAL!!!
}
if user sets the isMFAEnabled attribute to true, then MfaStep is enabled for the userKey under which he registers (mail or phone). And when logging in, he will need to request a token for verification.
{
"processingId": "processingId", -> Processing after first step.
"oneTimeToken": "{{123456}", -> Token that came to you on your userKey. (Valid token -> 6 digits)
}
endpoint → /api/v1/registration/confirmation
Request body:
{
"processingId": "processingId", -> Processing after first step.
"password": "Qwerty123-" -> Valid password
}
Http.OK(200)
Validation Patterns → https://docs.google.com/document/d/1uNrAO3Adzzkfxad9Hl0qZxTjUnYPmIa0Xr-lKP8Ej0E/edit?pli=1#heading=h.6yz86caf2j1r