Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
application/json
Display name for the function
Minimum length:
1
Example:
"Hello World Function"
JavaScript/TypeScript code that exports an async function
Minimum length:
1
Example:
"export default async function(request) {\n const { name = 'World' } = await request.json();\n return new Response(\n JSON.stringify({ message:
Hello, ${name}!}),\n { headers: { 'Content-Type': 'application/json' } }\n );\n}\n"
URL-friendly identifier (auto-generated from name if not provided)
Example:
"hello-world"
Description of what the function does
Example:
"Returns a personalized greeting message"
Initial status (draft or active/deployed)
Available options:
draft
, active