Skip to main content

Overview

Levers uses Svix to securely deliver webhooks. Every webhook request includes cryptographic signatures that you can verify to ensure the request originated from Levers and wasn’t tampered with.

Signature Headers

Each webhook POST request includes the following headers: The svix-signature header contains one or more signatures in the format:

Getting Your Webhook Secret

Each webhook endpoint in Levers has its own unique secret key. To find it:
  1. Navigate to Settings > Webhooks in the Levers Dashboard
  2. Click on your configured webhook endpoint
  3. Copy the Webhook Secret (starts with whsec_)
  4. Store this securely in your application (use environment variables)
Never commit your webhook secret to version control. Always use environment variables or a secure secret management system.

Installation

Install the Svix library for your preferred language:

Basic Verification


Framework Examples

Node.js Frameworks

Python Frameworks

Go Frameworks

Ruby on Rails

Add a route to config/routes.rb:
Create the controller app/controllers/webhook_controller.rb:

PHP (Laravel)

In routes/api.php:

Testing Webhooks Locally

To test webhooks during development, use a tool like ngrok or localtunnel to expose your local server to the internet:
Then use the ngrok URL (e.g., https://abc123.ngrok.io/webhook) in your webhook configuration.
Contact our support team if you encounter issues with webhook verification.