<< All versions
Skill v1.0.0
LLM-judged scan100/100ashish7802/awesome-api-skills/svix
──Details
PublishedSeptember 26, 2026 at 03:02 AM
Content Hashsha256:7626ba93e05e32f8...
Git SHA
──Files
Files (1 file, 1.8 KB)
SKILL.md1.8 KBactive
SKILL.md · 69 lines · 1.8 KB
Svix Webhooks API Skill
Overview
Svix is the industry standard for sending and verifying webhooks reliably, used by Clerk, Brex, Resend, and thousands of platforms.
Installation
bash
npm install svixpip install svix
Verifying Inbound Webhooks
To verify a webhook received from Svix or a service that uses standard Svix signatures (like Clerk or Resend):
typescript
import { Webhook } from 'svix';export async function verifyIncomingWebhook(rawBody: string,headers: Record<string, string>) {const secret = process.env.WEBHOOK_SECRET!;const wh = new Webhook(secret);const payload = wh.verify(rawBody, {'svix-id': headers['svix-id'],'svix-timestamp': headers['svix-timestamp'],'svix-signature': headers['svix-signature'],});return payload;}
Sending Outbound Webhooks via Svix API
typescript
import { Svix } from 'svix';const svix = new Svix(process.env.SVIX_AUTH_TOKEN!);// Create an application for a tenantconst app = await svix.application.create({name: 'Customer Org 42',uid: 'org_42',});// Send an event messageawait svix.message.create('org_42', {eventType: 'invoice.created',payload: {id: 'inv_9981',amount: 5000,currency: 'USD',},});
AI Pitfalls & Anti-Hallucination Guidelines
- Raw Body Requirement: Passing a JSON-parsed object to
wh.verifyfails cryptographic verification. Always pass the exact raw body string or buffer. - Header Casing: Svix headers are lowercase:
svix-id,svix-timestamp,svix-signature.
Production Verification Checklist
- [ ] Express / Next.js route handler configures raw body reader
- [ ] Webhook secret verified against environment (whsec_...)
- [ ] Svix timestamp tolerance checked (default 5 minutes)
Last Verified: 2026-07-03