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

Checkout with PayPal

Please review your checkout details below. If everything is correct, place your order.

shipping method

customer information

payment info

items in order

Quantity:
1
  • :
$ 0.00 USD

order summary

Subtotal
$ 0.00 USD
Total
place order