Reference: Users & Security
Queries
| Operation | Description |
|---|---|
me | Current authenticated user |
sessions | Active user sessions |
projectSettings | Project settings |
servers | Available servers |
accountLinks | Linked accounts |
twoFactorRecoveryCodesCount | Number of unused recovery codes |
passkeyCredentials | User passkey credentials |
socialProviders | Available social providers |
socialProfiles | Linked social profiles |
balanceWithdrawalConfig | Withdrawal settings for the current project |
balanceWithdrawalHistory | Cursor-based withdrawal history for the user |
Registration and Authentication
| Operation | Input | Result | Description |
|---|---|---|---|
registerEmail | RegisterEmailInput! | LoginResult! | Register by email |
confirmRegistrationCode | ConfirmCodeInput! | UserResult! | Confirm code |
login | LoginInput! | LoginResult! | Login by email or username |
loginGameAccount | GameAccountLoginInput! | LoginResult! | Login by game account |
sendMagicCode | email, gameServerId, utm | OperationResult! | Email login code |
sendMagicLink | email, gameServerId, utm | OperationResult! | Email magic link |
loginMagicCode | code, email, gameServerId, utm | LoginResult! | Login by code |
loginMagicLink | token, email, gameServerId, utm | LoginResult! | Login by magic link |
socialAuthUrl | provider: String! | SocialAuthUrlResult! | Social login URL |
logout | - | OperationResult! | Logout |
Passwords and Accounts
| Operation | Input | Result | Description |
|---|---|---|---|
sendPasswordRecoveryEmail | email: String! | OperationResult! | Recovery email |
confirmPasswordRecoveryCode | ConfirmRecoveryCodeInput! | UserResult! | Confirm recovery code |
changeMasterPassword | changeAccountPasswordInput! | OperationResult! | Master account password |
changeGameAccountPassword | ChangeGamePasswordInput! | OperationResult! | Game account password |
forgotGameAccountPassword | accountLogin, pin | OperationResult! | Reset game account password |
createGameAccount | CreateGameAccountInput! | GameAccountResult! | Create game account |
bindGameAccount | BindGameAccountInput! | GameAccountResult! | Bind game account |
getGameCredentials | accountLogin: String! | GameCredentials! | Game login credentials |
Bindings and security
| Operation | Input | Result | Description |
|---|---|---|---|
sendEmailBindCode | email, pin | OperationResult! | Email binding code |
bindEmail | BindEmailInput! | UserResult! | Bind email |
confirmEmail | code: String! | UserResult! | Confirm email |
sendEmailConfirmCode | - | OperationResult! | Send email confirmation code |
socialBindUrl | provider: String!, pin: String | SocialAuthUrl! | Linking confirmation URL |
confirmSocialBinding | code: String! | OperationResult! | Complete linking |
unbindTelegram | pin: String | OperationResult! | Unlink Telegram |
unbindSocial | provider: String!, pin: String | OperationResult! | Unlink social profile |
togglePinShield | TogglePinInput! | UserResult! | PIN shield |
recoverPin | method: String! | OperationResult! | Recover PIN |
changeServer | serverId: Int! | OperationResult! | Change selected server |
logoutSession | id: ID! | OperationResult! | Terminate session |
logoutAllSessions | - | OperationResult! | Terminate all sessions |
beginTwoFactorEnrollment | method, currentPassword | TwoFactorChallenge! | Start method enrollment |
confirmTwoFactorEnrollment | challengeToken, code | TwoFactorRecoveryCodesResult! | Confirm enrollment |
beginTwoFactorRemoval | method, currentPassword | TwoFactorChallenge! | Start method removal |
confirmTwoFactorRemoval | challengeToken, code | OperationResult! | Confirm removal |
requestTwoFactorChallengeCode | challengeToken, method | OperationResult! | Send or resend an email code |
verifyTwoFactorChallenge | challengeToken, method, code | LoginResult! | Complete two-factor sign-in |
beginTwoFactorRecoveryCodeReplacement | method, currentPassword | TwoFactorChallenge! | Start recovery-code replacement |
confirmTwoFactorRecoveryCodeReplacement | challengeToken, code | TwoFactorRecoveryCodesResult! | Return the new recovery-code set |
passkeyRegOptions | - | JSON! | Get Passkey registration options |
passkeyRegister | attestation, name | PasskeyCredential! | Register a Passkey |
passkeyAuthOptions | - | JSON! | Get Passkey authentication options |
loginPasskey | assertion, utm | LoginResult! | Login by passkey |
deletePasskey | credentialId: ID! | OperationResult! | Delete passkey |
accountLinks | - | [AccountLink!]! | List linked accounts |
requestAccountLink | RequestAccountLinkInput! | OperationResult! | Request a link |
confirmAccountLink | targetAccountId: ID!, code | OperationResult! | Confirm a link |
revokeAccountLink | targetAccountId: ID!, pin | OperationResult! | Disconnect a link |
switchAccountLink | targetAccountId: ID! | LoginResult! | Switch accounts |
Withdrawals
| Operation | Input | Result | Description |
|---|---|---|---|
createBalanceWithdrawal | input: CreateBalanceWithdrawalInput! | BalanceWithdrawalResult! | Create an idempotent withdrawal request |