rotateWebhookSecret()
Generates a fresh signing secret for webhook signature validation.
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.rotateWebhookSecret(appSlug);}Signature
function rotateWebhookSecret( appSlug: string, client?: WachtClient,): Promise<WebhookApp>Parameters
›appSlug: string;
appSlug: string;Slug identifier for the target resource.
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.