getWebhookApp()
Loads webhook app metadata for one app slug.
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.getWebhookApp(appSlug);}Signature
function getWebhookApp(appSlug: string): Promise<WebhookApp>Parameters
›appSlug?: string | undefined;
appSlug?: string | undefined;Webhook app slug.
Return value
›app_slug?: string | undefined;
app_slug?: string | undefined;Webhook app slug.
›name?: string | undefined;
name?: string | undefined;Webhook app display name.
›is_active?: boolean | undefined;
is_active?: boolean | undefined;Whether webhook app is active.
›event_catalog_slug?: string | null | undefined;
event_catalog_slug?: string | null | undefined;Bound event catalog slug when set.
Examples
Load app configuration before endpoint changes
import { wachtClient } from '@wacht/nextjs/server';export async function loadAppConfig(appSlug: string) { const client = await wachtClient(); return client.webhooks.getWebhookApp(appSlug);}