Logic functions and deploy
Editions: Open Source · Free Cloud · Pro
Logic functions run custom TypeScript/Deno-style handlers beside your schema. Drafts live in the system DB; deploy creates a callable revision.
Lifecycle
- Create / edit function source in Console (or sync drafts via CLI functions path).
- Test the draft.
- Deploy to mint
active_revisionon the destination Engine. - Invoke via GraphQL/HTTP triggers configured for that function.
CLI can sync function drafts between accounts and optionally deploy — it still does not publish schema. See CLI.
Tenant note
Function definitions are tenant-agnostic. Pass tenant_id / X-Apito-Tenant-ID at invoke/test time for SaaS.
Secrets
Callable REST secrets are Engine-minted per destination. Do not copy production secrets into Blueprints; CLI strips them on export unless explicitly included.