A widget for displaying and managing API Keys.

The <ApiKeys /> widget allows an admin to manage API keys in an organization. Admins can create API keys with specific permissions, view details of existing API keys, and revoke API keys, all within the widget.
In order to use the API Keys widget, a user must have a role that has the widgets:api-keys:manage permission.
import { ApiKeys, WorkOsWidgets } from '@workos-inc/widgets'; /** * @param {string} authToken - A widget token that was fetched in your backend. See the * "Tokens" section of this guide for details on how to generate the token */ export function ApiKeysPage({ authToken }) { return ( <WorkOsWidgets> <ApiKeys authToken={authToken} /> </WorkOsWidgets> ); }