Capture leads from your website's contact form
Send form submissions straight into Compass via webhook, works with Squarespace, Webflow, custom HTML, anything.
Compass exposes a single webhook endpoint that any form- builder, site host, or custom backend can POST a lead to. See the webhook guide for the auth and payload shape.
Squarespace
Squarespace doesn't natively support arbitrary webhook actions on form submit. Two options:
- Zapier (recommended): "Squarespace → New Form Submission" trigger → "Webhooks by Zapier → POST" action. See the webhook guide.
- Squarespace's email-to-Zapier: forward form-submission emails to a Zapier "Email by Zapier" inbound address, parse the email, then POST to Compass. Slower but free.
Webflow
Webflow has a native webhook action on Form submit. Set the endpoint to https://getcompass.studio/api/webhooks/website-lead, add the Authorization header in the field mapping, and you're done.
Plain HTML / Netlify / Vercel
Add a serverless function that accepts your form's POST, adds the bearer auth header, and forwards to Compass. Sample Netlify Function:
exports.handler = async (event) => {
const data = JSON.parse(event.body);
const res = await fetch('https://getcompass.studio/api/webhooks/website-lead', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${process.env.COMPASS_WEBHOOK_SECRET}`,
},
body: JSON.stringify({
workspace_id: process.env.COMPASS_WORKSPACE_ID,
...data,
}),
});
return { statusCode: res.ok ? 200 : 500 };
};