NewWacht Bench is live — AI-assisted development for Wacht

getApiAuthApp()

Loads app metadata, permission/resource scope, and rate-limit bindings 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 appName: string = 'value';  return client.apiKeys.getApiAuthApp(appName);}

Signature

function getApiAuthApp(appSlug: string): Promise<ApiAuthApp>

Parameters

›
appSlug?: string | undefined;
API auth app slug.

Return value

›
app_slug?: string | undefined;
App slug identifier.
›
name?: string | undefined;
App display name.
›
is_active?: boolean | undefined;
Whether app is active.
›
permissions?: string[] | undefined;
Bound permission names.
›
resources?: string[] | undefined;
Bound resource patterns.
›
rate_limits?: RateLimit[] | undefined;
Resolved rate-limit rules.

On this page