# Elysia Enterprise API ## API Docs - Health [Health check](https://docs.omnapi.com/health-check-20997793e0.md): Check API service status - Health [Detailed health stats](https://docs.omnapi.com/detailed-health-stats-20997794e0.md): Get detailed system health information - I18n [Test i18n](https://docs.omnapi.com/test-i18n-20997795e0.md): Test i18n - I18n [Test i18n params](https://docs.omnapi.com/test-i18n-params-20997796e0.md): Test i18n params - I18n [Change language](https://docs.omnapi.com/change-language-20997797e0.md): Change language - I18n [Type safety](https://docs.omnapi.com/type-safety-20997798e0.md): Type safety - Cache [Cache health check](https://docs.omnapi.com/cache-health-check-20997799e0.md): Check cache system health and connectivity - Cache [Cache metrics](https://docs.omnapi.com/cache-metrics-20997800e0.md): Get cache performance metrics and statistics - Cache [Clear cache](https://docs.omnapi.com/clear-cache-20997801e0.md): Clear all cache or specific namespace - Cache [Test cache operations](https://docs.omnapi.com/test-cache-operations-20997802e0.md): Test basic cache operations (development only) - Better Auth [socialSignIn](https://docs.omnapi.com/socialsignin-20997803e0.md): Sign in with a social provider - Better Auth [/api/auth/get-session](https://docs.omnapi.com/apiauthget-session-20997804e0.md): Get the current session - Better Auth [/api/auth/sign-out](https://docs.omnapi.com/apiauthsign-out-20997805e0.md): Sign out the current user - Better Auth [/api/auth/sign-up/email](https://docs.omnapi.com/apiauthsign-upemail-20997806e0.md): Sign up a user using email and password - Better Auth [/api/auth/sign-in/email](https://docs.omnapi.com/apiauthsign-inemail-20997807e0.md): Sign in with email and password - Better Auth [/api/auth/forget-password](https://docs.omnapi.com/apiauthforget-password-20997808e0.md): Send a password reset email to the user - Better Auth [/api/auth/reset-password](https://docs.omnapi.com/apiauthreset-password-20997809e0.md): Reset the password for a user - Better Auth [/api/auth/verify-email](https://docs.omnapi.com/apiauthverify-email-20997810e0.md): Verify the email of the user - Better Auth [/api/auth/send-verification-email](https://docs.omnapi.com/apiauthsend-verification-email-20997811e0.md): Send a verification email to the user - Better Auth [/api/auth/change-email](https://docs.omnapi.com/apiauthchange-email-20997812e0.md): - Better Auth [/api/auth/change-password](https://docs.omnapi.com/apiauthchange-password-20997813e0.md): Change the password of the user - Better Auth [/api/auth/update-user](https://docs.omnapi.com/apiauthupdate-user-20997814e0.md): Update the current user - Better Auth [/api/auth/delete-user](https://docs.omnapi.com/apiauthdelete-user-20997815e0.md): Delete the user - Better Auth [/api/auth/reset-password/{token}](https://docs.omnapi.com/apiauthreset-passwordtoken-20997816e0.md): Redirects the user to the callback URL with the token - Better Auth [/api/auth/request-password-reset](https://docs.omnapi.com/apiauthrequest-password-reset-20997817e0.md): Send a password reset email to the user - Better Auth [/api/auth/list-sessions](https://docs.omnapi.com/apiauthlist-sessions-20997818e0.md): List all active sessions for the user - Better Auth [/api/auth/revoke-session](https://docs.omnapi.com/apiauthrevoke-session-20997819e0.md): Revoke a single session - Better Auth [/api/auth/revoke-sessions](https://docs.omnapi.com/apiauthrevoke-sessions-20997820e0.md): Revoke all sessions for the user - Better Auth [/api/auth/revoke-other-sessions](https://docs.omnapi.com/apiauthrevoke-other-sessions-20997821e0.md): Revoke all other sessions for the user except the current one - Better Auth [/api/auth/link-social](https://docs.omnapi.com/apiauthlink-social-20997822e0.md): Link a social account to the user - Better Auth [/api/auth/list-accounts](https://docs.omnapi.com/apiauthlist-accounts-20997823e0.md): List all accounts linked to the user - Better Auth [/api/auth/delete-user/callback](https://docs.omnapi.com/apiauthdelete-usercallback-20997824e0.md): Callback to complete user deletion with verification token - Better Auth [/api/auth/unlink-account](https://docs.omnapi.com/apiauthunlink-account-20997825e0.md): Unlink an account - Better Auth [/api/auth/refresh-token](https://docs.omnapi.com/apiauthrefresh-token-20997826e0.md): Refresh the access token using a refresh token - Better Auth [/api/auth/get-access-token](https://docs.omnapi.com/apiauthget-access-token-20997827e0.md): Get a valid access token, doing a refresh if needed - Better Auth [/api/auth/account-info](https://docs.omnapi.com/apiauthaccount-info-20997828e0.md): Get the account info provided by the provider - Better Auth [/api/auth/ok](https://docs.omnapi.com/apiauthok-20997829e0.md): Check if the API is working - Better Auth [/api/auth/error](https://docs.omnapi.com/apiautherror-20997830e0.md): Displays an error page - Better Auth [/api/auth/two-factor/get-totp-uri](https://docs.omnapi.com/apiauthtwo-factorget-totp-uri-20997831e0.md): Use this endpoint to get the TOTP URI - Better Auth [/api/auth/two-factor/verify-totp](https://docs.omnapi.com/apiauthtwo-factorverify-totp-20997832e0.md): Verify two factor TOTP - Better Auth [/api/auth/two-factor/send-otp](https://docs.omnapi.com/apiauthtwo-factorsend-otp-20997833e0.md): Send two factor OTP to the user - Better Auth [/api/auth/two-factor/verify-otp](https://docs.omnapi.com/apiauthtwo-factorverify-otp-20997834e0.md): Verify two factor OTP - Better Auth [/api/auth/two-factor/verify-backup-code](https://docs.omnapi.com/apiauthtwo-factorverify-backup-code-20997835e0.md): Verify a backup code for two-factor authentication - Better Auth [/api/auth/two-factor/generate-backup-codes](https://docs.omnapi.com/apiauthtwo-factorgenerate-backup-codes-20997836e0.md): Generate new backup codes for two-factor authentication - Better Auth [/api/auth/two-factor/enable](https://docs.omnapi.com/apiauthtwo-factorenable-20997837e0.md): Use this endpoint to enable two factor authentication. This will generate a TOTP URI and backup codes. Once the user verifies the TOTP URI, the two factor authentication will be enabled. - Better Auth [/api/auth/two-factor/disable](https://docs.omnapi.com/apiauthtwo-factordisable-20997838e0.md): Use this endpoint to disable two factor authentication. - Better Auth [/api/auth/one-tap/callback](https://docs.omnapi.com/apiauthone-tapcallback-20997839e0.md): Use this endpoint to authenticate with Google One Tap - Better Auth [/api/auth/sign-in/phone-number](https://docs.omnapi.com/apiauthsign-inphone-number-20997840e0.md): Use this endpoint to sign in with phone number - Better Auth [/api/auth/phone-number/send-otp](https://docs.omnapi.com/apiauthphone-numbersend-otp-20997841e0.md): Use this endpoint to send OTP to phone number - Better Auth [/api/auth/phone-number/verify](https://docs.omnapi.com/apiauthphone-numberverify-20997842e0.md): Use this endpoint to verify phone number - Better Auth [/api/auth/phone-number/forget-password](https://docs.omnapi.com/apiauthphone-numberforget-password-20997843e0.md): Request OTP for password reset via phone number - Better Auth [/api/auth/phone-number/request-password-reset](https://docs.omnapi.com/apiauthphone-numberrequest-password-reset-20997844e0.md): Request OTP for password reset via phone number - Better Auth [/api/auth/phone-number/reset-password](https://docs.omnapi.com/apiauthphone-numberreset-password-20997845e0.md): Reset password using phone number OTP - Better Auth [setRole](https://docs.omnapi.com/setrole-20997846e0.md): Set the role of a user - Better Auth [createUser](https://docs.omnapi.com/createuser-20997847e0.md): Create a new user - Better Auth [updateUser](https://docs.omnapi.com/updateuser-20997848e0.md): Update a user's details - Better Auth [listUsers](https://docs.omnapi.com/listusers-20997849e0.md): List users - Better Auth [listUserSessions](https://docs.omnapi.com/listusersessions-20997850e0.md): List user sessions - Better Auth [unbanUser](https://docs.omnapi.com/unbanuser-20997851e0.md): Unban a user - Better Auth [banUser](https://docs.omnapi.com/banuser-20997852e0.md): Ban a user - Better Auth [impersonateUser](https://docs.omnapi.com/impersonateuser-20997853e0.md): Impersonate a user - Better Auth [/api/auth/admin/stop-impersonating](https://docs.omnapi.com/apiauthadminstop-impersonating-20997854e0.md): - Better Auth [revokeUserSession](https://docs.omnapi.com/revokeusersession-20997855e0.md): Revoke a user session - Better Auth [revokeUserSessions](https://docs.omnapi.com/revokeusersessions-20997856e0.md): Revoke all user sessions - Better Auth [removeUser](https://docs.omnapi.com/removeuser-20997857e0.md): Delete a user and all their sessions and accounts. Cannot be undone. - Better Auth [setUserPassword](https://docs.omnapi.com/setuserpassword-20997858e0.md): Set a user's password - Better Auth [/api/auth/admin/has-permission](https://docs.omnapi.com/apiauthadminhas-permission-20997859e0.md): Check if the user has permission - Better Auth [/api/auth/organization/create](https://docs.omnapi.com/apiauthorganizationcreate-20997860e0.md): Create an organization - Better Auth [/api/auth/organization/update](https://docs.omnapi.com/apiauthorganizationupdate-20997861e0.md): Update an organization - Better Auth [/api/auth/organization/delete](https://docs.omnapi.com/apiauthorganizationdelete-20997862e0.md): Delete an organization - Better Auth [/api/auth/organization/set-active](https://docs.omnapi.com/apiauthorganizationset-active-20997863e0.md): Set the active organization - Better Auth [/api/auth/organization/get-full-organization](https://docs.omnapi.com/apiauthorganizationget-full-organization-20997864e0.md): Get the full organization - Better Auth [/api/auth/organization/list](https://docs.omnapi.com/apiauthorganizationlist-20997865e0.md): List all organizations - Better Auth [/api/auth/organization/invite-member](https://docs.omnapi.com/apiauthorganizationinvite-member-20997866e0.md): Invite a user to an organization - Better Auth [/api/auth/organization/cancel-invitation](https://docs.omnapi.com/apiauthorganizationcancel-invitation-20997867e0.md): - Better Auth [/api/auth/organization/accept-invitation](https://docs.omnapi.com/apiauthorganizationaccept-invitation-20997868e0.md): Accept an invitation to an organization - Better Auth [/api/auth/organization/get-invitation](https://docs.omnapi.com/apiauthorganizationget-invitation-20997869e0.md): Get an invitation by ID - Better Auth [/api/auth/organization/reject-invitation](https://docs.omnapi.com/apiauthorganizationreject-invitation-20997870e0.md): Reject an invitation to an organization - Better Auth [/api/auth/organization/list-invitations](https://docs.omnapi.com/apiauthorganizationlist-invitations-20997871e0.md): - Better Auth [/api/auth/organization/get-active-member](https://docs.omnapi.com/apiauthorganizationget-active-member-20997872e0.md): Get the member details of the active organization - Better Auth [/api/auth/organization/check-slug](https://docs.omnapi.com/apiauthorganizationcheck-slug-20997873e0.md): - Better Auth [/api/auth/organization/remove-member](https://docs.omnapi.com/apiauthorganizationremove-member-20997874e0.md): Remove a member from an organization - Better Auth [/api/auth/organization/update-member-role](https://docs.omnapi.com/apiauthorganizationupdate-member-role-20997875e0.md): Update the role of a member in an organization - Better Auth [/api/auth/organization/leave](https://docs.omnapi.com/apiauthorganizationleave-20997876e0.md): - Better Auth [/api/auth/organization/list-user-invitations](https://docs.omnapi.com/apiauthorganizationlist-user-invitations-20997877e0.md): - Better Auth [/api/auth/organization/list-members](https://docs.omnapi.com/apiauthorganizationlist-members-20997878e0.md): - Better Auth [/api/auth/organization/has-permission](https://docs.omnapi.com/apiauthorganizationhas-permission-20997879e0.md): Check if the user has permission ## Schemas - Schemas [User](https://docs.omnapi.com/user-9132052d0.md): - Schemas [Session](https://docs.omnapi.com/session-9132053d0.md): - Schemas [Account](https://docs.omnapi.com/account-9132054d0.md): - Schemas [Verification](https://docs.omnapi.com/verification-9132055d0.md): - Schemas [TwoFactor](https://docs.omnapi.com/twofactor-9132056d0.md): - Schemas [Organization](https://docs.omnapi.com/organization-9132057d0.md): - Schemas [Member](https://docs.omnapi.com/member-9132058d0.md): - Schemas [Invitation](https://docs.omnapi.com/invitation-9132059d0.md):