Skip to docs content
Logic functions and deploy
Open Source
Free Cloud
Pro
Updated 2026-08-12

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

  1. Create / edit function source in Console (or sync drafts via CLI functions path).
  2. Test the draft.
  3. Deploy to mint active_revision on the destination Engine.
  4. 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.

Next