Command Palette

Search for a command to run...

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

folk-webhooks

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

Receive and verify folk (folk.app CRM) webhooks, which follow the Standard Webhooks spec. Use when setting up a folk webhook endpoint, saving the whsec_…

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

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

folk Webhooks

folk is a CRM. Its webhooks report changes to people, companies, custom objects (such as deals), notes, tasks, reminders (deprecated) and person enrichments. They follow the Standard Webhooks spec, so every delivery is signed with webhook-id, webhook-timestamp and webhook-signature headers, and folk recommends the official Standard Webhooks libraries for verification.

When to Use This Skill

  • How do I receive folk webhooks?
  • How do I verify a folk webhook signature?
  • Where do I find my folk webhook signing secret? (It is shown only once.)
  • How do I handle person.created, person.updated, company.updated or object.created events?
  • Why is my folk webhook-signature verification failing?
  • Why are Hookdeck retries or replays of folk webhooks rejected after 5 minutes?

Verification (core)

Header Value
webhook-id Unique event ID (same as the payload's id), stable across redeliveries
webhook-timestamp Unix seconds of the delivery
webhook-signature v1,<base64 HMAC-SHA256>, possibly several space-separated entries

Signed content is {webhook-id}.{webhook-timestamp}.{raw body}. The key is the base64-decoded part of the secret after whsec_ (for example whsec_QWFSUzl1QUVoQW1kdWtpTnJRTUFpbXNlZmxLTg==). folk shows the secret only once, when the webhook is created.

const { Webhook } = require('standardwebhooks');

// rawBody: exact request body string, NOT re-serialised JSON
function verifyFolkWebhook(rawBody, headers, secret = process.env.FOLK_WEBHOOK_SECRET) {
  return new Webhook(secret).verify(rawBody, {
    'webhook-id': headers['webhook-id'],
    'webhook-timestamp': headers['webhook-timestamp'],
    'webhook-signature': headers['webhook-signature'],
  }); // returns the parsed event; throws → respond 400
}

Python: from standardwebhooks.webhooks import Webhook, then Webhook(secret).verify(await request.body(), dict(headers)).

5-minute window. The standardwebhooks and svix libraries always enforce a fixed 5-minute timestamp window, and it can't be changed. Hookdeck retries and replays resend the original timestamp, so the library rejects any retry or replay that arrives more than 5 minutes after folk signed it. If you receive folk webhooks through Hookdeck and need late retries or replays to verify, use the dependency-free verifier in references/verification.md: it checks every space-separated v1,<base64> entry in constant time, and lets you drop or widen the window.

For complete handlers with tests, see examples/express/, examples/nextjs/, examples/fastapi/. The Express example reads the raw body with express.raw({ type: '*/*' }) so any content type verifies.

Event Envelope

{ "id": "evt_6004f2ef-dcc3-4c56-a704-9326730ad100", "type": "person.updated",
  "createdAt": "2025-09-30T09:55:52.715Z",
  "source": "https://api.folk.app/v1/webhooks/wbk_2f15ec4f-0f70-4884-a43d-1f88ef7a6665",
  "data": { "id": "per_05837e2d-9bf7-4f17-8729-e95f1be4de67",
            "url": "https://api.folk.app/v1/people/per_05837e2d-9bf7-4f17-8729-e95f1be4de67",
            "changes": [{ "path": ["firstName"], "type": "set", "value": "John" }] } }

Payloads are thin: data.id and data.url identify the resource (GET data.url for the full record). Updates add data.changes, deletions add data.details. Dispatch on the body's type.

Common Event Types

Event Fired when
person.created / person.updated / person.deleted A person is created, updated (native attributes or custom fields) or deleted
person.groups_updated A person's groups change
person.workspace_interaction_metadata_updated A person's workspace interaction metadata changes
company.created / company.updated / company.deleted A company is created, updated or deleted
company.groups_updated A company's groups change
object.created / object.updated / object.deleted A custom object (for example a deal) is created, updated or deleted
note.created / note.updated / note.deleted A note is created, updated or deleted
task.created / task.updated / task.completed / task.deleted A task is created, updated (or marked as to do), marked as done or deleted
reminder.created / reminder.updated / reminder.deleted / reminder.triggered A reminder changes or fires. Deprecated, removed on February 13, 2027: move to the task events
person_enrichment.finished A person enrichment completes or fails

Full payloads: references/overview.md and folk's events documentation.

Delivery Semantics

  • Return a 2xx quickly and process asynchronously. Any other stat
Полный SKILL.md на GitHub

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

FAQ

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

Receive and verify folk (folk.app CRM) webhooks, which follow the Standard Webhooks spec. Use when setting up a folk webhook endpoint, saving the whsec_ signing secret, debugging webhook-id / webhook-timestamp / webhook-signature verification, or handling events like person.created, person.updated, person.deleted, person.groups_updated, company.created, company.updated, object.created, note.created, task.created and task.completed.

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

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

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

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

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

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