Command Palette

Search for a command to run...

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

clockify-webhooks

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

Receive and authenticate Clockify webhooks. Use when creating webhooks in Clockify's Webhooks settings or API, checking the Clockify-Signature header (the…

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

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

Clockify Webhooks

Clockify sends a POST to your URL when the event a webhook watches happens: a new time entry, a stopped timer, a new project, a user joining, and so on. Each webhook watches one event. Workspace owners and admins create webhooks under Preferences > Advanced > Manage webhooks, or with the API. The Free plan allows 3 webhooks per workspace.

When to Use This Skill

  • How do I receive Clockify webhooks?
  • How do I verify Clockify-Signature? (compare it to the webhook's token)
  • Is Clockify-Signature an HMAC? (no)
  • How do I handle several Clockify webhooks on one endpoint?
  • How do I rotate the Signing secret?

Verification (core)

Clockify's API docs: "Creating a webhook generates a new token which can be used to verify that the webhook being sent was sent by Clockify, as it will always be present in the header." That token (authToken in the API, Signing secret in the UI) arrives unchanged in Clockify-Signature on every delivery for that webhook.

Part Value
Header Clockify-Signature
Value The webhook's token, a JWT issued by Clockify that doesn't expire
Check Constant-time equality with the stored token
Body signed? No
const crypto = require('crypto');

const safeEqual = (a, b) => crypto.timingSafeEqual(
  crypto.createHash('sha256').update(a).digest(),
  crypto.createHash('sha256').update(b).digest());

function verifyClockifySignature(signature, tokens) {   // tokens: one per webhook
  const given = String(signature || '').trim();
  if (!given || tokens.length === 0) return false;
  let ok = false;
  for (const token of tokens) ok = safeEqual(given, token) || ok;
  return ok;
}
  • Not an HMAC. Some third-party guides call it an HMAC of the payload. It isn't: the same token is sent with every body. Computing an HMAC will never match.
  • One token per webhook. Each webhook watches one event and has its own token. If several webhooks share an endpoint, accept any of their tokens. The examples read a comma-separated CLOCKIFY_WEBHOOK_SIGNING_SECRET.
  • No body integrity. The token proves the sender knows it, not that the body is unchanged. Use HTTPS, keep the token secret, and rotate it if it leaks.
  • Missing or wrong token: 401. Token not configured: 500.

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

Python hashes both values with SHA-256 and compares them with hmac.compare_digest. See references/verification.md.

Hookdeck: the Clockify source type (CLOCKIFY) compares Clockify-Signature with the token you paste in Signing Secret. Use one source per Clockify webhook, since each has its own token. Verification is optional on the source, and Hookdeck applies no timestamp window.

Payload

The body is the changed object itself, with no envelope. For NEW_TIME_ENTRY:

{
  "id": "6740a1b2c3d4e5f601234567",
  "description": "...",
  "userId": "...",
  "workspaceId": "...",
  "projectId": "...",
  "billable": true,
  "timeInterval": { "start": "2026-11-18T09:00:00Z", "end": "2026-11-18T10:00:00Z", "duration": "PT1H" }
}

Because each webhook watches one event, you know the event from the webhook (or its URL). Clockify's add-on docs also list a clockify-webhook-event-type header naming the event. The examples read it when present.

Event Types

The API's webhookEvent values include: NEW_TIME_ENTRY, NEW_TIMER_STARTED, TIMER_STOPPED, TIME_ENTRY_UPDATED, TIME_ENTRY_DELETED, TIME_ENTRY_SPLIT, TIME_ENTRY_RESTORED, NEW_PROJECT, PROJECT_UPDATED, PROJECT_DELETED, NEW_TASK, TASK_UPDATED, TASK_DELETED, NEW_CLIENT, CLIENT_UPDATED, CLIENT_DELETED, NEW_TAG, TAG_UPDATED, TAG_DELETED, USER_JOINED_WORKSPACE, USER_DELETED_FROM_WORKSPACE, USER_UPDATED, NEW_INVOICE, INVOICE_UPDATED, NEW_APPROVAL_REQUEST, APPROVAL_REQUEST_STATUS_UPDATED, TIME_OFF_REQUESTED, TIME_OFF_REQUEST_APPROVED, EXPENSE_CREATED, ASSIGNMENT_CREATED and more. See the API reference for the full list.

Environment Variables

CLOCKIFY_WEBHOOK_SIGNING_SECRET=webhook-token   # the webhook's Signing secret; comma-separate several

Local Development

# Express / Next.js (use 8000 for FastAPI). No install or account required.
npx hookdeck-cli listen 3000 clockify --path /webhooks/clockify

Use the printed URL as the webhook's endpoint, then trigger the event (for example, add a time entry). See references/setup.md.

Reference Materials

Полный SKILL.md на GitHub

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

FAQ

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

Receive and authenticate Clockify webhooks. Use when creating webhooks in Clockify's Webhooks settings or API, checking the Clockify-Signature header (the webhook's static token, not an HMAC), rotating the Signing secret, or handling events like NEW_TIME_ENTRY, TIMER_STOPPED, NEW_PROJECT and USER_JOINED_WORKSPACE.

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

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

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

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

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

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