Skip to main content
This page is part of an AI coding agent skill and is written for agents, not humans. For the human-readable Base44 docs, see the developer documentation.

Base44 SDK Quick Reference

Compact method signatures for all SDK modules. Verify against this before writing code.

Auth (base44.auth.*)


Entities (base44.entities.EntityName.*)

Sort: Use SortField<T>: -fieldName for descending (e.g., -created_date). Max 5,000 per request for list/filter.

Functions (base44.functions.*)

Backend: Use base44.asServiceRole.functions.invoke() for admin access.

Integrations (base44.integrations.Core.*)

AI surface: single call, no tools → InvokeLLM; chat product for users → base44.agents; task-with-tools agent (code) → aiGateway; one default image → GenerateImage; simple text-to-video → GenerateVideo; multiple/configured/edited images or advanced video → aiGateway; text-to-speech → browser/Core/gateway selection; classify/score/route → aiGateway Jev (see below).

AI Gateway (base44.asServiceRole.aiGateway.*)

  • openai (default): chat completions for code agents (model automatic by default), images.generate / images.edit, async videos.create / videos.retrieve (specific model required), and audio.speech.create (completed audio bytes; see speech guide).
  • typesafe: experimental_evaluate (ai 7.0.105+) with typesafe.evaluationModel("jev") for classify/score/route decisions.
  • Set maxRetries: 0 on image, video, speech, and evaluation calls. See ai-gateway.md.

Custom Integrations (base44.integrations.custom.*)

operationId format: "method:/path" (e.g., "get:/contacts", "post:/users/{id}")

Analytics (base44.analytics.*)


App Logs (base44.appLogs.*)


Users (base44.users.*)


Service Role Connectors (base44.asServiceRole.connectors.*)

Backend only, service role required. App-scoped (shared account).
Types: Run npx base44 connectors list-available to see all available integration types.

SSO (base44.asServiceRole.sso.*)

Backend only, service role required.
getIdToken returns the current app user’s OIDC ID token as a raw string, and the service-role client must act on behalf of the same user.

Service Role Access

Backend functions only. Prefix any module with asServiceRole for admin access:

Backend Function Template


Client Initialization (External Apps)


TypeScript type registries

For typed entities, function names, and agent names (autocomplete and type checking), the Base44 CLI generates types and wires them into your project. Use the base44-cli skill for how to generate types.