Skip to main content
import { WebhookInboundClient } from "@alhwyn/luma";

const webhook = new WebhookInboundClient({
  secret: process.env.LUMA_WEBHOOK_SECRET!,
});
const webhook: WebhookInboundClient;
SDK new WebhookInboundClient(options: WebhookInboundClientOptions): WebhookInboundClient Creates a standalone inbound client without an API key.
import { WebhookInboundClient } from "@alhwyn/luma";

const webhook = new WebhookInboundClient({
  secret: process.env.LUMA_WEBHOOK_SECRET!,
});
const webhook: WebhookInboundClient;

Parameters

options
WebhookInboundClientOptions
required
Inbound client configuration.

Test it

const webhook = new WebhookInboundClient({
  secret: process.env.LUMA_WEBHOOK_SECRET!,
});
console.log("Inbound client ready");
Or create via the resource factory:
const webhook = new Luma(process.env.LUMA_API_KEY!).webhooks.client({
  secret: process.env.LUMA_WEBHOOK_SECRET!,
});