Command Palette

Search for a command to run...

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

clemta-webhooks

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

Receive and verify Clemta webhooks, which use Standard Webhooks signatures. Use when setting up a Clemta partner webhook endpoint, getting the whsec_ signing…

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

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

Clemta Webhooks

Clemta is a US company-formation and compliance API for partners: companies, tax filings, service orders, requirements, files, calendar reminders and invoices. When something happens to a company you created, Clemta POSTs a JSON event to the endpoint you registered on the Webhooks page of the partner dashboard. The same events can be polled from GET /events.

When to Use This Skill

  • How do I receive Clemta webhooks?
  • How do I verify a Clemta webhook signature (webhook-signature)?
  • Where do I find my Clemta signing secret (whsec_...)?
  • How do I handle company.incorporated, company.ein.assigned, service_order.completed or requirement.created events?
  • Why is my Clemta webhook verification failing, or why are Hookdeck retries rejected as "timestamp too old"?

Verification (core)

Clemta follows Standard Webhooks:

Header Value
webhook-id The event id (evt_...); stable across retries, your idempotency key
webhook-timestamp Unix seconds of this attempt
webhook-signature Space-separated entries: v1,<base64> (HMAC) and v1a,<base64> (Ed25519)

Clemta also sends Clemta-Webhook-Id, -Timestamp and -Signature copies of the same values. Signed content is {webhook-id}.{webhook-timestamp}.{raw body}, HMAC-SHA256, base64 output. The key is the base64-decoded part of the whsec_... secret after the prefix. Compare against every v1, entry (two during a secret rotation) and skip other versions such as v1a. If webhook-id is absent, read svix-id, svix-timestamp and svix-signature instead. The examples use the standardwebhooks library (npm and PyPI):

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

// rawBody: exact request body as a string, NOT re-serialised JSON
function verifyClemta(rawBody, headers, secret = process.env.CLEMTA_WEBHOOK_SECRET) {
  const p = headers['webhook-id'] ? 'webhook' : 'svix'; // fall back to the svix-* names
  const [id, timestamp, signature] = ['id', 'timestamp', 'signature'].map((k) => headers[`${p}-${k}`]);
  new Webhook(secret).verify(rawBody, {
    'webhook-id': id, 'webhook-timestamp': timestamp, 'webhook-signature': signature,
  }); // throws on a bad signature or stale timestamp → respond 400
}

The library always enforces a fixed 5-minute timestamp window. Hookdeck retries and replays resend the original webhook-timestamp, so the library rejects them once they are more than 5 minutes old. If you receive through Hookdeck and need late retries to pass, use the manual verifier in references/verification.md, which can drop or widen the window. In Express, read the body with express.raw({ type: '*/*' }) so any content type verifies, and parse JSON only after the check.

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

Event Payload

The body is Clemta's event resource. Its top-level fields, per the Partner API spec (https://api.clemta.com/v1/openapi.json):

Field Meaning
object Always event
id The event id (evt_...), the same value as the webhook-id header
type The event name; branch on it
company_id The company the event is about (cmp_...), when it is about one
data.object The resource as of the event, in its API shape; its own object field names the kind (company, service_order, invoice, requirement, file, tax_filing, calendar_event)
livemode false for events from a clmt_test_ key
timestamp When the fact happened (ISO 8601); use it when sequence matters
created_at When the event was recorded

The payload is rendered at the API version pinned on the endpoint, or the workspace's webhook version when none is pinned. Clemta publishes no example bodies, so capture one from the sandbox before writing parsers.

Common Event Types

27 types are documented (the list may not be exhaustive, so ignore types you don't recognise):

Event Fired when
company.created A company you created was accepted
company.status.changed A company moved between in_progress, active and cancelled; branch on status
company.verified Every owner's identity document is in (once, before incorporation)
company.incorporated The state accepted the filing (once)
company.onboarding.completed A pre_existing company finished onboarding (once)
company.name.changed The legal name changed, usually to clear a state conflict
company.ein.assigned The IRS issued the EIN (once); payload carries ein
company.document.received An owner uploaded their identity document
company.entitlements.changed A tax-filing credit was
Полный SKILL.md на GitHub

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

FAQ

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

Receive and verify Clemta webhooks, which use Standard Webhooks signatures. Use when setting up a Clemta partner webhook endpoint, getting the whsec_ signing secret, debugging webhook-id / webhook-timestamp / webhook-signature verification, or handling company, tax filing, service order and requirement events like company.created, company.incorporated, company.ein.assigned, service_order.completed and requirement.fulfilled.

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

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

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

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

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

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