Command Palette

Search for a command to run...

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

hibob-webhooks

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

Receive and verify HiBob (Bob) webhooks. Use when setting up Hibob webhook handlers, debugging Bob-Signature HMAC-SHA512 verification, or handling HR events…

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

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

HiBob (Bob) Webhooks

When to Use This Skill

  • How do I receive HiBob (Bob) webhooks?
  • How do I verify the Bob-Signature header on a Hibob webhook?
  • Why is my Hibob webhook signature verification failing?
  • How do I handle employee.created, employee.updated, employee.joined, or employee.left events?
  • How do I handle time off events like timeoff.request.requested and timeoff.request.approved?
  • Why does Bob keep sending a "Ping test" request to my endpoint?

Verification (core)

Bob signs the raw request body with HMAC-SHA512, keyed with the secret shown in the Bob webhook configuration (used as a raw UTF-8 string, not decoded), and sends the base64 digest in the Bob-Signature header. There is no timestamp header and no official SDK, so verification is manual.

Node:

const crypto = require('crypto');

function verifyBobSignature(rawBody, signatureHeader, secret) {
  if (!signatureHeader || !secret) return false;
  const expected = crypto.createHmac('sha512', secret).update(rawBody).digest('base64');
  try {
    return crypto.timingSafeEqual(Buffer.from(signatureHeader), Buffer.from(expected));
  } catch {
    return false; // different lengths
  }
}

Python:

import base64, hashlib, hmac

def verify_bob_signature(raw_body: bytes, signature_header: str, secret: str) -> bool:
    if not signature_header or not secret:
        return False
    expected = base64.b64encode(
        hmac.new(secret.encode(), raw_body, hashlib.sha512).digest()
    ).decode()
    return hmac.compare_digest(signature_header, expected)

Ping test: when you add a webhook, Bob first POSTs the text Ping test (or JSON {"text":"Ping test"}) and expects an immediate 200. Handle it before parsing the body as an event.

For complete handlers with route wiring, event dispatch, and tests, see examples/express/, examples/nextjs/, examples/fastapi/.

Common Event Types

The event name is the type field in the JSON body (webhooks v2); it is not sent in a header.

Event Description
employee.created An employee is created
employee.updated An employee field is updated
employee.joined Employee granted access, once the lifecycle entry is effective
employee.left Employee terminated or on Garden leave
timeoff.request.requested A time off request is submitted
timeoff.request.approved A time off request is approved

Other events include employee.deleted, employee.activated, employee.inactivated, employee.temporaryLeave, employee.access.revoked.immediately, table.entry.created, table.entry.updated, timeoff.request.declined, timeoff.request.cancelled, timeoff.request.deleted, timeoff.request.updated, timeoff.request.imported, timeoff.request.setEndDate, todo.assign, todo.changedStatus, documents.eSign.completed, and workforcePlanning.*. See references/overview.md.

Payloads carry metadata and IDs only (companyId, type, version, triggeredBy, triggeredAt, data). Call Bob's API to fetch the full record.

Environment Variables

HIBOB_WEBHOOK_SECRET=your_bob_webhook_secret

Local Development

npx hookdeck-cli listen 3000 hibob --path /webhooks/hibob

No account required. The CLI creates a guest account on first run and provides a local tunnel plus a web UI for inspecting requests. Use port 8000 for FastAPI.

Reference Materials

Recommended: webhook-handler-patterns

We recommend installing webhook-handler-patterns alongside this skill:

Related Skills

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

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

FAQ

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

Receive and verify HiBob (Bob) webhooks. Use when setting up Hibob webhook handlers, debugging Bob-Signature HMAC-SHA512 verification, or handling HR events like employee.created, employee.joined, employee.left, or timeoff.request.requested.

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

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

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

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

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

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