getUserSettings
Get the current user’s settings including default currency and preferences.Parameters
No parameters required.Response
Returns the user’s settings object.User ID
Default currency code for the user
Settings creation timestamp
Last update timestamp
updateCurrency
Update the user’s default currency.Parameters
New default currency code (e.g., “USD”, “EUR”, “GBP”)
Response
Returns the updated user settings object.updateInfo
Update user profile information.Parameters
User’s display name (cannot be empty)
Profile image as a File object or URL string. If a File is provided, it will be uploaded to blob storage.
Response
Returns
true if the update was successfulupdatePassword
Change the user’s password.Parameters
Current password (cannot be empty)
New password (must meet password policy requirements)
The new password must meet the application’s password policy requirements.
Response
Returns
true if the password was changed successfullyverifyEmail
Send a verification email to the user’s email address.Parameters
No parameters required. Uses the authenticated user’s email.Response
Returns
true if the verification email was sent successfullylistAccounts
List all linked authentication accounts for the user.Parameters
No parameters required.Response
Returns an array of linked account objects.Array of linked account information
Authentication provider ID (e.g., “google”, “custom-oauth-provider”)
Account identifier with the provider
When the account was linked
linkAccount
Link a new authentication provider to the user’s account.Parameters
Provider to link:
google or custom-oauth-providerResponse
Returns
true if linking was initiated successfullyOAuth redirect URL for completing the linking process (if applicable)
After calling this endpoint, redirect the user to the provided
redirectUrl to complete the OAuth flow. They will be redirected back to the account settings page.unlinkAccount
Unlink an authentication provider from the user’s account.Parameters
Provider to unlink:
google or custom-oauth-providerResponse
Returns
true if the account was unlinked successfullydeleteAccount
Permanently delete the user’s account and all associated data.Parameters
User’s password (required for accounts with email/password credentials)
Response
Returns
true if the account was deleted successfullyThe delete account feature must be enabled via feature flag. If disabled, users should contact support to delete their account.