Vai al contenuto principale
Beyond data management, the Base44 SDK provides modules for authentication, integrations, custom backend functions, and more. This guide covers common patterns for working with these features.

Authentication

The auth module provides methods for working with user authentication. The most common use case is getting information about the currently authenticated user.

Core integrations

Base44 provides built-in integrations for common tasks like working with AI, sending emails, and handling files. Access these through the integrations.Core module.

Backend functions

The functions module lets you invoke custom backend functions defined in your app. Pass any data your function needs as parameters.

Error handling

All SDK errors are instances of Base44Error, which includes the HTTP status code and error details. Use this to handle different error scenarios gracefully.

Retry when the database is busy

When Base44’s database is under heavy load, a request can fail with status 503 and the code database_unavailable. The response’s Retry-After header asks you to wait 5 seconds before you send it again, and the SDK doesn’t retry for you. Reads are safe to retry. A write might have gone through before the error, so before you retry a create, check whether the record already exists.

See more

Base44 client

Work with the client in different contexts

auth module

Complete authentication API reference

integrations module

Complete integrations API reference

functions module

Complete functions API reference