NewWacht Bench is live — AI-assisted development for Wacht

listWebhookEvents()

Returns event definitions currently available 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.listWebhookEvents(appSlug);}

Signature

function listWebhookEvents(appSlug: string): Promise<WebhookAppEvent[]>

Parameters

appSlug?: string | undefined;
Webhook app slug.

Return value

deployment_id?: string | undefined;
Owning deployment id.
app_slug?: string | undefined;
Webhook app slug.
event_name?: string | undefined;
Event identifier.
description?: string | null | undefined;
Event description when provided.

On this page