changePassword
Mutation — returns LoginResult.
Change the current user’s password to the password provided. Note that the means for making
sure a user typed the password properly are out of the scope of this method and left up
to the user interface calling this function.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
oldPassword | String! | Yes | The old password of the user. |
newPassword | String! | Yes | The new password to use for the user’s account. |
confirm2Fa
Mutation — returns LoginResult.
User submitting the 2FA code in order to login.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
code | String! | Yes | The 2FA code that was sent to the user by email. |
sessionId | String! | Yes | The id of the session to confirm 2FA for. |
timestamp | Int | No | The timestamp of the confirmation. |
email | EmailAddress! | Yes | The email of the user that the confirmation is being made for. |
confirmChangePassword2Fa
Mutation — returns LoginResult.
Confirm the 2FA code for the password change.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
code | String! | Yes | The 2fa code to confirm the changing of the old password to new password. |
confirmPasswordReset
Mutation — returns PasswordResetResult.
Completes the forgotten password flow.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
passwordResetParams | PasswordResetParams! | Yes | The parameters for resetting the password. |
disable2Fa
Mutation — returns TwoFactorAuthResult.
Disable 2FA on the currently logged in user’s account. This mutation will do nothing if
the user does not have 2FA already enabled.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
password | String | No | User’s password to disable 2FA |
enable2Fa
Mutation — returns TwoFactorAuthResult.
Enable 2FA on the currently logged in user’s account.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
password | String | No | User’s password to enable 2FA |
forgotPassword
Mutation — returns ForgotPasswordResult.
Invoked to initiate the forgotten password flow.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
email | EmailAddress! | Yes | — |
login
Mutation — returns LoginResult.
Login to the platform using the credentials. Please note that if the user has 2FA enabled
the actual login will occur when the 2FA code is confirmed in another call to the API.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
credentials | LoginCredentials! | Yes | The credentials to use to log into the system. |
logout
Mutation — returns LogoutResult.
Logout of the platform on a specific device, invalidating all tokens.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
deviceInfo | DeviceInfo | No | The information on the device to log out. |
newToken
Mutation — returns LoginResult.
Create a new authorization token from the user’s refresh token.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
refreshToken | String! | Yes | — |
register
Mutation — returns RegisterUserResult.
New user registration based on JSON document
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
input | UserRegistrationInputV2! | Yes | — |
resend2Fa
Mutation — returns TwoFactorAuthResult.
Request that another 2FA code be sent when apparently the user didnt get the code.
Parameters
| Name | GraphQL type | Required | Description |
|---|---|---|---|
sessionId | String! | Yes | The session id to resend the code for. |
email | EmailAddress! | Yes | The user id to resend the code for. The system will find the email for the user. |
resendChangePassword2Fa
Mutation — returns TwoFactorAuthResult.
Request that another 2FA code for password reset when the user didn’t receive or use the previous 2fa code.
Example
send2Fa
Mutation — returns TwoFactorAuthResult.
Request a new 2FA code providing the reason - i.e. updating user profile for example.
The reasons are enums defined above.
Example

