Integrations

Webhooks

Webhooks send an HTTP POST to a URL you choose when something happens in SavvyCal, such as when someone books, reschedules, or cancels an event. This is useful if you need to build custom automations with code. Webhooks work on every plan.

Creating a webhook

  1. Go to Settings > Integrations.
  2. Under Automation, find Webhooks and click the + button.
  3. Enter your endpoint's URL, including https://, and click Save.

Your webhook starts getting payloads right away.

What does a webhook get sent?

A webhook gets a payload when an event is:

  • Booked, requested (when it needs approval), approved, or declined
  • Rescheduled, changed, or canceled
  • Waiting for payment, paid, or expired without payment
  • Joined, rescheduled, or canceled by one person on a group event

It also gets a payload when someone responds to one of your polls, and when a workflow runs a Send a webhook or Trigger a zap action. See Triggering zaps and webhooks from workflows.

For the exact event type names and what each payload contains, see Event types in the developer docs.

Whose events are included?

A webhook belongs to you, not to a team. It gets payloads for:

  • Events you're on, as the organizer or as an attendee with a SavvyCal account
  • Every event on teams where you're an owner or admin
  • Every event in your organization, if you're an organization owner or admin
  • Responses to polls you own

Teammates who want their own payloads can add their own webhook. See Team and organization roles.

Consuming webhooks

Your endpoint should respond with a 2xx status code, such as 200 OK, as soon as you receive a payload from SavvyCal. We recommend using a background queue to process incoming payloads to ensure your service responds speedily. SavvyCal doesn't follow redirects, so a 3xx response counts as a failed delivery.

Your URL's domain must point to a public IP address. SavvyCal doesn't deliver to private, loopback, or other reserved addresses, and stops trying a payload when the domain points to one.

Each payload is signed, so you can check that it came from SavvyCal. See Where do I find the signing secret?

If you'd like to test out receiving payloads, RequestBin is a handy little service you can use.

Where do I find the signing secret?

Each webhook has its own signing secret. To copy it, go to Settings > Integrations and click the lock icon (Copy signing secret) next to the webhook under Webhooks.

To check a payload's signature in your code, see Securing webhooks.

How do I regenerate the secret?

If your secret has leaked, or you want to rotate it:

  1. Go to Settings > Integrations.
  2. Open the menu next to the webhook under Webhooks and choose Regenerate secret.
  3. Click Yes, regenerate the secret.

Every request from then on is signed with the new secret, including retries of payloads that already failed. Update the secret in your code right away. You can't undo this.

How do I see what was sent?

Go to Settings > Integrations, open the menu next to the webhook under Webhooks, and choose View logs.

The Webhook Logs page lists every delivery attempt, newest first, with its status code, event type, and time. A green status means your endpoint answered with a 2xx code. Err means SavvyCal couldn't connect, for example because the request timed out, the domain didn't resolve, or the domain points to a private address.

Click an attempt to see the request payload, plus your endpoint's Content-Type and Content-Length response headers and the first 1 KB of its response body.

What happens if delivery fails?

If your endpoint doesn't respond with a 2xx status code, or SavvyCal can't connect, it tries again with longer and longer waits in between, up to 20 attempts in all. Each attempt shows up in the logs.

There's no button to resend a payload after the last attempt fails.

How do I change or delete a webhook?

You can't edit a webhook's URL. To point it somewhere else, add a new webhook with the new URL, then delete the old one. The new webhook gets a new signing secret.

To delete a webhook, go to Settings > Integrations, open the menu next to the webhook under Webhooks, and choose Delete. It's deleted right away, without a confirmation step.

Zapier's connection to SavvyCal is also a webhook, so it shows up in your Webhooks list when you turn on a zap. Don't delete it, or your zaps will stop getting payloads. See Integrating with Zapier.

Technical Details

For the request format, signature verification, and a schema for every payload, see Webhooks in the developer docs. You can also create, list, and delete webhooks with the REST API.

Still have a question? Contact support.

On this page