NewWacht Bench is live — AI-assisted development for Wacht

getWebhookCatalog()

Returns the catalog currently bound to one webhook app.

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 example() {  const client = await wachtClient();  const appSlug: string = 'appslug';  return client.webhooks.getWebhookCatalog(appSlug);}

Signature

function getWebhookCatalog(appSlug: string): Promise<WebhookEventCatalog>

Parameters

appSlug?: string | undefined;
Webhook app slug.

Return value

slug?: string | undefined;
Webhook event catalog slug.
name?: string | undefined;
Catalog name.
events?: WebhookEventDefinition[] | undefined;
Event definitions in the catalog.

On this page