Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

cloudtalk-webhooks

БесплатноЗапускает вложенные скриптыНе проверен

Receive and verify CloudTalk webhooks (cloud call center). Use when setting up CloudTalk webhook handlers, debugging Svix signature verification (svix-id…

hookdeckот hookdeck★ 104 звезды на GitHub

Об этом скилле

CloudTalk Webhooks

CloudTalk is a cloud call center. Its account-level webhooks (Settings → Webhooks in the Dashboard) push call, contact, user, message, Conversation Intelligence, AI Voice Agent and Dialer events to your HTTPS endpoint as JSON. They are signed with the Svix scheme.

When to Use This Skill

  • How do I receive CloudTalk webhooks?
  • How do I verify a CloudTalk webhook signature (svix-signature)?
  • How do I handle call.started, call.answered and call.ended events?
  • How do I get a call recording after call.ended (call.recording_ready)?
  • Why is my CloudTalk webhook signature verification failing?
  • Why am I processing the same CloudTalk event twice?

Verification (core)

Header Value
svix-id Delivery id. Same on every retry of the same event
svix-timestamp Unix seconds when the request was sent
svix-signature Space-delimited list of v1,<base64> signatures

Signed content is {svix-id}.{svix-timestamp}.{raw body}, HMAC-SHA256, base64. The key is the base64-decoded part of the secret after whsec_. The svix library (npm and PyPI) does this, enforces a 5-minute timestamp tolerance, and compares in constant time. Hookdeck retries and replays resend the original svix-timestamp, so the library rejects them once they are more than 5 minutes old. If you receive through Hookdeck and need late retries to pass, use the manual check in references/verification.md and drop or widen its timestamp window.

import { Webhook } from 'svix'; // svix 2.x is ESM-only

// rawBody: the exact bytes received (express.raw({ type: '*/*' }) / request.text()), NOT re-serialised JSON
function verifyCloudTalkWebhook(rawBody, headers) {
  const secret = process.env.CLOUDTALK_WEBHOOK_SECRET; // whsec_...
  if (!secret) throw new Error('CLOUDTALK_WEBHOOK_SECRET not set'); // fail closed → 500
  new Webhook(secret).verify(rawBody, {
    'svix-id': headers['svix-id'],
    'svix-timestamp': headers['svix-timestamp'],
    'svix-signature': headers['svix-signature'],
  }); // throws WebhookVerificationError → 400
  return JSON.parse(rawBody.toString('utf8')); // svix 2.x verify() returns nothing
}

Python: from svix.webhooks import Webhook, then Webhook(secret).verify(raw_body, headers) followed by json.loads(raw_body).

svix 2.x gotcha: verify() no longer returns the parsed payload (JS since 2.2, Python since 2.0). CloudTalk's docs show event = wh.verify(...), which gives undefined/None on current svix. Verify, then parse the raw body yourself.

Manual verification (no SDK) is in references/verification.md.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.

What Is Not Signed This Way

Only the account-level webhooks from Settings → Webhooks carry these headers. The Call Flow Designer Webhook step, an AI Voice Agent's Send via Webhook option and Workflow Automation actions send their own payloads over their own delivery path. They are not signed with this scheme, and the retry, replay and retention behaviour here does not apply to them. Authenticate those the way their own setup screen describes, and don't point them at a handler that requires svix-* headers.

Event Envelope and Deduplication

Every delivery has the same envelope; only data differs. Route on type, and ignore types you don't recognize because new ones are added over time.

{ "event_id": "3f9a2b4c-8d1e-8a2b-9c3d-4e5f60718293", "type": "contact.created", "version": "v1",
  "occurred_at": "2026-08-17T09:34:21.512Z", "company_id": "123456",
  "data": { "id": "44210", "name": "Jane Doe", "phones": ["+12025550143"] } }

Delivery is at-least-once, so de-duplicate on event_id (same on every retry; claim it before doing the work, and keep it for 30 days because Resend and Recover replay that far back). Order is not guaranteed: sort by occurred_at.

Common Event Types

Event Fired when
call.started A call begins, before anyone picks up
call.ringing A call rings on a specific user
call.answered A call is picked up
call.held / call.resumed A call is put on or taken off hold
call.ended A call finishes, with durations, contacts and the handling user
call.recording_ready A recording or voicemail is stored (async, after call.ended)
call.completed Once per call: the call's post-call data (call, recording and transcript references, AI results, Voice Agent data, Dialer disposition) in one event
call.tags_modified Tags are added to or removed from a call
contact.created / contact.updated / contact.deleted A contact changes (deleted carries the id only)
user.created / user.updated /
Полный SKILL.md на GitHub

Установить cloudtalk-webhooks в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

examples/express/.env.exampleexamples/express/README.mdexamples/express/package.jsonexamples/express/src/index.jsexamples/fastapi/.env.exampleexamples/fastapi/README.mdexamples/fastapi/main.pyexamples/fastapi/requirements.txtexamples/fastapi/test_webhook.pyexamples/nextjs/.env.exampleexamples/nextjs/README.mdexamples/nextjs/app/webhooks/cloudtalk/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

Что делает скилл cloudtalk-webhooks?

Receive and verify CloudTalk webhooks (cloud call center). Use when setting up CloudTalk webhook handlers, debugging Svix signature verification (svix-id, svix-timestamp, svix-signature, whsec_ secret), deduplicating on event_id, or handling events like call.started, call.answered, call.ended, call.recording_ready, contact.created, message.received, transcript.ready and user.status_changed.

Как установить скилл cloudtalk-webhooks?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cloudtalk-webhooks запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить cloudtalk-webhooks с