Skip to content
View raw ↗

Using your backend

Once the SDK is set up, every capability you configured is available through the foundation instance. Each Configure page has a Use in your app section with the exact calls — here's the map.

CapabilityIn your appSDK
AuthenticationLogin, registration, sessionsfoundation.auth.*
EntitiesRead and write your datafoundation.db.*
Uploads & FilesFile uploadsfoundation.files.*
BillingPlans, usage, gatingfoundation.account.*, foundation.config.plans
IntegrationsConnect servicesfoundation.integration.*
BrandingApp name, themefoundation.config.*

Patterns that apply everywhere

  • Handle unauthenticated users before calling authenticated services.
  • Add loading, empty, success, and error states to every call.
  • Paginate lists that can grow (limit + cursor).
  • Read foundation.config for backend-provided theme, features, and plans instead of hard-coding them.

Reference