<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 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/clerk-react'
export default function Page() {
return <APIKeys />
}Properties
All props are optional.
- Name
perPage?- Type
number- Description
The number of API keys to show per page. Defaults to
10.
- Name
showDescription?- Type
boolean- Description
Whether to show the description field in the API key creation form. Defaults to
false.
- Name
appearance?- Type
Appearance | undefined- Description
Optional object to style your components. Will only affect Clerk components and not Account Portal pages.
- Name
fallback?- Type
ReactNode- Description
An optional element to be rendered while the component is mounting.
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.
Feedback
Last updated on