Command Palette

Search for a command to run...

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

cronofy-webhooks

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

Receive and verify Cronofy push notifications (webhooks). Use when setting up Cronofy notification channels, debugging Cronofy-HMAC-SHA256 verification, or…

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

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

Cronofy Webhooks (Push Notifications)

Cronofy is calendar API / scheduling infrastructure. Its webhooks are called push notifications and are delivered to a notification channel's callback_url.

Not Calendly. Cronofy (cronofy.com, docs.cronofy.com) is a different company from Calendly, with a different signing scheme, different headers, and different payloads. If you're looking for Calendly-Webhook-Signature, you want calendly-webhooks.

When to Use This Skill

  • How do I receive Cronofy push notifications / webhooks?
  • How do I verify the Cronofy-HMAC-SHA256 header?
  • Why is my Cronofy webhook signature verification failing?
  • How do I handle a Cronofy change notification and fetch what actually changed?
  • How do I create a Cronofy notification channel?
  • Why did my Cronofy channel stop sending notifications / get closed?
  • What is changes_since and how do I use it with Read Events?

Verification (core)

Cronofy computes HMAC-SHA256 over the raw request body, keyed with your application's client secret (the OAuth secret, prefixed CRN_), base64-encoded. The header is a comma-separated list — one HMAC per active client secret, because Cronofy supports secret rotation. Pass if any element matches.

const crypto = require('crypto');

function verifyCronofyWebhook(rawBody, hmacHeader, clientSecret) {
  if (!hmacHeader || !clientSecret) return false;

  const expected = Buffer.from(
    crypto.createHmac('sha256', clientSecret).update(rawBody).digest('base64')
  );

  // Comma-separated: one HMAC per ACTIVE client secret (rotation). Any match wins.
  // reduce (not some) so every candidate is compared — no early exit.
  return hmacHeader.split(',').reduce((matched, candidate) => {
    const buf = Buffer.from(candidate.trim());
    const ok = buf.length === expected.length && crypto.timingSafeEqual(buf, expected);
    return matched || ok;
  }, false);
}
import base64, hashlib, hmac

def verify_cronofy_webhook(raw_body: bytes, hmac_header: str, client_secret: str) -> bool:
    if not hmac_header or not client_secret:
        return False
    expected = base64.b64encode(
        hmac.new(client_secret.encode("utf-8"), raw_body, hashlib.sha256).digest()
    )
    # Compare as BYTES: compare_digest raises TypeError on non-ASCII str, and header
    # values arrive latin-1 decoded, so str comparison turns a hostile header into a 500.
    # List comprehension (not a generator) so every candidate is compared.
    return any([hmac.compare_digest(c.strip().encode("utf-8", "replace"), expected)
                for c in hmac_header.split(",")])

Standard base64, not base64url — Cronofy's own published digest BmQmWVuZ70ILWjr1CAt5oC7YOolgnku4WZtlrKfx/6k= contains a /.

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

Cronofy's docs state HMACs are generated the same way for all callback events, so this same verification also covers Cronofy's other callback surfaces (Event Triggers, Smart Invite callbacks, Meeting Agent callback notifications).

Doc-published test vectors

Cronofy publishes these; the examples' tests assert against them.

Client secret Body Expected HMAC
CRN_NggYusqPGLxwjw5FHOJYOqSrTPNXy8WQf14OID {"example":"well-known"} 5DxentQi5YSXODEzTVv06sRwJ3pULIz1KrYv20qxEK0=
CRN_nGlYDFXwfSXgB9rvGNBJyfE454GGPtWIbNuPwr {"example":"well-known"} BmQmWVuZ70ILWjr1CAt5oC7YOolgnku4WZtlrKfx/6k=

With both secrets active the header is the two joined by a comma: Cronofy-HMAC-SHA256: 5DxentQi5YSXODEzTVv06sRwJ3pULIz1KrYv20qxEK0=,BmQmWVuZ70ILWjr1CAt5oC7YOolgnku4WZtlrKfx/6k=

Payload Envelope

The discriminator is notification.type — a body field. There is no event-type header; push notifications document only Cronofy-HMAC-SHA256 and Content-Type: application/json; charset=utf-8.

{
  "notification": {
    "type": "change",
    "changes_since": "2026-08-26T09:24:16Z"
  },
  "channel": {
    "channel_id": "chn_54cf7c7cb4ad4c1027000001",
    "callback_url": "{CALLBACK_URL}",
    "filters": {
      "calendar_ids": ["cal_n23kjnwrw2_sakdnawerd3"],
      "only_managed": false
    }
  }
}
  • notification.changes_since is present only on change notifications.
  • channel.filters reflects non-default filters and may be absent or empty.

Notification Types

Type Triggered When What To Do
verification Immediately after a channel is created, to test the callback URL Just return 2xx. There is no token to echo and no challenge to reflect
change Something changed in the account's events Call Read Events with last_modified = changes_since to fetch the delta
profile_disconnected
Полный SKILL.md на GitHub

Установить cronofy-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/cronofy/route.tsexamples/nextjs/package.jsonexamples/nextjs/vitest.config.tsreferences/overview.mdreferences/setup.mdreferences/verification.md

FAQ

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

Receive and verify Cronofy push notifications (webhooks). Use when setting up Cronofy notification channels, debugging Cronofy-HMAC-SHA256 verification, or handling Cronofy calendar events like verification, change, profile_disconnected, conferencing_profile_disconnected, profile_initial_sync_completed, and gdpr_requested. Cronofy signs the raw body with your application's client secret and sends a COMMA-SEPARATED list of base64 HMACs in the Cronofy-HMAC-SHA256 header.

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

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

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

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

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

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