component - API Keys components - Next.js | Clerk Docs

<APIKeys /> component

The <APIKeys /> component is used to manage API keys for your application. It allows you to create, edit, and revoke API keys for your application.

The component manages API keys based on the user's current context. When the user has an Active Organization selected, all operations are scoped to that Organization. Otherwise, operations are user-scoped.

To utilize the <APIKeys /> component, you must first enable API keys in the Clerk Dashboard. Refer to the Using API keys guide for more information.

Example

The following example includes a basic implementation of the <APIKeys /> component. You can use this as a starting point for your own implementation.

import { APIKeys } from '@clerk/nextjs'

export default function Page() {
  return <APIKeys />
}

Properties

All props are optional.

Customization

To learn about how to customize Clerk components, see the customization documentation.

If Clerk's prebuilt components don't meet your specific needs or if you require more control over the logic, you can rebuild the existing Clerk flows using the Clerk API. For more information, see the custom flow guides.