---
title: API Keys Widget
description: A widget for displaying and managing API Keys.
originalPath: .tmp-workos-clone/packages/docs/content/widgets/api-keys.mdx
---

![API Keys widget screenshot](https://images.workoscdn.com/images/13e0893f-eb84-43f1-9467-2598567538f3.png?auto=format&fit=clip&q=50)

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.

<CodeBlock>
  <CodeBlockTab
    language="js"
    file="widget-apikeys-token"
    title="Widget Token"
  />
  <CodeBlockTab
    language="js"
    file="widget-apikeys-authkit-react"
    title="Access Token"
  />
</CodeBlock>

## API Reference

<PropsTable data={widgets.apiKeys.props} />
