Command Palette

Search for a command to run...

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

mindbody-webhooks

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

Receive and verify Mindbody webhooks. Use when creating a Mindbody Webhooks API subscription (POST then PATCH to activate), answering the HEAD request…

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

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

Mindbody Webhooks

The Mindbody Webhooks API sends a POST to your webhook URL when something changes at a business that uses Mindbody: class and appointment bookings, clients, sales, memberships, staff, locations and more. Subscriptions are API-only: you create one with POST https://mb-api.mindbodyonline.com/push/api/v1/subscriptions, then activate it with PATCH .../subscriptions/{subscriptionId}.

When to Use This Skill

  • How do I receive Mindbody webhooks?
  • Why does creating a Mindbody subscription fail with invalidWebhookURLNoResponse? (the URL must answer a HEAD request with a 2xx)
  • How do I verify the X-Mindbody-Signature header?
  • Do I base64-decode the messageSignatureKey? (no: use it as text)
  • How do I handle classRosterBooking.created or client.updated?

The HEAD Check

Mindbody "uses POST requests to deliver events to the URL, and HEAD requests to check the URL's validity when creating a subscription." The URL must return a 2xx in time, or the POST subscription call fails with invalidWebhookURLNoResponse (HTTP 400, error code 14000014). The same error is listed for PATCH, so changing a subscription (for example its webhookUrl) can check the URL again. The HEAD carries no body or signature. The examples answer it with an empty 200. There is no option to skip the check.

Verification (core)

Part Value
Header X-Mindbody-Signature
Value sha256= + base64 HMAC-SHA256 (51 characters in all)
Key The subscription's messageSignatureKey, as UTF-8 text
Signed content The raw request body
const crypto = require('crypto');

function verifyMindbodySignature(rawBody, signature, messageSignatureKey) {   // rawBody: exact bytes
  const match = /^sha256=([A-Za-z0-9+/]{43}=)$/.exec(String(signature || '').trim());
  if (!messageSignatureKey || !match) return false;
  const expected = crypto.createHmac('sha256', messageSignatureKey).update(rawBody).digest();
  return crypto.timingSafeEqual(Buffer.from(match[1], 'base64'), expected);
}
  • Use the key as text. A messageSignatureKey looks like base64 (fruFor651QwsHmiZDq3REmVmtKpHCydSkommfrILxEg= in the docs), but Mindbody's sample keys the HMAC with Encoding.UTF8.GetBytes(signatureKey). Decoding it never matches.
  • The key is returned once, in the POST subscription response. Save it then. Other endpoints don't return it.
  • Raw body. HMAC the bytes as received, not re-serialised JSON.
  • Mindbody's C# sample answers a bad signature with 400. The examples use 401. Missing key: 500.

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

Python uses hmac.new(key.encode(), raw_body, hashlib.sha256), base64.b64decode and hmac.compare_digest. See references/verification.md.

Hookdeck: the Mindbody source type (MINDBODY) verifies X-Mindbody-Signature. Paste the messageSignatureKey as-is, without decoding it. The source answers Mindbody's HEAD check with 200.

Payload

{
  "messageId": "ASwFMoA2Q5UKw69g3RDbvU",
  "eventId": "site.created",
  "eventSchemaVersion": 1,
  "eventInstanceOriginationDateTime": "2018-04-18T10:02:55Z",
  "eventData": { }
}

eventId is the event type. eventData depends on it and always includes siteId. Events caused by your own Public API calls can carry the transactionKey you sent in a Transaction-Key header.

Event Types

Event Fired when
classRosterBooking.created / .cancelled A client is booked into, or removed from, a class
classRosterBookingStatus.updated A booking's sign-in status changes
classWaitlistRequest.created / .cancelled A client joins or leaves a class waitlist
appointmentBooking.created / .updated / .cancelled An appointment is booked, changed or cancelled
client.created / client.updated A client is added or changed
clientSale.created A sale is made to a client
clientContract.*, clientMembershipAssignment.* Contracts and memberships change
classSchedule.*, class.updated, staff.*, location.*, site.* Business setup changes

See references/overview.md for the full list.

Environment Variables

MINDBODY_MESSAGE_SIGNATURE_KEY=your-message-signature-key   # from the POST subscription response

Local Development

A plain CLI source fails Mindbody's HEAD check. hookdeck-cli listen on its own creates a plain source, and Hookdeck answers HEAD on a plain source with a 405 without forwarding it to localhost. The create call then fails with invalidWebhookURLNoResponse. Set up the source first:

  1. In the Hookdeck dashboard, create a source of type Mindbody named mindbody. Hookdeck answers the HEAD check for Mindbody sources. You can
Полный SKILL.md на GitHub

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

FAQ

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

Receive and verify Mindbody webhooks. Use when creating a Mindbody Webhooks API subscription (POST then PATCH to activate), answering the HEAD request Mindbody sends to the webhook URL, verifying the X-Mindbody-Signature header ("sha256=" + base64 HMAC-SHA256 of the raw body keyed with messageSignatureKey), debugging invalidWebhookURLNoResponse or signature mismatches, or handling events like classRosterBooking.created, appointmentBooking.created, client.created and clientSale.created.

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

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

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

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

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

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