const webhook = new Luma(process.env.LUMA_API_KEY!).webhooks.client({
secret: process.env.LUMA_WEBHOOK_SECRET!,
});
const webhook: WebhookInboundClient;
Webhooks
Create inbound client
Build a WebhookInboundClient from an authenticated Luma instance using luma.webhooks.client() to verify signed inbound event payloads.
const webhook = new Luma(process.env.LUMA_API_KEY!).webhooks.client({
secret: process.env.LUMA_WEBHOOK_SECRET!,
});
const webhook: WebhookInboundClient;
SDK
luma.webhooks.client(options: WebhookInboundClientOptions): WebhookInboundClient
Returns a WebhookInboundClient for verifying incoming events.
const webhook = new Luma(process.env.LUMA_API_KEY!).webhooks.client({
secret: process.env.LUMA_WEBHOOK_SECRET!,
});
const webhook: WebhookInboundClient;
Parameters
WebhookInboundClientOptions
required
Test it
const webhook = luma.webhooks.client({
secret: process.env.LUMA_WEBHOOK_SECRET!,
});
console.log("Inbound client ready");