Skip to main content

Reference: Users & Security

Queries​

OperationDescription
meCurrent authenticated user
sessionsActive user sessions
projectSettingsProject settings
serversAvailable servers
accountLinksLinked accounts
twoFactorRecoveryCodesCountNumber of unused recovery codes
passkeyCredentialsUser passkey credentials
socialProvidersAvailable social providers
socialProfilesLinked social profiles
balanceWithdrawalConfigWithdrawal settings for the current project
balanceWithdrawalHistoryCursor-based withdrawal history for the user

Registration and Authentication​

OperationInputResultDescription
registerEmailRegisterEmailInput!LoginResult!Register by email
confirmRegistrationCodeConfirmCodeInput!UserResult!Confirm code
loginLoginInput!LoginResult!Login by email or username
loginGameAccountGameAccountLoginInput!LoginResult!Login by game account
sendMagicCodeemail, gameServerId, utmOperationResult!Email login code
sendMagicLinkemail, gameServerId, utmOperationResult!Email magic link
loginMagicCodecode, email, gameServerId, utmLoginResult!Login by code
loginMagicLinktoken, email, gameServerId, utmLoginResult!Login by magic link
socialAuthUrlprovider: String!SocialAuthUrlResult!Social login URL
logout-OperationResult!Logout

Passwords and Accounts​

OperationInputResultDescription
sendPasswordRecoveryEmailemail: String!OperationResult!Recovery email
confirmPasswordRecoveryCodeConfirmRecoveryCodeInput!UserResult!Confirm recovery code
changeMasterPasswordchangeAccountPasswordInput!OperationResult!Master account password
changeGameAccountPasswordChangeGamePasswordInput!OperationResult!Game account password
forgotGameAccountPasswordaccountLogin, pinOperationResult!Reset game account password
createGameAccountCreateGameAccountInput!GameAccountResult!Create game account
bindGameAccountBindGameAccountInput!GameAccountResult!Bind game account
getGameCredentialsaccountLogin: String!GameCredentials!Game login credentials

Bindings and security​

OperationInputResultDescription
sendEmailBindCodeemail, pinOperationResult!Email binding code
bindEmailBindEmailInput!UserResult!Bind email
confirmEmailcode: String!UserResult!Confirm email
sendEmailConfirmCode-OperationResult!Send email confirmation code
socialBindUrlprovider: String!, pin: StringSocialAuthUrl!Linking confirmation URL
confirmSocialBindingcode: String!OperationResult!Complete linking
unbindTelegrampin: StringOperationResult!Unlink Telegram
unbindSocialprovider: String!, pin: StringOperationResult!Unlink social profile
togglePinShieldTogglePinInput!UserResult!PIN shield
recoverPinmethod: String!OperationResult!Recover PIN
changeServerserverId: Int!OperationResult!Change selected server
logoutSessionid: ID!OperationResult!Terminate session
logoutAllSessions-OperationResult!Terminate all sessions
beginTwoFactorEnrollmentmethod, currentPasswordTwoFactorChallenge!Start method enrollment
confirmTwoFactorEnrollmentchallengeToken, codeTwoFactorRecoveryCodesResult!Confirm enrollment
beginTwoFactorRemovalmethod, currentPasswordTwoFactorChallenge!Start method removal
confirmTwoFactorRemovalchallengeToken, codeOperationResult!Confirm removal
requestTwoFactorChallengeCodechallengeToken, methodOperationResult!Send or resend an email code
verifyTwoFactorChallengechallengeToken, method, codeLoginResult!Complete two-factor sign-in
beginTwoFactorRecoveryCodeReplacementmethod, currentPasswordTwoFactorChallenge!Start recovery-code replacement
confirmTwoFactorRecoveryCodeReplacementchallengeToken, codeTwoFactorRecoveryCodesResult!Return the new recovery-code set
passkeyRegOptions-JSON!Get Passkey registration options
passkeyRegisterattestation, namePasskeyCredential!Register a Passkey
passkeyAuthOptions-JSON!Get Passkey authentication options
loginPasskeyassertion, utmLoginResult!Login by passkey
deletePasskeycredentialId: ID!OperationResult!Delete passkey
accountLinks-[AccountLink!]!List linked accounts
requestAccountLinkRequestAccountLinkInput!OperationResult!Request a link
confirmAccountLinktargetAccountId: ID!, codeOperationResult!Confirm a link
revokeAccountLinktargetAccountId: ID!, pinOperationResult!Disconnect a link
switchAccountLinktargetAccountId: ID!LoginResult!Switch accounts

Withdrawals​

OperationInputResultDescription
createBalanceWithdrawalinput: CreateBalanceWithdrawalInput!BalanceWithdrawalResult!Create an idempotent withdrawal request