You need at least one event type in Cal.com before you can create a webhook. If you already have event types set up, skip straight to step 2.
1
Create your event types
In Cal.com, go to Event Types and create the meeting durations you want to offer — for example a 15-minute discovery call and a 30-minute survey call.
- Set the title, duration, and description that visitors will see on your booking page.
- Connect your calendar so Cal.com can check availability.
- You can come back and add more event types later without changing the webhook.
2
Open Developer → Webhooks
In Cal.com, open your account settings and go to Developer → Webhooks. Click New webhook.
Webhooks in Cal.com fire at the account level, so a single webhook covers all your event types.
3
Copy the subscriber URL from the plugin
In WordPress admin, go to Solar leads → Settings → Integrations. Copy the Cal.com webhook endpoint shown there and paste it into the Subscriber URL field in Cal.com.
https://example.co.uk/wp-json/solar-capture/v1/calcom-webhook
The URL above uses a placeholder domain. Copy the real one from your plugin settings — it always matches your WordPress home URL.
4
Create a shared secret
Generate a long, random string and paste it into the Secret field in Cal.com. You will also need to paste this same string into the plugin in the next step.
- Use a password manager,
openssl rand -base64 32, or any random string generator.
- Keep it private — anyone with this secret can send forged webhooks.
- Minimum recommended length: 32 characters.
Important: you must set the same secret in both Cal.com and the plugin. If they differ, all webhook calls will be rejected.
5
Select the event triggers
Enable the triggers you want Solar Capture to respond to:
- BOOKING_CREATED — marks the lead as booked when an appointment is made.
- BOOKING_RESCHEDULED — updates the booking timestamp if the visitor reschedules.
- BOOKING_CANCELLED — records the cancellation against the lead.
You can leave other triggers disabled unless you need them.
6
Enable and save the webhook
Toggle Active on and click Save. Cal.com will immediately begin sending events to the subscriber URL.