Learn how to ingest your first submission using Deno Deploy
import { serve } from "https://deno.land/[email protected]/http/server.ts"; const ENDPOINT_URL = "https://api.formizee.com/v1/f/enp_123456"; const handler = async (_request: Request): Promise<Response> => { 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", }, }); }; serve(handler);
Save & Deploy
Was this page helpful?