/functions/v1 endpoint — all with credentials injected by Naive.
Requires a fullstack app (
naive.apps.create({ name, type: "fullstack" })).Two ways to use it
{ appId } to auto-resolve the user’s single fullstack app; pass it when they own several.
List & invoke
Deploy
Two Management API shapes work through the apps Supabase proxy (CLI:naive apps supabase):
Upstream
POST …/functions/deploy is multipart-only. The proxy accepts agent-friendly
JSON files: [{ name, content }] and builds one multipart file part per source
(plus metadata). Create via POST …/functions still works when body (source string)
is present; omitting it injects a hello stub so create succeeds.REST
/v1/apps/<app-id>/…; an end-user’s project uses /v1/users/<user-id>/apps/<app-id>/….
See the Edge Functions API reference.
Billing
Free at the Naive layer — no per-operation credit cost. Account Kits can gate thefunctions primitive per user.