Receives and verifies ElevenLabs webhooks with SDK-based signature verification. Covers event types for post-call transcription, voice removal, speech-to-text, and image/video generation.
Ships in webhook-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
ElevenLabs tells you to verify the ElevenLabs-Signature header with its SDK: constructEvent in @elevenlabs/elevenlabs-js and construct_event in the elevenlabs Python package. See Webhooks: Authentication.
// Express.js / Node example
const { ElevenLabsClient } = require('@elevenlabs/elevenlabs-js');
const elevenlabs = new ElevenLabsClient({
apiKey: process.env.ELEVENLABS_API_KEY || 'webhook-only'
});
// In your webhook handler: get raw body and signature header, then:
const event = await elevenlabs.webhooks.constructEvent(rawBody, signatureHeader, process.env.ELEVENLABS_WEBHOOK_SECRET);
// event is the parsed payload; SDK throws on invalid signature
// Next.js example
import { ElevenLabsClient } from '@elevenlabs/elevenlabs-js';
const elevenlabs = new ElevenLabsClient({
apiKey: process.env.ELEVENLABS_API_KEY || 'webhook-only'
});
export async function POST(request: NextRequest) {
const rawBody = await request.text();
const signatureHeader = request.headers.get('ElevenLabs-Signature');
try {
const event = await elevenlabs.webhooks.constructEvent(
rawBody,
signatureHeader,
process.env.ELEVENLABS_WEBHOOK_SECRET
);
// Handle event.type, event.data...
return new NextResponse('OK', { status: 200 });
} catch (error) {
return NextResponse.json({ error: (error as Error).message }, { status: 401 });
}
}
import os
from fastapi import FastAPI, Request, HTTPException
from elevenlabs import ElevenLabs
from elevenlabs.errors import BadRequestError
app = FastAPI()
elevenlabs = ElevenLabs(api_key=os.environ.get("ELEVENLABS_API_KEY") or "webhook-only")
@app.post("/webhooks/elevenlabs")
async def elevenlabs_webhook(request: Request):
raw_body = await request.body()
sig = request.headers.get("ElevenLabs-Signature") or request.headers.get("elevenlabs-signature")
if not sig:
raise HTTPException(status_code=401, detail="Missing signature header")
try:
event = elevenlabs.webhooks.construct_event(
raw_body.decode("utf-8"),
sig,
os.environ["ELEVENLABS_WEBHOOK_SECRET"]
)
# Handle event["type"], event["data"]...
return {"status": "ok"}
except BadRequestError as e:
raise HTTPException(status_code=401, detail="Invalid signature")
The SDK (Node/TypeScript and Python) verifies the signature, validates the timestamp, and returns the parsed event. In the SDKs' code the tolerance is 30 minutes and can't be changed, so a delivery retried or replayed more than 30 minutes after ElevenLabs sent it (for example through Hookdeck) fails the check. On failure it throws; return 401 and the error message.
| Event | Triggered When | Common Use Cases |
|---|---|---|
post_call_transcription | An agent call ends and analysis is complete | Save transcripts, update CRM records |
post_call_audio | The call's full audio is ready (base64 MP3) | Archive call recordings |
call_initiation_failure | An agent phone call fails to connect (busy, no-answer, unknown) | Retry or mark the lead |
voice_removal_notice | A shared voice is scheduled for removal | Switch to a suggested voice before future_removal_timestamp |
voice_removal_notice_withdrawn | A scheduled removal is cancelled | Keep using the voice |
voice_removed | A shared voice is removed without notice | Switch voices now |
speech_to_text_transcription | An async transcription requested with webhook=true completes | Store the transcript |
webhook_error | That transcription fails (fields are top-level, no data) | Log error_message, retry |
flows_generation | An image or video generation completes or fails | Download content_url within an hour |
Post-call events for one conversation share data.conversation_id, so key on type plus conversation_id, or on the ElevenLabs-Webhook-Delivery-Id header, which stays the same across retries. See the Webhooks and post-call webhooks docs.
ELEVENLABS_WEBHOOK_SECRET=your_webhook_secret_here
# Start tunnel (no account needed)
npx hookdeck-cli listen 3000 elevenlabs --path /webhooks/elevenlabs
Use the tunnel URL as the webhook's callback URL. To send a signed sample event, call Send Test Webhook Event.
We recommend installing the webhook-handler-patterns skill alongside this one for handler sequence, idempotency, error handling, and retry logic. Key references (open on GitHub):
For making API calls TO ElevenLabs (text-to-speech, transcription, agents), see the official ElevenLabs Skills. This skill handles the opposite direction: receiving webhooks FROM ElevenLabs.
SDK Warning: Always use
@elevenlabs/elevenlabs-jsfor JavaScript. Do not usenpm install elevenlabs(that's an outdated v1.x package).
TODO.md (opens in a new tab)examples/express/README.md (opens in a new tab)examples/express/package.json (opens in a new tab)examples/express/src/index.js (opens in a new tab)examples/express/test/webhook.test.js (opens in a new tab)examples/fastapi/README.md (opens in a new tab)examples/fastapi/main.py (opens in a new tab)examples/fastapi/requirements.txt (opens in a new tab)examples/fastapi/test_webhook.py (opens in a new tab)examples/nextjs/README.md (opens in a new tab)examples/nextjs/app/api/health/route.ts (opens in a new tab)examples/nextjs/app/webhooks/elevenlabs/route.ts (opens in a new tab)examples/nextjs/package.json (opens in a new tab)examples/nextjs/test/webhook.test.ts (opens in a new tab)examples/nextjs/vitest.config.ts (opens in a new tab)references/overview.md (opens in a new tab)references/setup.md (opens in a new tab)references/verification.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/webhook-skills:elevenlabs-webhooksfrom webhook-skills
npx claudepluginhub hookdeck/webhook-skills --plugin webhook-skills219 skills in this plugin
/ada-webhooksReceive and verify Ada (ada.cx) AI customer service webhooks, delivered through Svix. Use when setting up an Ada webhook endpoint, getting the per-endpoint whsec_ signing secret, debugging svix-id / svix-timestamp / svix-signature verification, or handling events like v1.conversation.created, v1.conversation.message, v1.conversation.ended, v1.conversation.handoff.ended, v1.end_user.created, v1.end_user.updated, v1.audit_log.emitted and v1.proactive_call.* voice outreach events.
/adyen-webhooksReceive and verify Adyen webhooks (standard notifications). Use when setting up Adyen webhook handlers, debugging HMAC signature verification, or handling payment events like AUTHORISATION, CAPTURE, REFUND, CANCELLATION, and CHARGEBACK.
/Other plugins' skills for the same job