Skip to main content
POST
Create function

Authorizations

X-API-Key
string
header
required

Body

application/json

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
object
required

Response

Function created successfully

Single function response

data
object
required

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).