NewWacht Bench is live — AI-assisted development for Wacht

getWebhookEventCatalog()

Returns one catalog object including its event definitions.

Usage

The following example shows a basic usage of the backend client from @wacht/nextjs/server.

import { wachtClient } from '@wacht/nextjs/server';export async function getWebhookEventCatalog(slug: string) {  const client = await wachtClient();  return client.webhooks.getWebhookEventCatalog(slug);}

Signature

function getWebhookEventCatalog(  slug: string,): Promise<WebhookEventCatalog>

Behavior

  • Fetches a single resource by identifier or query context.
  • Use this result as the source of truth before update, replay, or delete flows.

On this page