← Public packages
@cameronpak/box
Full Box Public API v1 client: lifecycle, prompts, files, commands, snapshots, environments, webhooks, desktop, hosting, and account.
src/list-api-keys.ts
12 lines · 404 B · TypeScriptimport { boxRequest, type Result } from './client.ts'
import type { ApiKey } from './types.ts'
export type ListApiKeysOutput = { apiKeys: Array<ApiKey> }
/**
* List API key metadata only. Raw key secrets are not returned after
* creation or rotation.
*/
export default async function listApiKeys(): Promise<Result<ListApiKeysOutput>> {
return boxRequest<ListApiKeysOutput>({ path: '/api-keys' })
}