Skip to content
← Public packages

@cameronpak/box

Full Box Public API v1 client: lifecycle, prompts, files, commands, snapshots, environments, webhooks, desktop, hosting, and account.

src/list-webhooks.ts

9 lines · 402 B · TypeScript
import { boxRequest, type Result } from './client.ts'
import type { Webhook } from './types.ts'

export type ListWebhooksOutput = { webhooks: Array<Webhook> }

/** List account-wide Box lifecycle webhook endpoints. Signing secrets are never included. */
export default async function listWebhooks(): Promise<Result<ListWebhooksOutput>> {
	return boxRequest<ListWebhooksOutput>({ path: '/webhooks' })
}