Prerequisites

To get the most out of this guide, you’ll need to:

1. Create a AWS Lambda function

Go to aws.amazon.com and create a new Lambda function using the Node 22.x runtime.

2. Edit the handler function

Paste the following code into the browser editor and update the ENDPOINT_URL.

index.mjs
const ENDPOINT_URL = "https://api.formizee.com/v1/f/enp_123456";

export const handler = async(_event) => {
	const res = await fetch(ENDPOINT_URL, {
		method: "POST",
		headers: {
			"Content-Type": "application/json",
		},
		body: JSON.stringify({
			name: "example",
			email: "[email protected]",
		}),
	});
	const data = await res.json();
	return new Response(JSON.stringify(data), {
		headers: {
			"Content-Type": "application/json",
		},
	});
};

3. Deploy and ingest submissions

Click on Deploy and then Test at the left of the screen.

4. Try it yourself

Formizee AWS Lambda Example

See the full source code