Create a new serverless function in draft status. The function will be saved but not deployed to the runtime platform.
After creating a function:
Choose function_type based on your deployment requirements:
cloudflare_worker: Fast global edge deployment with standard JavaScriptsupabase_function: Deno runtime with built-in Supabase clientThe function slug will be auto-generated from the name if not provided (lowercase with hyphens).
Documentation Index
Fetch the complete documentation index at: https://docs.kapso.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request to create a new serverless function. The function will be saved in draft status. Use POST /functions/{id}/deploy to deploy it to the runtime platform.
Function created successfully
Single function response
Serverless function configuration. Functions are custom JavaScript code that runs on-demand in response to API invocations. Deploy functions to either Cloudflare Workers (global edge network) or Supabase Edge Functions (Deno runtime).