bamboohr-webhooks
БесплатноЗапускает вложенные скриптыНе проверенReceive and verify BambooHR webhooks, both Event-Based (employee.created, employee.updated, employee.deleted, company.*) and Field-Based (the batched…
от hookdeck★ 104 звезды на GitHubОб этом скилле
BambooHR Webhooks
When to Use This Skill
- How do I receive BambooHR webhooks?
- How do I verify the
X-BambooHR-Signatureheader? - Why does my BambooHR webhook signature never match?
- How do I handle Event-Based
employee.created,employee.updatedandemployee.deletedevents? - How do I handle Field-Based
Created,UpdatedandDeletedemployee actions? - How do I read the batched
employeesarray in a BambooHR webhook?
How BambooHR Webhooks Work
BambooHR sends an HTTPS POST when employee records (or, for Event-Based webhooks, the company) change. Webhooks are set up by an admin in Account Settings > Webhooks (Global) or through the API (Permissioned, limited to the creating user's access). Each webhook picks a data structure: Event-Based (recommended by BambooHR: one event per request, { type, timestamp, data }) or Field-Based (the older batched employees payload with posted field values). Each webhook has a private key used to sign requests; BambooHR documents one signing scheme for all webhooks, and the Create Webhook API returns a privateKey for HMAC-SHA256 verification whichever events you pick. Payloads are JSON (recommended) or application/x-www-form-urlencoded, chosen per webhook.
Verification (core)
X-BambooHR-Signature is the lowercase hex HMAC-SHA256 of the raw body bytes followed directly by the X-BambooHR-Timestamp header value (body first, no separator), keyed with the webhook's private key as a UTF-8 string. No prefix on the signature.
Node:
const crypto = require('crypto');
function verify(rawBody, signature, timestamp, privateKey) {
if (!signature || !timestamp || !privateKey || !/^[0-9a-fA-F]{64}$/.test(signature)) return false;
const message = Buffer.concat([rawBody, Buffer.from(timestamp, 'latin1')]);
const expected = crypto.createHmac('sha256', privateKey).update(message).digest();
const provided = Buffer.from(signature.toLowerCase(), 'hex'); // validated above
return provided.length === expected.length && crypto.timingSafeEqual(provided, expected);
}
Python:
import hashlib, hmac, re
def verify(raw_body: bytes, signature: str, timestamp: str, private_key: str) -> bool:
if not signature or not timestamp or not private_key or not re.fullmatch(r"[0-9a-fA-F]{64}", signature):
return False
message = b"".join([raw_body, timestamp.encode("latin-1")])
expected = hmac.new(private_key.encode(), message, hashlib.sha256).digest()
return hmac.compare_digest(bytes.fromhex(signature), expected)
Reject with 401 when either header is missing, the signature is malformed, or it does not match. Verify the raw bytes before parsing JSON or form data; never re-serialize the body.
Timestamp window: off by default. Hookdeck retries and replays resend the original headers, so a fixed window would reject legitimate retries. If you want one, set BAMBOOHR_WEBHOOK_TOLERANCE_SECONDS (unset or 0 = off). BambooHR does not state the header's format, so the examples only parse it when you opt in (epoch seconds or milliseconds).
For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/.
Event Payload
There is no event-type header. Tell the two shapes apart by the body: Event-Based payloads have a top-level type, Field-Based payloads have an employees array. The examples handle both.
Event-Based (recommended)
{
"type": "employee.updated",
"timestamp": "2026-01-31T18:42:00+0000",
"data": { "companyId": "12345", "employeeId": "67890", "changedFields": ["firstName"] }
}
type |
Triggered When | data |
|---|---|---|
employee.created |
An employee record was created (an employee.updated follows) |
companyId, employeeId |
employee.updated |
A monitored field changed | companyId, employeeId, changedFields (API field aliases) |
employee.deleted |
An employee record was deleted | companyId, employeeId |
company.updated |
Company information or status changed | companyId |
company.deleted |
Company status changed to DELETED or CANCELLED |
companyId |
company-integrations.updated |
Company integration settings changed | companyId |
The payload is a lightweight notification: fetch current data from the BambooHR API. The body timestamp is ISO 8601 and is unrelated to the X-BambooHR-Timestamp header.
Field-Based (legacy employee_with_fields.* events)
Each entry in the employees array carries an action:
action |
Meaning | changedFields / fields |
|---|---|---|
Created |
Employee record created | Empty |
Updated |
Monitored fields changed | Names of changed fields / posted field values |
Deleted |
Employee record deleted | Empty |
{
"employees": [
{ "id": "40351", "action": "Updated"
Установить bamboohr-webhooks в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bamboohr-webhooks?
Receive and verify BambooHR webhooks, both Event-Based (employee.created, employee.updated, employee.deleted, company.*) and Field-Based (the batched employees payload with Created, Updated and Deleted actions). Use when setting up BambooHR webhook handlers or debugging X-BambooHR-Signature verification.
Как установить скилл bamboohr-webhooks?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bamboohr-webhooks запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic