const WebflowClient = require('webflow-api'); // Import Webflow API client async function createWebhook(req) { const accessToken = req.accessToken; // Get access token from the request const siteId = "6516ebaba028669cf36f6848"; // Replace with your actual Site ID const webflow = new WebflowClient({ accessToken }); // Initialize Webflow client try { const webhook = await webflow.webhooks.create(siteId, { triggerType: 'form_submission', // Trigger type for the webhook url: "https://n8n.srv897513.hstgr.cloud/webhook/a07ab151-3c09-4c7b-8ce6-13cbf5fdc445" // Replace with your webhook URL }); console.log('Webhook created successfully:', webhook); return webhook; } catch (error) { console.error('Error creating webhook:', error.message); } } createWebhook(req); // Moved function call outside the function definition

Order Confirmation

Thanks for placing your order. You will be receiving more information via email.

customer information

shipping method

payment info

/

items in order

Quantity:
1
  • :
$ 0.00 USD

order summary

Subtotal
$ 0.00 USD
Total