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 (see below).

AI Gateway (base44.aiGateway.*)

Build code agents (agent loops with tools) on Base44’s AI gateway. Model automatic by default; no streaming. 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.