Build your first Function
This walkthrough creates a small Function with a typed input and tests its saved development version.

Create the Function
- Select Functions and New Function.
- Set the name to
Customer greetingand slug tocustomer-greeting. - Use this input schema:
json
{
"type": "object",
"properties": { "name": { "type": "string", "minLength": 1 } },
"required": ["name"],
"additionalProperties": false
}- Enter the handler:
ts
export default async function handler(ctx, input) {
ctx.logger.info("Creating greeting", { requestId: ctx.invocation.requestId });
return { greeting: `Hello, ${input.name}!` };
}- Save, then validate the Function.
Test the saved version
Open the test panel, choose a Development endpoint context, and enter:
json
{ "name": "Ada" }Run the test and confirm the output contains Hello, Ada!. Review the log entry, duration, request ID, and execution record.