API Keys
Manage API keys for programmatic access to the platform. Each key is scoped to a site or organization and carries the role used by the auth middleware.
See the API Reference for the full type and function surface, regenerated from source on every build.
Quick Start
const keys = await client.apiKeys.list('my-site');
const created = await client.apiKeys.create('my-site', { name: 'CI key', role: 'writer' });