Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
30f009b
feat: Remove experimental and early access tags from API keys
wobsoriano Mar 12, 2026
7b634e2
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
4652d20
chore: revert useAPIKeys to experimental
wobsoriano Mar 13, 2026
b51866c
chore: clean up namespace
wobsoriano Mar 13, 2026
e11c5e8
chore: document resolving api keys by subject
wobsoriano Mar 13, 2026
4fa2da4
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
3a7a46d
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
b56ccac
chore: remove experimental from hook
wobsoriano Mar 13, 2026
501c43e
chore: add interface tag to hook types
wobsoriano Mar 13, 2026
27f9865
chore: add changeset
wobsoriano Mar 13, 2026
4ea024f
chore: update changeset
wobsoriano Mar 13, 2026
8d014da
Update stable-api-keys.md
wobsoriano Mar 13, 2026
4bc365e
Update import paths for APIKeys and useAPIKeys
wobsoriano Mar 13, 2026
7d0310f
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 25, 2026
2e215b9
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
6cfaeb6
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
096545b
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 3, 2026
7a64501
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
fc523e8
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
3ad7a28
chore(nuxt): Auto import APIKeys component
wobsoriano Apr 6, 2026
8eea279
chore: remove docs
wobsoriano Apr 6, 2026
5dbb83d
chore: add nuxt changeset
wobsoriano Apr 6, 2026
f253725
chore: fix formatting
wobsoriano Apr 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/empty-lights-dress.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/nuxt': minor
---

API keys is now generally available.

```vue
<script setup>
// Components are automatically imported
</script>

<template>
<APIKeys />
</template>
```
41 changes: 41 additions & 0 deletions .changeset/stable-api-keys.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
---
"@clerk/shared": minor
"@clerk/react": minor
"@clerk/clerk-js": minor
"@clerk/ui": minor
---

API keys is now generally available.

### `<APIKeys />` component

```tsx
import { APIKeys } from '@clerk/react';

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

### `useAPIKeys()` hook

```tsx
import { useAPIKeys } from '@clerk/react';

export default function CustomAPIKeys() {
const { data, isLoading, page, pageCount, fetchNext, fetchPrevious } = useAPIKeys({
pageSize: 10,
initialPage: 1,
});

if (isLoading) return <div>Loading...</div>;

return (
<ul>
{data?.map((key) => (
<li key={key.id}>{key.name}</li>
))}
</ul>
);
}
```
10 changes: 2 additions & 8 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1345,15 +1345,11 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Mount a API keys component at the target element.
* Mount an API keys component at the target element.
* @param targetNode Target to mount the APIKeys component.
* @param props Configuration parameters.
*/
public mountAPIKeys = (node: HTMLDivElement, props?: APIKeysProps) => {
logger.warnOnce('Clerk: <APIKeys /> component is in early access and not yet recommended for production use.');

if (disabledAllAPIKeysFeatures(this, this.environment)) {
if (this.#instanceType === 'development') {
throw new ClerkRuntimeError(warnings.cannotRenderAPIKeysComponent, {
Expand DownExpand Up@@ -1398,9 +1394,7 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Unmount a API keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the APIKeys component from.
Expand Down
26 changes: 18 additions & 8 deletions packages/clerk-js/src/core/modules/apiKeys/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,10 +15,12 @@ import { convertPageToOffsetSearchParams } from '@/utils/convertPageToOffsetSear
import { APIKey, BaseResource } from '../../resources/internal';

export class APIKeys implements APIKeysNamespace {
static readonly #pathRoot = '/api_keys';

/**
* Returns the base options for the FAPI proxy requests.
*/
private async getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
async #getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
const token = await BaseResource.clerk.session?.getToken();
if (!token) {
throw new ClerkRuntimeError('No valid session token available', { code: 'no_session_token' });
Expand All@@ -27,7 +29,7 @@ export class APIKeys implements APIKeysNamespace {
return {
// Set to an empty string because FAPI Proxy does not include the version in the path.
pathPrefix: '',
// Set the session token as a Bearer token in the Authorization header for authentication.
// FAPI Proxy looks for the session token in the Authorization header.
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
Expand All@@ -37,11 +39,19 @@ export class APIKeys implements APIKeysNamespace {
};
}

/**
* Retrieves a paginated list of API keys.
*
* The subject (owner) is resolved in the following order:
* 1. Explicit `subject` param (user or organization ID)
* 2. Active organization ID
* 3. Current user ID
*/
async getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>> {
return BaseResource._fetch({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'GET',
path: '/api_keys',
path: APIKeys.#pathRoot,
search: convertPageToOffsetSearchParams({
...params,
subject: params?.subject ?? BaseResource.clerk.organization?.id ?? BaseResource.clerk.user?.id ?? '',
Expand All@@ -59,8 +69,8 @@ export class APIKeys implements APIKeysNamespace {

async create(params: CreateAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
path: '/api_keys',
...(await this.#getBaseFapiProxyOptions()),
path: APIKeys.#pathRoot,
method: 'POST',
body: JSON.stringify({
type: 'api_key',
Expand All@@ -76,9 +86,9 @@ export class APIKeys implements APIKeysNamespace {

async revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'POST',
path: `/api_keys/${params.apiKeyID}/revoke`,
path: `${APIKeys.#pathRoot}/${params.apiKeyID}/revoke`,
body: JSON.stringify({
revocation_reason: params.revocationReason,
}),
Expand Down
2 changes: 2 additions & 0 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,6 +182,8 @@ export default defineNuxtModule<ModuleOptions>({
'RedirectToCreateOrganization',
'Show',
'Waitlist',
// API Keys
'APIKeys',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,6 +57,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/experimental.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,6 @@ export type {
} from '@clerk/shared/types';

export {
__experimental_useAPIKeys as useAPIKeys,
__experimental_PaymentElementProvider as PaymentElementProvider,
__experimental_usePaymentElement as usePaymentElement,
__experimental_PaymentElement as PaymentElement,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/hooks/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ export {
useUser,
useSession,
useReverification,
useAPIKeys,
__experimental_useCheckout,
__experimental_CheckoutProvider,
__experimental_usePaymentElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/react/hooks/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
export { assertContextExists, createContextAndHook } from './createContextAndHook';
export { useAPIKeys as __experimental_useAPIKeys } from './useAPIKeys';
export { useAPIKeys } from './useAPIKeys';
export { useOrganization } from './useOrganization';
export { useOrganizationCreationDefaults } from './useOrganizationCreationDefaults';
export type {
Expand Down
6 changes: 2 additions & 4 deletions packages/shared/src/react/hooks/useAPIKeys.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ import { createCacheKeys } from './createCacheKeys';
import { usePagesOrInfinite, useWithSafeValues } from './usePagesOrInfinite';

/**
* @internal
* @interface
*/
export type UseAPIKeysParams = PaginatedHookConfig<
GetAPIKeysParams & {
Expand All@@ -21,16 +21,14 @@ export type UseAPIKeysParams = PaginatedHookConfig<
>;

/**
* @internal
* @interface
*/
export type UseAPIKeysReturn<T extends UseAPIKeysParams> = PaginatedResources<
APIKeyResource,
T extends { infinite: true } ? true : false
>;

/**
* @internal
*
* The `useAPIKeys()` hook provides access to paginated API keys for the current user or organization.
*
* @example
Expand Down
6 changes: 0 additions & 6 deletions packages/shared/src/types/apiKeys.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,20 +23,14 @@ export interface APIKeyResource extends ClerkResource {

export interface APIKeysNamespace {
/**
* @experimental This API is in early access and may change in future releases.
*
* Retrieves a paginated list of API keys for the current user or organization.
*/
getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Creates a new API key.
*/
create(params: CreateAPIKeyParams): Promise<APIKeyResource>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Revokes a given API key by ID.
*/
revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource>;
Expand Down
17 changes: 3 additions & 14 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -644,26 +644,18 @@ export interface Clerk {
unmountPricingTable: (targetNode: HTMLDivElement) => void;

/**
* This API is in early access and may change in future releases.
*
* Mount a api keys component at the target element.
*
* @experimental
* Mount an API keys component at the target element.
*
* @param targetNode - Target to mount the APIKeys component.
* @param props - Configuration parameters.
*/
mountAPIKeys: (targetNode: HTMLDivElement, props?: APIKeysProps) => void;

/**
* This API is in early access and may change in future releases.
*
* Unmount a api keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @experimental
*
* @param targetNode - Target node to unmount the ApiKeys component from.
* @param targetNode - Target node to unmount the APIKeys component from.
*/
unmountAPIKeys: (targetNode: HTMLDivElement) => void;

Expand DownExpand Up@@ -1032,9 +1024,6 @@ export interface Clerk {

/**
* API Keys Object
*
* @experimental
* This API is in early access and may change in future releases.
*/
apiKeys: APIKeysNamespace;

Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,6 +63,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
7 changes: 1 addition & 6 deletions packages/ui/src/components/APIKeys/APIKeys.tsx
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
import { isClerkAPIResponseError } from '@clerk/shared/error';
import { isOrganizationId } from '@clerk/shared/internal/clerk-js/organization';
import {
__experimental_useAPIKeys as useAPIKeys,
__internal_useOrganizationBase,
useClerk,
useUser,
} from '@clerk/shared/react';
import { useAPIKeys, __internal_useOrganizationBase, useClerk, useUser } from '@clerk/shared/react';
import type { APIKeyResource } from '@clerk/shared/types';
import { lazy, useState } from 'react';

Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
30f009b
feat: Remove experimental and early access tags from API keys
wobsoriano Mar 12, 2026
7b634e2
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
4652d20
chore: revert useAPIKeys to experimental
wobsoriano Mar 13, 2026
b51866c
chore: clean up namespace
wobsoriano Mar 13, 2026
e11c5e8
chore: document resolving api keys by subject
wobsoriano Mar 13, 2026
4fa2da4
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
3a7a46d
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
b56ccac
chore: remove experimental from hook
wobsoriano Mar 13, 2026
501c43e
chore: add interface tag to hook types
wobsoriano Mar 13, 2026
27f9865
chore: add changeset
wobsoriano Mar 13, 2026
4ea024f
chore: update changeset
wobsoriano Mar 13, 2026
8d014da
Update stable-api-keys.md
wobsoriano Mar 13, 2026
4bc365e
Update import paths for APIKeys and useAPIKeys
wobsoriano Mar 13, 2026
7d0310f
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 25, 2026
2e215b9
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
6cfaeb6
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
096545b
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 3, 2026
7a64501
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
fc523e8
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
3ad7a28
chore(nuxt): Auto import APIKeys component
wobsoriano Apr 6, 2026
8eea279
chore: remove docs
wobsoriano Apr 6, 2026
5dbb83d
chore: add nuxt changeset
wobsoriano Apr 6, 2026
f253725
chore: fix formatting
wobsoriano Apr 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/empty-lights-dress.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/nuxt': minor
---

API keys is now generally available.

```vue
<script setup>
// Components are automatically imported
</script>

<template>
<APIKeys />
</template>
```
41 changes: 41 additions & 0 deletions .changeset/stable-api-keys.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
---
"@clerk/shared": minor
"@clerk/react": minor
"@clerk/clerk-js": minor
"@clerk/ui": minor
---

API keys is now generally available.

### `<APIKeys />` component

```tsx
import { APIKeys } from '@clerk/react';

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

### `useAPIKeys()` hook

```tsx
import { useAPIKeys } from '@clerk/react';

export default function CustomAPIKeys() {
const { data, isLoading, page, pageCount, fetchNext, fetchPrevious } = useAPIKeys({
pageSize: 10,
initialPage: 1,
});

if (isLoading) return <div>Loading...</div>;

return (
<ul>
{data?.map((key) => (
<li key={key.id}>{key.name}</li>
))}
</ul>
);
}
```
10 changes: 2 additions & 8 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1345,15 +1345,11 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Mount a API keys component at the target element.
* Mount an API keys component at the target element.
* @param targetNode Target to mount the APIKeys component.
* @param props Configuration parameters.
*/
public mountAPIKeys = (node: HTMLDivElement, props?: APIKeysProps) => {
logger.warnOnce('Clerk: <APIKeys /> component is in early access and not yet recommended for production use.');

if (disabledAllAPIKeysFeatures(this, this.environment)) {
if (this.#instanceType === 'development') {
throw new ClerkRuntimeError(warnings.cannotRenderAPIKeysComponent, {
Expand DownExpand Up@@ -1398,9 +1394,7 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Unmount a API keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the APIKeys component from.
Expand Down
26 changes: 18 additions & 8 deletions packages/clerk-js/src/core/modules/apiKeys/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,10 +15,12 @@ import { convertPageToOffsetSearchParams } from '@/utils/convertPageToOffsetSear
import { APIKey, BaseResource } from '../../resources/internal';

export class APIKeys implements APIKeysNamespace {
static readonly #pathRoot = '/api_keys';

/**
* Returns the base options for the FAPI proxy requests.
*/
private async getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
async #getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
const token = await BaseResource.clerk.session?.getToken();
if (!token) {
throw new ClerkRuntimeError('No valid session token available', { code: 'no_session_token' });
Expand All@@ -27,7 +29,7 @@ export class APIKeys implements APIKeysNamespace {
return {
// Set to an empty string because FAPI Proxy does not include the version in the path.
pathPrefix: '',
// Set the session token as a Bearer token in the Authorization header for authentication.
// FAPI Proxy looks for the session token in the Authorization header.
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
Expand All@@ -37,11 +39,19 @@ export class APIKeys implements APIKeysNamespace {
};
}

/**
* Retrieves a paginated list of API keys.
*
* The subject (owner) is resolved in the following order:
* 1. Explicit `subject` param (user or organization ID)
* 2. Active organization ID
* 3. Current user ID
*/
async getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>> {
return BaseResource._fetch({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'GET',
path: '/api_keys',
path: APIKeys.#pathRoot,
search: convertPageToOffsetSearchParams({
...params,
subject: params?.subject ?? BaseResource.clerk.organization?.id ?? BaseResource.clerk.user?.id ?? '',
Expand All@@ -59,8 +69,8 @@ export class APIKeys implements APIKeysNamespace {

async create(params: CreateAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
path: '/api_keys',
...(await this.#getBaseFapiProxyOptions()),
path: APIKeys.#pathRoot,
method: 'POST',
body: JSON.stringify({
type: 'api_key',
Expand All@@ -76,9 +86,9 @@ export class APIKeys implements APIKeysNamespace {

async revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'POST',
path: `/api_keys/${params.apiKeyID}/revoke`,
path: `${APIKeys.#pathRoot}/${params.apiKeyID}/revoke`,
body: JSON.stringify({
revocation_reason: params.revocationReason,
}),
Expand Down
2 changes: 2 additions & 0 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,6 +182,8 @@ export default defineNuxtModule<ModuleOptions>({
'RedirectToCreateOrganization',
'Show',
'Waitlist',
// API Keys
'APIKeys',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,6 +57,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/experimental.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,6 @@ export type {
} from '@clerk/shared/types';

export {
__experimental_useAPIKeys as useAPIKeys,
__experimental_PaymentElementProvider as PaymentElementProvider,
__experimental_usePaymentElement as usePaymentElement,
__experimental_PaymentElement as PaymentElement,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/hooks/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ export {
useUser,
useSession,
useReverification,
useAPIKeys,
__experimental_useCheckout,
__experimental_CheckoutProvider,
__experimental_usePaymentElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/react/hooks/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
export { assertContextExists, createContextAndHook } from './createContextAndHook';
export { useAPIKeys as __experimental_useAPIKeys } from './useAPIKeys';
export { useAPIKeys } from './useAPIKeys';
export { useOrganization } from './useOrganization';
export { useOrganizationCreationDefaults } from './useOrganizationCreationDefaults';
export type {
Expand Down
6 changes: 2 additions & 4 deletions packages/shared/src/react/hooks/useAPIKeys.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ import { createCacheKeys } from './createCacheKeys';
import { usePagesOrInfinite, useWithSafeValues } from './usePagesOrInfinite';

/**
* @internal
* @interface
*/
export type UseAPIKeysParams = PaginatedHookConfig<
GetAPIKeysParams & {
Expand All@@ -21,16 +21,14 @@ export type UseAPIKeysParams = PaginatedHookConfig<
>;

/**
* @internal
* @interface
*/
export type UseAPIKeysReturn<T extends UseAPIKeysParams> = PaginatedResources<
APIKeyResource,
T extends { infinite: true } ? true : false
>;

/**
* @internal
*
* The `useAPIKeys()` hook provides access to paginated API keys for the current user or organization.
*
* @example
Expand Down
6 changes: 0 additions & 6 deletions packages/shared/src/types/apiKeys.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,20 +23,14 @@ export interface APIKeyResource extends ClerkResource {

export interface APIKeysNamespace {
/**
* @experimental This API is in early access and may change in future releases.
*
* Retrieves a paginated list of API keys for the current user or organization.
*/
getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Creates a new API key.
*/
create(params: CreateAPIKeyParams): Promise<APIKeyResource>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Revokes a given API key by ID.
*/
revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource>;
Expand Down
17 changes: 3 additions & 14 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -644,26 +644,18 @@ export interface Clerk {
unmountPricingTable: (targetNode: HTMLDivElement) => void;

/**
* This API is in early access and may change in future releases.
*
* Mount a api keys component at the target element.
*
* @experimental
* Mount an API keys component at the target element.
*
* @param targetNode - Target to mount the APIKeys component.
* @param props - Configuration parameters.
*/
mountAPIKeys: (targetNode: HTMLDivElement, props?: APIKeysProps) => void;

/**
* This API is in early access and may change in future releases.
*
* Unmount a api keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @experimental
*
* @param targetNode - Target node to unmount the ApiKeys component from.
* @param targetNode - Target node to unmount the APIKeys component from.
*/
unmountAPIKeys: (targetNode: HTMLDivElement) => void;

Expand DownExpand Up@@ -1032,9 +1024,6 @@ export interface Clerk {

/**
* API Keys Object
*
* @experimental
* This API is in early access and may change in future releases.
*/
apiKeys: APIKeysNamespace;

Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,6 +63,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
7 changes: 1 addition & 6 deletions packages/ui/src/components/APIKeys/APIKeys.tsx
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
import { isClerkAPIResponseError } from '@clerk/shared/error';
import { isOrganizationId } from '@clerk/shared/internal/clerk-js/organization';
import {
__experimental_useAPIKeys as useAPIKeys,
__internal_useOrganizationBase,
useClerk,
useUser,
} from '@clerk/shared/react';
import { useAPIKeys, __internal_useOrganizationBase, useClerk, useUser } from '@clerk/shared/react';
import type { APIKeyResource } from '@clerk/shared/types';
import { lazy, useState } from 'react';

Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
30f009b
feat: Remove experimental and early access tags from API keys
wobsoriano Mar 12, 2026
7b634e2
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
4652d20
chore: revert useAPIKeys to experimental
wobsoriano Mar 13, 2026
b51866c
chore: clean up namespace
wobsoriano Mar 13, 2026
e11c5e8
chore: document resolving api keys by subject
wobsoriano Mar 13, 2026
4fa2da4
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
3a7a46d
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
b56ccac
chore: remove experimental from hook
wobsoriano Mar 13, 2026
501c43e
chore: add interface tag to hook types
wobsoriano Mar 13, 2026
27f9865
chore: add changeset
wobsoriano Mar 13, 2026
4ea024f
chore: update changeset
wobsoriano Mar 13, 2026
8d014da
Update stable-api-keys.md
wobsoriano Mar 13, 2026
4bc365e
Update import paths for APIKeys and useAPIKeys
wobsoriano Mar 13, 2026
7d0310f
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 25, 2026
2e215b9
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
6cfaeb6
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
096545b
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 3, 2026
7a64501
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
fc523e8
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
3ad7a28
chore(nuxt): Auto import APIKeys component
wobsoriano Apr 6, 2026
8eea279
chore: remove docs
wobsoriano Apr 6, 2026
5dbb83d
chore: add nuxt changeset
wobsoriano Apr 6, 2026
f253725
chore: fix formatting
wobsoriano Apr 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/empty-lights-dress.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/nuxt': minor
---

API keys is now generally available.

```vue
<script setup>
// Components are automatically imported
</script>

<template>
<APIKeys />
</template>
```
41 changes: 41 additions & 0 deletions .changeset/stable-api-keys.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
---
"@clerk/shared": minor
"@clerk/react": minor
"@clerk/clerk-js": minor
"@clerk/ui": minor
---

API keys is now generally available.

### `<APIKeys />` component

```tsx
import { APIKeys } from '@clerk/react';

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

### `useAPIKeys()` hook

```tsx
import { useAPIKeys } from '@clerk/react';

export default function CustomAPIKeys() {
const { data, isLoading, page, pageCount, fetchNext, fetchPrevious } = useAPIKeys({
pageSize: 10,
initialPage: 1,
});

if (isLoading) return <div>Loading...</div>;

return (
<ul>
{data?.map((key) => (
<li key={key.id}>{key.name}</li>
))}
</ul>
);
}
```
10 changes: 2 additions & 8 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1345,15 +1345,11 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Mount a API keys component at the target element.
* Mount an API keys component at the target element.
* @param targetNode Target to mount the APIKeys component.
* @param props Configuration parameters.
*/
public mountAPIKeys = (node: HTMLDivElement, props?: APIKeysProps) => {
logger.warnOnce('Clerk: <APIKeys /> component is in early access and not yet recommended for production use.');

if (disabledAllAPIKeysFeatures(this, this.environment)) {
if (this.#instanceType === 'development') {
throw new ClerkRuntimeError(warnings.cannotRenderAPIKeysComponent, {
Expand DownExpand Up@@ -1398,9 +1394,7 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Unmount a API keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the APIKeys component from.
Expand Down
26 changes: 18 additions & 8 deletions packages/clerk-js/src/core/modules/apiKeys/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,10 +15,12 @@ import { convertPageToOffsetSearchParams } from '@/utils/convertPageToOffsetSear
import { APIKey, BaseResource } from '../../resources/internal';

export class APIKeys implements APIKeysNamespace {
static readonly #pathRoot = '/api_keys';

/**
* Returns the base options for the FAPI proxy requests.
*/
private async getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
async #getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
const token = await BaseResource.clerk.session?.getToken();
if (!token) {
throw new ClerkRuntimeError('No valid session token available', { code: 'no_session_token' });
Expand All@@ -27,7 +29,7 @@ export class APIKeys implements APIKeysNamespace {
return {
// Set to an empty string because FAPI Proxy does not include the version in the path.
pathPrefix: '',
// Set the session token as a Bearer token in the Authorization header for authentication.
// FAPI Proxy looks for the session token in the Authorization header.
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
Expand All@@ -37,11 +39,19 @@ export class APIKeys implements APIKeysNamespace {
};
}

/**
* Retrieves a paginated list of API keys.
*
* The subject (owner) is resolved in the following order:
* 1. Explicit `subject` param (user or organization ID)
* 2. Active organization ID
* 3. Current user ID
*/
async getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>> {
return BaseResource._fetch({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'GET',
path: '/api_keys',
path: APIKeys.#pathRoot,
search: convertPageToOffsetSearchParams({
...params,
subject: params?.subject ?? BaseResource.clerk.organization?.id ?? BaseResource.clerk.user?.id ?? '',
Expand All@@ -59,8 +69,8 @@ export class APIKeys implements APIKeysNamespace {

async create(params: CreateAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
path: '/api_keys',
...(await this.#getBaseFapiProxyOptions()),
path: APIKeys.#pathRoot,
method: 'POST',
body: JSON.stringify({
type: 'api_key',
Expand All@@ -76,9 +86,9 @@ export class APIKeys implements APIKeysNamespace {

async revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'POST',
path: `/api_keys/${params.apiKeyID}/revoke`,
path: `${APIKeys.#pathRoot}/${params.apiKeyID}/revoke`,
body: JSON.stringify({
revocation_reason: params.revocationReason,
}),
Expand Down
2 changes: 2 additions & 0 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,6 +182,8 @@ export default defineNuxtModule<ModuleOptions>({
'RedirectToCreateOrganization',
'Show',
'Waitlist',
// API Keys
'APIKeys',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,6 +57,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/experimental.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,6 @@ export type {
} from '@clerk/shared/types';

export {
__experimental_useAPIKeys as useAPIKeys,
__experimental_PaymentElementProvider as PaymentElementProvider,
__experimental_usePaymentElement as usePaymentElement,
__experimental_PaymentElement as PaymentElement,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/hooks/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ export {
useUser,
useSession,
useReverification,
useAPIKeys,
__experimental_useCheckout,
__experimental_CheckoutProvider,
__experimental_usePaymentElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/react/hooks/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
export { assertContextExists, createContextAndHook } from './createContextAndHook';
export { useAPIKeys as __experimental_useAPIKeys } from './useAPIKeys';
export { useAPIKeys } from './useAPIKeys';
export { useOrganization } from './useOrganization';
export { useOrganizationCreationDefaults } from './useOrganizationCreationDefaults';
export type {
Expand Down
6 changes: 2 additions & 4 deletions packages/shared/src/react/hooks/useAPIKeys.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ import { createCacheKeys } from './createCacheKeys';
import { usePagesOrInfinite, useWithSafeValues } from './usePagesOrInfinite';

/**
* @internal
* @interface
*/
export type UseAPIKeysParams = PaginatedHookConfig<
GetAPIKeysParams & {
Expand All@@ -21,16 +21,14 @@ export type UseAPIKeysParams = PaginatedHookConfig<
>;

/**
* @internal
* @interface
*/
export type UseAPIKeysReturn<T extends UseAPIKeysParams> = PaginatedResources<
APIKeyResource,
T extends { infinite: true } ? true : false
>;

/**
* @internal
*
* The `useAPIKeys()` hook provides access to paginated API keys for the current user or organization.
*
* @example
Expand Down
6 changes: 0 additions & 6 deletions packages/shared/src/types/apiKeys.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,20 +23,14 @@ export interface APIKeyResource extends ClerkResource {

export interface APIKeysNamespace {
/**
* @experimental This API is in early access and may change in future releases.
*
* Retrieves a paginated list of API keys for the current user or organization.
*/
getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Creates a new API key.
*/
create(params: CreateAPIKeyParams): Promise<APIKeyResource>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Revokes a given API key by ID.
*/
revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource>;
Expand Down
17 changes: 3 additions & 14 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -644,26 +644,18 @@ export interface Clerk {
unmountPricingTable: (targetNode: HTMLDivElement) => void;

/**
* This API is in early access and may change in future releases.
*
* Mount a api keys component at the target element.
*
* @experimental
* Mount an API keys component at the target element.
*
* @param targetNode - Target to mount the APIKeys component.
* @param props - Configuration parameters.
*/
mountAPIKeys: (targetNode: HTMLDivElement, props?: APIKeysProps) => void;

/**
* This API is in early access and may change in future releases.
*
* Unmount a api keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @experimental
*
* @param targetNode - Target node to unmount the ApiKeys component from.
* @param targetNode - Target node to unmount the APIKeys component from.
*/
unmountAPIKeys: (targetNode: HTMLDivElement) => void;

Expand DownExpand Up@@ -1032,9 +1024,6 @@ export interface Clerk {

/**
* API Keys Object
*
* @experimental
* This API is in early access and may change in future releases.
*/
apiKeys: APIKeysNamespace;

Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,6 +63,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
7 changes: 1 addition & 6 deletions packages/ui/src/components/APIKeys/APIKeys.tsx
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
import { isClerkAPIResponseError } from '@clerk/shared/error';
import { isOrganizationId } from '@clerk/shared/internal/clerk-js/organization';
import {
__experimental_useAPIKeys as useAPIKeys,
__internal_useOrganizationBase,
useClerk,
useUser,
} from '@clerk/shared/react';
import { useAPIKeys, __internal_useOrganizationBase, useClerk, useUser } from '@clerk/shared/react';
import type { APIKeyResource } from '@clerk/shared/types';
import { lazy, useState } from 'react';

Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
30f009b
feat: Remove experimental and early access tags from API keys
wobsoriano Mar 12, 2026
7b634e2
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
4652d20
chore: revert useAPIKeys to experimental
wobsoriano Mar 13, 2026
b51866c
chore: clean up namespace
wobsoriano Mar 13, 2026
e11c5e8
chore: document resolving api keys by subject
wobsoriano Mar 13, 2026
4fa2da4
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
3a7a46d
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
b56ccac
chore: remove experimental from hook
wobsoriano Mar 13, 2026
501c43e
chore: add interface tag to hook types
wobsoriano Mar 13, 2026
27f9865
chore: add changeset
wobsoriano Mar 13, 2026
4ea024f
chore: update changeset
wobsoriano Mar 13, 2026
8d014da
Update stable-api-keys.md
wobsoriano Mar 13, 2026
4bc365e
Update import paths for APIKeys and useAPIKeys
wobsoriano Mar 13, 2026
7d0310f
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 25, 2026
2e215b9
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
6cfaeb6
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
096545b
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 3, 2026
7a64501
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
fc523e8
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
3ad7a28
chore(nuxt): Auto import APIKeys component
wobsoriano Apr 6, 2026
8eea279
chore: remove docs
wobsoriano Apr 6, 2026
5dbb83d
chore: add nuxt changeset
wobsoriano Apr 6, 2026
f253725
chore: fix formatting
wobsoriano Apr 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/empty-lights-dress.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/nuxt': minor
---

API keys is now generally available.

```vue
<script setup>
// Components are automatically imported
</script>

<template>
<APIKeys />
</template>
```
41 changes: 41 additions & 0 deletions .changeset/stable-api-keys.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
---
"@clerk/shared": minor
"@clerk/react": minor
"@clerk/clerk-js": minor
"@clerk/ui": minor
---

API keys is now generally available.

### `<APIKeys />` component

```tsx
import { APIKeys } from '@clerk/react';

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

### `useAPIKeys()` hook

```tsx
import { useAPIKeys } from '@clerk/react';

export default function CustomAPIKeys() {
const { data, isLoading, page, pageCount, fetchNext, fetchPrevious } = useAPIKeys({
pageSize: 10,
initialPage: 1,
});

if (isLoading) return <div>Loading...</div>;

return (
<ul>
{data?.map((key) => (
<li key={key.id}>{key.name}</li>
))}
</ul>
);
}
```
10 changes: 2 additions & 8 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1345,15 +1345,11 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Mount a API keys component at the target element.
* Mount an API keys component at the target element.
* @param targetNode Target to mount the APIKeys component.
* @param props Configuration parameters.
*/
public mountAPIKeys = (node: HTMLDivElement, props?: APIKeysProps) => {
logger.warnOnce('Clerk: <APIKeys /> component is in early access and not yet recommended for production use.');

if (disabledAllAPIKeysFeatures(this, this.environment)) {
if (this.#instanceType === 'development') {
throw new ClerkRuntimeError(warnings.cannotRenderAPIKeysComponent, {
Expand DownExpand Up@@ -1398,9 +1394,7 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Unmount a API keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the APIKeys component from.
Expand Down
26 changes: 18 additions & 8 deletions packages/clerk-js/src/core/modules/apiKeys/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,10 +15,12 @@ import { convertPageToOffsetSearchParams } from '@/utils/convertPageToOffsetSear
import { APIKey, BaseResource } from '../../resources/internal';

export class APIKeys implements APIKeysNamespace {
static readonly #pathRoot = '/api_keys';

/**
* Returns the base options for the FAPI proxy requests.
*/
private async getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
async #getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
const token = await BaseResource.clerk.session?.getToken();
if (!token) {
throw new ClerkRuntimeError('No valid session token available', { code: 'no_session_token' });
Expand All@@ -27,7 +29,7 @@ export class APIKeys implements APIKeysNamespace {
return {
// Set to an empty string because FAPI Proxy does not include the version in the path.
pathPrefix: '',
// Set the session token as a Bearer token in the Authorization header for authentication.
// FAPI Proxy looks for the session token in the Authorization header.
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
Expand All@@ -37,11 +39,19 @@ export class APIKeys implements APIKeysNamespace {
};
}

/**
* Retrieves a paginated list of API keys.
*
* The subject (owner) is resolved in the following order:
* 1. Explicit `subject` param (user or organization ID)
* 2. Active organization ID
* 3. Current user ID
*/
async getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>> {
return BaseResource._fetch({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'GET',
path: '/api_keys',
path: APIKeys.#pathRoot,
search: convertPageToOffsetSearchParams({
...params,
subject: params?.subject ?? BaseResource.clerk.organization?.id ?? BaseResource.clerk.user?.id ?? '',
Expand All@@ -59,8 +69,8 @@ export class APIKeys implements APIKeysNamespace {

async create(params: CreateAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
path: '/api_keys',
...(await this.#getBaseFapiProxyOptions()),
path: APIKeys.#pathRoot,
method: 'POST',
body: JSON.stringify({
type: 'api_key',
Expand All@@ -76,9 +86,9 @@ export class APIKeys implements APIKeysNamespace {

async revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'POST',
path: `/api_keys/${params.apiKeyID}/revoke`,
path: `${APIKeys.#pathRoot}/${params.apiKeyID}/revoke`,
body: JSON.stringify({
revocation_reason: params.revocationReason,
}),
Expand Down
2 changes: 2 additions & 0 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,6 +182,8 @@ export default defineNuxtModule<ModuleOptions>({
'RedirectToCreateOrganization',
'Show',
'Waitlist',
// API Keys
'APIKeys',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,6 +57,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/experimental.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,6 @@ export type {
} from '@clerk/shared/types';

export {
__experimental_useAPIKeys as useAPIKeys,
__experimental_PaymentElementProvider as PaymentElementProvider,
__experimental_usePaymentElement as usePaymentElement,
__experimental_PaymentElement as PaymentElement,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/hooks/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ export {
useUser,
useSession,
useReverification,
useAPIKeys,
__experimental_useCheckout,
__experimental_CheckoutProvider,
__experimental_usePaymentElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/react/hooks/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
export { assertContextExists, createContextAndHook } from './createContextAndHook';
export { useAPIKeys as __experimental_useAPIKeys } from './useAPIKeys';
export { useAPIKeys } from './useAPIKeys';
export { useOrganization } from './useOrganization';
export { useOrganizationCreationDefaults } from './useOrganizationCreationDefaults';
export type {
Expand Down
6 changes: 2 additions & 4 deletions packages/shared/src/react/hooks/useAPIKeys.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ import { createCacheKeys } from './createCacheKeys';
import { usePagesOrInfinite, useWithSafeValues } from './usePagesOrInfinite';

/**
* @internal
* @interface
*/
export type UseAPIKeysParams = PaginatedHookConfig<
GetAPIKeysParams & {
Expand All@@ -21,16 +21,14 @@ export type UseAPIKeysParams = PaginatedHookConfig<
>;

/**
* @internal
* @interface
*/
export type UseAPIKeysReturn<T extends UseAPIKeysParams> = PaginatedResources<
APIKeyResource,
T extends { infinite: true } ? true : false
>;

/**
* @internal
*
* The `useAPIKeys()` hook provides access to paginated API keys for the current user or organization.
*
* @example
Expand Down
6 changes: 0 additions & 6 deletions packages/shared/src/types/apiKeys.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,20 +23,14 @@ export interface APIKeyResource extends ClerkResource {

export interface APIKeysNamespace {
/**
* @experimental This API is in early access and may change in future releases.
*
* Retrieves a paginated list of API keys for the current user or organization.
*/
getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Creates a new API key.
*/
create(params: CreateAPIKeyParams): Promise<APIKeyResource>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Revokes a given API key by ID.
*/
revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource>;
Expand Down
17 changes: 3 additions & 14 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -644,26 +644,18 @@ export interface Clerk {
unmountPricingTable: (targetNode: HTMLDivElement) => void;

/**
* This API is in early access and may change in future releases.
*
* Mount a api keys component at the target element.
*
* @experimental
* Mount an API keys component at the target element.
*
* @param targetNode - Target to mount the APIKeys component.
* @param props - Configuration parameters.
*/
mountAPIKeys: (targetNode: HTMLDivElement, props?: APIKeysProps) => void;

/**
* This API is in early access and may change in future releases.
*
* Unmount a api keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @experimental
*
* @param targetNode - Target node to unmount the ApiKeys component from.
* @param targetNode - Target node to unmount the APIKeys component from.
*/
unmountAPIKeys: (targetNode: HTMLDivElement) => void;

Expand DownExpand Up@@ -1032,9 +1024,6 @@ export interface Clerk {

/**
* API Keys Object
*
* @experimental
* This API is in early access and may change in future releases.
*/
apiKeys: APIKeysNamespace;

Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,6 +63,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
7 changes: 1 addition & 6 deletions packages/ui/src/components/APIKeys/APIKeys.tsx
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
import { isClerkAPIResponseError } from '@clerk/shared/error';
import { isOrganizationId } from '@clerk/shared/internal/clerk-js/organization';
import {
__experimental_useAPIKeys as useAPIKeys,
__internal_useOrganizationBase,
useClerk,
useUser,
} from '@clerk/shared/react';
import { useAPIKeys, __internal_useOrganizationBase, useClerk, useUser } from '@clerk/shared/react';
import type { APIKeyResource } from '@clerk/shared/types';
import { lazy, useState } from 'react';

Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
30f009b
feat: Remove experimental and early access tags from API keys
wobsoriano Mar 12, 2026
7b634e2
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
4652d20
chore: revert useAPIKeys to experimental
wobsoriano Mar 13, 2026
b51866c
chore: clean up namespace
wobsoriano Mar 13, 2026
e11c5e8
chore: document resolving api keys by subject
wobsoriano Mar 13, 2026
4fa2da4
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
3a7a46d
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
b56ccac
chore: remove experimental from hook
wobsoriano Mar 13, 2026
501c43e
chore: add interface tag to hook types
wobsoriano Mar 13, 2026
27f9865
chore: add changeset
wobsoriano Mar 13, 2026
4ea024f
chore: update changeset
wobsoriano Mar 13, 2026
8d014da
Update stable-api-keys.md
wobsoriano Mar 13, 2026
4bc365e
Update import paths for APIKeys and useAPIKeys
wobsoriano Mar 13, 2026
7d0310f
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 25, 2026
2e215b9
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
6cfaeb6
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
096545b
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 3, 2026
7a64501
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
fc523e8
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
3ad7a28
chore(nuxt): Auto import APIKeys component
wobsoriano Apr 6, 2026
8eea279
chore: remove docs
wobsoriano Apr 6, 2026
5dbb83d
chore: add nuxt changeset
wobsoriano Apr 6, 2026
f253725
chore: fix formatting
wobsoriano Apr 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/empty-lights-dress.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/nuxt': minor
---

API keys is now generally available.

```vue
<script setup>
// Components are automatically imported
</script>

<template>
<APIKeys />
</template>
```
41 changes: 41 additions & 0 deletions .changeset/stable-api-keys.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
---
"@clerk/shared": minor
"@clerk/react": minor
"@clerk/clerk-js": minor
"@clerk/ui": minor
---

API keys is now generally available.

### `<APIKeys />` component

```tsx
import { APIKeys } from '@clerk/react';

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

### `useAPIKeys()` hook

```tsx
import { useAPIKeys } from '@clerk/react';

export default function CustomAPIKeys() {
const { data, isLoading, page, pageCount, fetchNext, fetchPrevious } = useAPIKeys({
pageSize: 10,
initialPage: 1,
});

if (isLoading) return <div>Loading...</div>;

return (
<ul>
{data?.map((key) => (
<li key={key.id}>{key.name}</li>
))}
</ul>
);
}
```
10 changes: 2 additions & 8 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1345,15 +1345,11 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Mount a API keys component at the target element.
* Mount an API keys component at the target element.
* @param targetNode Target to mount the APIKeys component.
* @param props Configuration parameters.
*/
public mountAPIKeys = (node: HTMLDivElement, props?: APIKeysProps) => {
logger.warnOnce('Clerk: <APIKeys /> component is in early access and not yet recommended for production use.');

if (disabledAllAPIKeysFeatures(this, this.environment)) {
if (this.#instanceType === 'development') {
throw new ClerkRuntimeError(warnings.cannotRenderAPIKeysComponent, {
Expand DownExpand Up@@ -1398,9 +1394,7 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Unmount a API keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the APIKeys component from.
Expand Down
26 changes: 18 additions & 8 deletions packages/clerk-js/src/core/modules/apiKeys/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,10 +15,12 @@ import { convertPageToOffsetSearchParams } from '@/utils/convertPageToOffsetSear
import { APIKey, BaseResource } from '../../resources/internal';

export class APIKeys implements APIKeysNamespace {
static readonly #pathRoot = '/api_keys';

/**
* Returns the base options for the FAPI proxy requests.
*/
private async getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
async #getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
const token = await BaseResource.clerk.session?.getToken();
if (!token) {
throw new ClerkRuntimeError('No valid session token available', { code: 'no_session_token' });
Expand All@@ -27,7 +29,7 @@ export class APIKeys implements APIKeysNamespace {
return {
// Set to an empty string because FAPI Proxy does not include the version in the path.
pathPrefix: '',
// Set the session token as a Bearer token in the Authorization header for authentication.
// FAPI Proxy looks for the session token in the Authorization header.
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
Expand All@@ -37,11 +39,19 @@ export class APIKeys implements APIKeysNamespace {
};
}

/**
* Retrieves a paginated list of API keys.
*
* The subject (owner) is resolved in the following order:
* 1. Explicit `subject` param (user or organization ID)
* 2. Active organization ID
* 3. Current user ID
*/
async getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>> {
return BaseResource._fetch({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'GET',
path: '/api_keys',
path: APIKeys.#pathRoot,
search: convertPageToOffsetSearchParams({
...params,
subject: params?.subject ?? BaseResource.clerk.organization?.id ?? BaseResource.clerk.user?.id ?? '',
Expand All@@ -59,8 +69,8 @@ export class APIKeys implements APIKeysNamespace {

async create(params: CreateAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
path: '/api_keys',
...(await this.#getBaseFapiProxyOptions()),
path: APIKeys.#pathRoot,
method: 'POST',
body: JSON.stringify({
type: 'api_key',
Expand All@@ -76,9 +86,9 @@ export class APIKeys implements APIKeysNamespace {

async revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'POST',
path: `/api_keys/${params.apiKeyID}/revoke`,
path: `${APIKeys.#pathRoot}/${params.apiKeyID}/revoke`,
body: JSON.stringify({
revocation_reason: params.revocationReason,
}),
Expand Down
2 changes: 2 additions & 0 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,6 +182,8 @@ export default defineNuxtModule<ModuleOptions>({
'RedirectToCreateOrganization',
'Show',
'Waitlist',
// API Keys
'APIKeys',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,6 +57,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/experimental.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,6 @@ export type {
} from '@clerk/shared/types';

export {
__experimental_useAPIKeys as useAPIKeys,
__experimental_PaymentElementProvider as PaymentElementProvider,
__experimental_usePaymentElement as usePaymentElement,
__experimental_PaymentElement as PaymentElement,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/hooks/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ export {
useUser,
useSession,
useReverification,
useAPIKeys,
__experimental_useCheckout,
__experimental_CheckoutProvider,
__experimental_usePaymentElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/react/hooks/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
export { assertContextExists, createContextAndHook } from './createContextAndHook';
export { useAPIKeys as __experimental_useAPIKeys } from './useAPIKeys';
export { useAPIKeys } from './useAPIKeys';
export { useOrganization } from './useOrganization';
export { useOrganizationCreationDefaults } from './useOrganizationCreationDefaults';
export type {
Expand Down
6 changes: 2 additions & 4 deletions packages/shared/src/react/hooks/useAPIKeys.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ import { createCacheKeys } from './createCacheKeys';
import { usePagesOrInfinite, useWithSafeValues } from './usePagesOrInfinite';

/**
* @internal
* @interface
*/
export type UseAPIKeysParams = PaginatedHookConfig<
GetAPIKeysParams & {
Expand All@@ -21,16 +21,14 @@ export type UseAPIKeysParams = PaginatedHookConfig<
>;

/**
* @internal
* @interface
*/
export type UseAPIKeysReturn<T extends UseAPIKeysParams> = PaginatedResources<
APIKeyResource,
T extends { infinite: true } ? true : false
>;

/**
* @internal
*
* The `useAPIKeys()` hook provides access to paginated API keys for the current user or organization.
*
* @example
Expand Down
6 changes: 0 additions & 6 deletions packages/shared/src/types/apiKeys.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,20 +23,14 @@ export interface APIKeyResource extends ClerkResource {

export interface APIKeysNamespace {
/**
* @experimental This API is in early access and may change in future releases.
*
* Retrieves a paginated list of API keys for the current user or organization.
*/
getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Creates a new API key.
*/
create(params: CreateAPIKeyParams): Promise<APIKeyResource>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Revokes a given API key by ID.
*/
revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource>;
Expand Down
17 changes: 3 additions & 14 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -644,26 +644,18 @@ export interface Clerk {
unmountPricingTable: (targetNode: HTMLDivElement) => void;

/**
* This API is in early access and may change in future releases.
*
* Mount a api keys component at the target element.
*
* @experimental
* Mount an API keys component at the target element.
*
* @param targetNode - Target to mount the APIKeys component.
* @param props - Configuration parameters.
*/
mountAPIKeys: (targetNode: HTMLDivElement, props?: APIKeysProps) => void;

/**
* This API is in early access and may change in future releases.
*
* Unmount a api keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @experimental
*
* @param targetNode - Target node to unmount the ApiKeys component from.
* @param targetNode - Target node to unmount the APIKeys component from.
*/
unmountAPIKeys: (targetNode: HTMLDivElement) => void;

Expand DownExpand Up@@ -1032,9 +1024,6 @@ export interface Clerk {

/**
* API Keys Object
*
* @experimental
* This API is in early access and may change in future releases.
*/
apiKeys: APIKeysNamespace;

Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,6 +63,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
7 changes: 1 addition & 6 deletions packages/ui/src/components/APIKeys/APIKeys.tsx
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
import { isClerkAPIResponseError } from '@clerk/shared/error';
import { isOrganizationId } from '@clerk/shared/internal/clerk-js/organization';
import {
__experimental_useAPIKeys as useAPIKeys,
__internal_useOrganizationBase,
useClerk,
useUser,
} from '@clerk/shared/react';
import { useAPIKeys, __internal_useOrganizationBase, useClerk, useUser } from '@clerk/shared/react';
import type { APIKeyResource } from '@clerk/shared/types';
import { lazy, useState } from 'react';

Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
30f009b
feat: Remove experimental and early access tags from API keys
wobsoriano Mar 12, 2026
7b634e2
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
4652d20
chore: revert useAPIKeys to experimental
wobsoriano Mar 13, 2026
b51866c
chore: clean up namespace
wobsoriano Mar 13, 2026
e11c5e8
chore: document resolving api keys by subject
wobsoriano Mar 13, 2026
4fa2da4
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
3a7a46d
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
b56ccac
chore: remove experimental from hook
wobsoriano Mar 13, 2026
501c43e
chore: add interface tag to hook types
wobsoriano Mar 13, 2026
27f9865
chore: add changeset
wobsoriano Mar 13, 2026
4ea024f
chore: update changeset
wobsoriano Mar 13, 2026
8d014da
Update stable-api-keys.md
wobsoriano Mar 13, 2026
4bc365e
Update import paths for APIKeys and useAPIKeys
wobsoriano Mar 13, 2026
7d0310f
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 25, 2026
2e215b9
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
6cfaeb6
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
096545b
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 3, 2026
7a64501
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
fc523e8
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
3ad7a28
chore(nuxt): Auto import APIKeys component
wobsoriano Apr 6, 2026
8eea279
chore: remove docs
wobsoriano Apr 6, 2026
5dbb83d
chore: add nuxt changeset
wobsoriano Apr 6, 2026
f253725
chore: fix formatting
wobsoriano Apr 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/empty-lights-dress.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/nuxt': minor
---

API keys is now generally available.

```vue
<script setup>
// Components are automatically imported
</script>

<template>
<APIKeys />
</template>
```
41 changes: 41 additions & 0 deletions .changeset/stable-api-keys.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
---
"@clerk/shared": minor
"@clerk/react": minor
"@clerk/clerk-js": minor
"@clerk/ui": minor
---

API keys is now generally available.

### `<APIKeys />` component

```tsx
import { APIKeys } from '@clerk/react';

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

### `useAPIKeys()` hook

```tsx
import { useAPIKeys } from '@clerk/react';

export default function CustomAPIKeys() {
const { data, isLoading, page, pageCount, fetchNext, fetchPrevious } = useAPIKeys({
pageSize: 10,
initialPage: 1,
});

if (isLoading) return <div>Loading...</div>;

return (
<ul>
{data?.map((key) => (
<li key={key.id}>{key.name}</li>
))}
</ul>
);
}
```
10 changes: 2 additions & 8 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1345,15 +1345,11 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Mount a API keys component at the target element.
* Mount an API keys component at the target element.
* @param targetNode Target to mount the APIKeys component.
* @param props Configuration parameters.
*/
public mountAPIKeys = (node: HTMLDivElement, props?: APIKeysProps) => {
logger.warnOnce('Clerk: <APIKeys /> component is in early access and not yet recommended for production use.');

if (disabledAllAPIKeysFeatures(this, this.environment)) {
if (this.#instanceType === 'development') {
throw new ClerkRuntimeError(warnings.cannotRenderAPIKeysComponent, {
Expand DownExpand Up@@ -1398,9 +1394,7 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Unmount a API keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the APIKeys component from.
Expand Down
26 changes: 18 additions & 8 deletions packages/clerk-js/src/core/modules/apiKeys/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,10 +15,12 @@ import { convertPageToOffsetSearchParams } from '@/utils/convertPageToOffsetSear
import { APIKey, BaseResource } from '../../resources/internal';

export class APIKeys implements APIKeysNamespace {
static readonly #pathRoot = '/api_keys';

/**
* Returns the base options for the FAPI proxy requests.
*/
private async getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
async #getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
const token = await BaseResource.clerk.session?.getToken();
if (!token) {
throw new ClerkRuntimeError('No valid session token available', { code: 'no_session_token' });
Expand All@@ -27,7 +29,7 @@ export class APIKeys implements APIKeysNamespace {
return {
// Set to an empty string because FAPI Proxy does not include the version in the path.
pathPrefix: '',
// Set the session token as a Bearer token in the Authorization header for authentication.
// FAPI Proxy looks for the session token in the Authorization header.
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
Expand All@@ -37,11 +39,19 @@ export class APIKeys implements APIKeysNamespace {
};
}

/**
* Retrieves a paginated list of API keys.
*
* The subject (owner) is resolved in the following order:
* 1. Explicit `subject` param (user or organization ID)
* 2. Active organization ID
* 3. Current user ID
*/
async getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>> {
return BaseResource._fetch({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'GET',
path: '/api_keys',
path: APIKeys.#pathRoot,
search: convertPageToOffsetSearchParams({
...params,
subject: params?.subject ?? BaseResource.clerk.organization?.id ?? BaseResource.clerk.user?.id ?? '',
Expand All@@ -59,8 +69,8 @@ export class APIKeys implements APIKeysNamespace {

async create(params: CreateAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
path: '/api_keys',
...(await this.#getBaseFapiProxyOptions()),
path: APIKeys.#pathRoot,
method: 'POST',
body: JSON.stringify({
type: 'api_key',
Expand All@@ -76,9 +86,9 @@ export class APIKeys implements APIKeysNamespace {

async revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'POST',
path: `/api_keys/${params.apiKeyID}/revoke`,
path: `${APIKeys.#pathRoot}/${params.apiKeyID}/revoke`,
body: JSON.stringify({
revocation_reason: params.revocationReason,
}),
Expand Down
2 changes: 2 additions & 0 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,6 +182,8 @@ export default defineNuxtModule<ModuleOptions>({
'RedirectToCreateOrganization',
'Show',
'Waitlist',
// API Keys
'APIKeys',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,6 +57,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/experimental.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,6 @@ export type {
} from '@clerk/shared/types';

export {
__experimental_useAPIKeys as useAPIKeys,
__experimental_PaymentElementProvider as PaymentElementProvider,
__experimental_usePaymentElement as usePaymentElement,
__experimental_PaymentElement as PaymentElement,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/hooks/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ export {
useUser,
useSession,
useReverification,
useAPIKeys,
__experimental_useCheckout,
__experimental_CheckoutProvider,
__experimental_usePaymentElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/react/hooks/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
export { assertContextExists, createContextAndHook } from './createContextAndHook';
export { useAPIKeys as __experimental_useAPIKeys } from './useAPIKeys';
export { useAPIKeys } from './useAPIKeys';
export { useOrganization } from './useOrganization';
export { useOrganizationCreationDefaults } from './useOrganizationCreationDefaults';
export type {
Expand Down
6 changes: 2 additions & 4 deletions packages/shared/src/react/hooks/useAPIKeys.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ import { createCacheKeys } from './createCacheKeys';
import { usePagesOrInfinite, useWithSafeValues } from './usePagesOrInfinite';

/**
* @internal
* @interface
*/
export type UseAPIKeysParams = PaginatedHookConfig<
GetAPIKeysParams & {
Expand All@@ -21,16 +21,14 @@ export type UseAPIKeysParams = PaginatedHookConfig<
>;

/**
* @internal
* @interface
*/
export type UseAPIKeysReturn<T extends UseAPIKeysParams> = PaginatedResources<
APIKeyResource,
T extends { infinite: true } ? true : false
>;

/**
* @internal
*
* The `useAPIKeys()` hook provides access to paginated API keys for the current user or organization.
*
* @example
Expand Down
6 changes: 0 additions & 6 deletions packages/shared/src/types/apiKeys.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,20 +23,14 @@ export interface APIKeyResource extends ClerkResource {

export interface APIKeysNamespace {
/**
* @experimental This API is in early access and may change in future releases.
*
* Retrieves a paginated list of API keys for the current user or organization.
*/
getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Creates a new API key.
*/
create(params: CreateAPIKeyParams): Promise<APIKeyResource>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Revokes a given API key by ID.
*/
revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource>;
Expand Down
17 changes: 3 additions & 14 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -644,26 +644,18 @@ export interface Clerk {
unmountPricingTable: (targetNode: HTMLDivElement) => void;

/**
* This API is in early access and may change in future releases.
*
* Mount a api keys component at the target element.
*
* @experimental
* Mount an API keys component at the target element.
*
* @param targetNode - Target to mount the APIKeys component.
* @param props - Configuration parameters.
*/
mountAPIKeys: (targetNode: HTMLDivElement, props?: APIKeysProps) => void;

/**
* This API is in early access and may change in future releases.
*
* Unmount a api keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @experimental
*
* @param targetNode - Target node to unmount the ApiKeys component from.
* @param targetNode - Target node to unmount the APIKeys component from.
*/
unmountAPIKeys: (targetNode: HTMLDivElement) => void;

Expand DownExpand Up@@ -1032,9 +1024,6 @@ export interface Clerk {

/**
* API Keys Object
*
* @experimental
* This API is in early access and may change in future releases.
*/
apiKeys: APIKeysNamespace;

Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,6 +63,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
7 changes: 1 addition & 6 deletions packages/ui/src/components/APIKeys/APIKeys.tsx
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
import { isClerkAPIResponseError } from '@clerk/shared/error';
import { isOrganizationId } from '@clerk/shared/internal/clerk-js/organization';
import {
__experimental_useAPIKeys as useAPIKeys,
__internal_useOrganizationBase,
useClerk,
useUser,
} from '@clerk/shared/react';
import { useAPIKeys, __internal_useOrganizationBase, useClerk, useUser } from '@clerk/shared/react';
import type { APIKeyResource } from '@clerk/shared/types';
import { lazy, useState } from 'react';

Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
30f009b
feat: Remove experimental and early access tags from API keys
wobsoriano Mar 12, 2026
7b634e2
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
4652d20
chore: revert useAPIKeys to experimental
wobsoriano Mar 13, 2026
b51866c
chore: clean up namespace
wobsoriano Mar 13, 2026
e11c5e8
chore: document resolving api keys by subject
wobsoriano Mar 13, 2026
4fa2da4
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
3a7a46d
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
b56ccac
chore: remove experimental from hook
wobsoriano Mar 13, 2026
501c43e
chore: add interface tag to hook types
wobsoriano Mar 13, 2026
27f9865
chore: add changeset
wobsoriano Mar 13, 2026
4ea024f
chore: update changeset
wobsoriano Mar 13, 2026
8d014da
Update stable-api-keys.md
wobsoriano Mar 13, 2026
4bc365e
Update import paths for APIKeys and useAPIKeys
wobsoriano Mar 13, 2026
7d0310f
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 25, 2026
2e215b9
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
6cfaeb6
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
096545b
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 3, 2026
7a64501
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
fc523e8
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
3ad7a28
chore(nuxt): Auto import APIKeys component
wobsoriano Apr 6, 2026
8eea279
chore: remove docs
wobsoriano Apr 6, 2026
5dbb83d
chore: add nuxt changeset
wobsoriano Apr 6, 2026
f253725
chore: fix formatting
wobsoriano Apr 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/empty-lights-dress.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/nuxt': minor
---

API keys is now generally available.

```vue
<script setup>
// Components are automatically imported
</script>

<template>
<APIKeys />
</template>
```
41 changes: 41 additions & 0 deletions .changeset/stable-api-keys.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
---
"@clerk/shared": minor
"@clerk/react": minor
"@clerk/clerk-js": minor
"@clerk/ui": minor
---

API keys is now generally available.

### `<APIKeys />` component

```tsx
import { APIKeys } from '@clerk/react';

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

### `useAPIKeys()` hook

```tsx
import { useAPIKeys } from '@clerk/react';

export default function CustomAPIKeys() {
const { data, isLoading, page, pageCount, fetchNext, fetchPrevious } = useAPIKeys({
pageSize: 10,
initialPage: 1,
});

if (isLoading) return <div>Loading...</div>;

return (
<ul>
{data?.map((key) => (
<li key={key.id}>{key.name}</li>
))}
</ul>
);
}
```
10 changes: 2 additions & 8 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1345,15 +1345,11 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Mount a API keys component at the target element.
* Mount an API keys component at the target element.
* @param targetNode Target to mount the APIKeys component.
* @param props Configuration parameters.
*/
public mountAPIKeys = (node: HTMLDivElement, props?: APIKeysProps) => {
logger.warnOnce('Clerk: <APIKeys /> component is in early access and not yet recommended for production use.');

if (disabledAllAPIKeysFeatures(this, this.environment)) {
if (this.#instanceType === 'development') {
throw new ClerkRuntimeError(warnings.cannotRenderAPIKeysComponent, {
Expand DownExpand Up@@ -1398,9 +1394,7 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Unmount a API keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the APIKeys component from.
Expand Down
26 changes: 18 additions & 8 deletions packages/clerk-js/src/core/modules/apiKeys/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,10 +15,12 @@ import { convertPageToOffsetSearchParams } from '@/utils/convertPageToOffsetSear
import { APIKey, BaseResource } from '../../resources/internal';

export class APIKeys implements APIKeysNamespace {
static readonly #pathRoot = '/api_keys';

/**
* Returns the base options for the FAPI proxy requests.
*/
private async getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
async #getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
const token = await BaseResource.clerk.session?.getToken();
if (!token) {
throw new ClerkRuntimeError('No valid session token available', { code: 'no_session_token' });
Expand All@@ -27,7 +29,7 @@ export class APIKeys implements APIKeysNamespace {
return {
// Set to an empty string because FAPI Proxy does not include the version in the path.
pathPrefix: '',
// Set the session token as a Bearer token in the Authorization header for authentication.
// FAPI Proxy looks for the session token in the Authorization header.
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
Expand All@@ -37,11 +39,19 @@ export class APIKeys implements APIKeysNamespace {
};
}

/**
* Retrieves a paginated list of API keys.
*
* The subject (owner) is resolved in the following order:
* 1. Explicit `subject` param (user or organization ID)
* 2. Active organization ID
* 3. Current user ID
*/
async getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>> {
return BaseResource._fetch({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'GET',
path: '/api_keys',
path: APIKeys.#pathRoot,
search: convertPageToOffsetSearchParams({
...params,
subject: params?.subject ?? BaseResource.clerk.organization?.id ?? BaseResource.clerk.user?.id ?? '',
Expand All@@ -59,8 +69,8 @@ export class APIKeys implements APIKeysNamespace {

async create(params: CreateAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
path: '/api_keys',
...(await this.#getBaseFapiProxyOptions()),
path: APIKeys.#pathRoot,
method: 'POST',
body: JSON.stringify({
type: 'api_key',
Expand All@@ -76,9 +86,9 @@ export class APIKeys implements APIKeysNamespace {

async revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'POST',
path: `/api_keys/${params.apiKeyID}/revoke`,
path: `${APIKeys.#pathRoot}/${params.apiKeyID}/revoke`,
body: JSON.stringify({
revocation_reason: params.revocationReason,
}),
Expand Down
2 changes: 2 additions & 0 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,6 +182,8 @@ export default defineNuxtModule<ModuleOptions>({
'RedirectToCreateOrganization',
'Show',
'Waitlist',
// API Keys
'APIKeys',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,6 +57,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/experimental.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,6 @@ export type {
} from '@clerk/shared/types';

export {
__experimental_useAPIKeys as useAPIKeys,
__experimental_PaymentElementProvider as PaymentElementProvider,
__experimental_usePaymentElement as usePaymentElement,
__experimental_PaymentElement as PaymentElement,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/hooks/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ export {
useUser,
useSession,
useReverification,
useAPIKeys,
__experimental_useCheckout,
__experimental_CheckoutProvider,
__experimental_usePaymentElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/react/hooks/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
export { assertContextExists, createContextAndHook } from './createContextAndHook';
export { useAPIKeys as __experimental_useAPIKeys } from './useAPIKeys';
export { useAPIKeys } from './useAPIKeys';
export { useOrganization } from './useOrganization';
export { useOrganizationCreationDefaults } from './useOrganizationCreationDefaults';
export type {
Expand Down
6 changes: 2 additions & 4 deletions packages/shared/src/react/hooks/useAPIKeys.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ import { createCacheKeys } from './createCacheKeys';
import { usePagesOrInfinite, useWithSafeValues } from './usePagesOrInfinite';

/**
* @internal
* @interface
*/
export type UseAPIKeysParams = PaginatedHookConfig<
GetAPIKeysParams & {
Expand All@@ -21,16 +21,14 @@ export type UseAPIKeysParams = PaginatedHookConfig<
>;

/**
* @internal
* @interface
*/
export type UseAPIKeysReturn<T extends UseAPIKeysParams> = PaginatedResources<
APIKeyResource,
T extends { infinite: true } ? true : false
>;

/**
* @internal
*
* The `useAPIKeys()` hook provides access to paginated API keys for the current user or organization.
*
* @example
Expand Down
6 changes: 0 additions & 6 deletions packages/shared/src/types/apiKeys.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,20 +23,14 @@ export interface APIKeyResource extends ClerkResource {

export interface APIKeysNamespace {
/**
* @experimental This API is in early access and may change in future releases.
*
* Retrieves a paginated list of API keys for the current user or organization.
*/
getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Creates a new API key.
*/
create(params: CreateAPIKeyParams): Promise<APIKeyResource>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Revokes a given API key by ID.
*/
revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource>;
Expand Down
17 changes: 3 additions & 14 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -644,26 +644,18 @@ export interface Clerk {
unmountPricingTable: (targetNode: HTMLDivElement) => void;

/**
* This API is in early access and may change in future releases.
*
* Mount a api keys component at the target element.
*
* @experimental
* Mount an API keys component at the target element.
*
* @param targetNode - Target to mount the APIKeys component.
* @param props - Configuration parameters.
*/
mountAPIKeys: (targetNode: HTMLDivElement, props?: APIKeysProps) => void;

/**
* This API is in early access and may change in future releases.
*
* Unmount a api keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @experimental
*
* @param targetNode - Target node to unmount the ApiKeys component from.
* @param targetNode - Target node to unmount the APIKeys component from.
*/
unmountAPIKeys: (targetNode: HTMLDivElement) => void;

Expand DownExpand Up@@ -1032,9 +1024,6 @@ export interface Clerk {

/**
* API Keys Object
*
* @experimental
* This API is in early access and may change in future releases.
*/
apiKeys: APIKeysNamespace;

Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,6 +63,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
7 changes: 1 addition & 6 deletions packages/ui/src/components/APIKeys/APIKeys.tsx
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
import { isClerkAPIResponseError } from '@clerk/shared/error';
import { isOrganizationId } from '@clerk/shared/internal/clerk-js/organization';
import {
__experimental_useAPIKeys as useAPIKeys,
__internal_useOrganizationBase,
useClerk,
useUser,
} from '@clerk/shared/react';
import { useAPIKeys, __internal_useOrganizationBase, useClerk, useUser } from '@clerk/shared/react';
import type { APIKeyResource } from '@clerk/shared/types';
import { lazy, useState } from 'react';

Expand Down
Loading
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
30f009b
feat: Remove experimental and early access tags from API keys
wobsoriano Mar 12, 2026
7b634e2
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
4652d20
chore: revert useAPIKeys to experimental
wobsoriano Mar 13, 2026
b51866c
chore: clean up namespace
wobsoriano Mar 13, 2026
e11c5e8
chore: document resolving api keys by subject
wobsoriano Mar 13, 2026
4fa2da4
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
3a7a46d
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 13, 2026
b56ccac
chore: remove experimental from hook
wobsoriano Mar 13, 2026
501c43e
chore: add interface tag to hook types
wobsoriano Mar 13, 2026
27f9865
chore: add changeset
wobsoriano Mar 13, 2026
4ea024f
chore: update changeset
wobsoriano Mar 13, 2026
8d014da
Update stable-api-keys.md
wobsoriano Mar 13, 2026
4bc365e
Update import paths for APIKeys and useAPIKeys
wobsoriano Mar 13, 2026
7d0310f
Merge branch 'main' into rob/api-keys-stable
wobsoriano Mar 25, 2026
2e215b9
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
6cfaeb6
test: fix missing export in snapshot
wobsoriano Mar 25, 2026
096545b
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 3, 2026
7a64501
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
fc523e8
Merge branch 'main' into rob/api-keys-stable
wobsoriano Apr 6, 2026
3ad7a28
chore(nuxt): Auto import APIKeys component
wobsoriano Apr 6, 2026
8eea279
chore: remove docs
wobsoriano Apr 6, 2026
5dbb83d
chore: add nuxt changeset
wobsoriano Apr 6, 2026
f253725
chore: fix formatting
wobsoriano Apr 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/empty-lights-dress.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
---
'@clerk/nuxt': minor
---

API keys is now generally available.

```vue
<script setup>
// Components are automatically imported
</script>

<template>
<APIKeys />
</template>
```
41 changes: 41 additions & 0 deletions .changeset/stable-api-keys.md
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
---
"@clerk/shared": minor
"@clerk/react": minor
"@clerk/clerk-js": minor
"@clerk/ui": minor
---

API keys is now generally available.

### `<APIKeys />` component

```tsx
import { APIKeys } from '@clerk/react';

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

### `useAPIKeys()` hook

```tsx
import { useAPIKeys } from '@clerk/react';

export default function CustomAPIKeys() {
const { data, isLoading, page, pageCount, fetchNext, fetchPrevious } = useAPIKeys({
pageSize: 10,
initialPage: 1,
});

if (isLoading) return <div>Loading...</div>;

return (
<ul>
{data?.map((key) => (
<li key={key.id}>{key.name}</li>
))}
</ul>
);
}
```
10 changes: 2 additions & 8 deletions packages/clerk-js/src/core/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -1345,15 +1345,11 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Mount a API keys component at the target element.
* Mount an API keys component at the target element.
* @param targetNode Target to mount the APIKeys component.
* @param props Configuration parameters.
*/
public mountAPIKeys = (node: HTMLDivElement, props?: APIKeysProps) => {
logger.warnOnce('Clerk: <APIKeys /> component is in early access and not yet recommended for production use.');

if (disabledAllAPIKeysFeatures(this, this.environment)) {
if (this.#instanceType === 'development') {
throw new ClerkRuntimeError(warnings.cannotRenderAPIKeysComponent, {
Expand DownExpand Up@@ -1398,9 +1394,7 @@ export class Clerk implements ClerkInterface {
};

/**
* @experimental This API is in early access and may change in future releases.
*
* Unmount a API keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @param targetNode Target node to unmount the APIKeys component from.
Expand Down
26 changes: 18 additions & 8 deletions packages/clerk-js/src/core/modules/apiKeys/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -15,10 +15,12 @@ import { convertPageToOffsetSearchParams } from '@/utils/convertPageToOffsetSear
import { APIKey, BaseResource } from '../../resources/internal';

export class APIKeys implements APIKeysNamespace {
static readonly #pathRoot = '/api_keys';

/**
* Returns the base options for the FAPI proxy requests.
*/
private async getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
async #getBaseFapiProxyOptions(): Promise<FapiRequestInit> {
const token = await BaseResource.clerk.session?.getToken();
if (!token) {
throw new ClerkRuntimeError('No valid session token available', { code: 'no_session_token' });
Expand All@@ -27,7 +29,7 @@ export class APIKeys implements APIKeysNamespace {
return {
// Set to an empty string because FAPI Proxy does not include the version in the path.
pathPrefix: '',
// Set the session token as a Bearer token in the Authorization header for authentication.
// FAPI Proxy looks for the session token in the Authorization header.
headers: {
Authorization: `Bearer ${token}`,
'Content-Type': 'application/json',
Expand All@@ -37,11 +39,19 @@ export class APIKeys implements APIKeysNamespace {
};
}

/**
* Retrieves a paginated list of API keys.
*
* The subject (owner) is resolved in the following order:
* 1. Explicit `subject` param (user or organization ID)
* 2. Active organization ID
* 3. Current user ID
*/
async getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>> {
return BaseResource._fetch({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'GET',
path: '/api_keys',
path: APIKeys.#pathRoot,
search: convertPageToOffsetSearchParams({
...params,
subject: params?.subject ?? BaseResource.clerk.organization?.id ?? BaseResource.clerk.user?.id ?? '',
Expand All@@ -59,8 +69,8 @@ export class APIKeys implements APIKeysNamespace {

async create(params: CreateAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
path: '/api_keys',
...(await this.#getBaseFapiProxyOptions()),
path: APIKeys.#pathRoot,
method: 'POST',
body: JSON.stringify({
type: 'api_key',
Expand All@@ -76,9 +86,9 @@ export class APIKeys implements APIKeysNamespace {

async revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource> {
const json = (await BaseResource._fetch<ApiKeyJSON>({
...(await this.getBaseFapiProxyOptions()),
...(await this.#getBaseFapiProxyOptions()),
method: 'POST',
path: `/api_keys/${params.apiKeyID}/revoke`,
path: `${APIKeys.#pathRoot}/${params.apiKeyID}/revoke`,
body: JSON.stringify({
revocation_reason: params.revocationReason,
}),
Expand Down
2 changes: 2 additions & 0 deletions packages/nuxt/src/module.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -182,6 +182,8 @@ export default defineNuxtModule<ModuleOptions>({
'RedirectToCreateOrganization',
'Show',
'Waitlist',
// API Keys
'APIKeys',
];
otherComponents.forEach(component => {
void addComponent({
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -57,6 +57,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
1 change: 0 additions & 1 deletion packages/react/src/experimental.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -9,7 +9,6 @@ export type {
} from '@clerk/shared/types';

export {
__experimental_useAPIKeys as useAPIKeys,
__experimental_PaymentElementProvider as PaymentElementProvider,
__experimental_usePaymentElement as usePaymentElement,
__experimental_PaymentElement as PaymentElement,
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/hooks/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -10,6 +10,7 @@ export {
useUser,
useSession,
useReverification,
useAPIKeys,
__experimental_useCheckout,
__experimental_CheckoutProvider,
__experimental_usePaymentElement,
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/react/hooks/index.ts
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
export { assertContextExists, createContextAndHook } from './createContextAndHook';
export { useAPIKeys as __experimental_useAPIKeys } from './useAPIKeys';
export { useAPIKeys } from './useAPIKeys';
export { useOrganization } from './useOrganization';
export { useOrganizationCreationDefaults } from './useOrganizationCreationDefaults';
export type {
Expand Down
6 changes: 2 additions & 4 deletions packages/shared/src/react/hooks/useAPIKeys.tsx
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,7 +7,7 @@ import { createCacheKeys } from './createCacheKeys';
import { usePagesOrInfinite, useWithSafeValues } from './usePagesOrInfinite';

/**
* @internal
* @interface
*/
export type UseAPIKeysParams = PaginatedHookConfig<
GetAPIKeysParams & {
Expand All@@ -21,16 +21,14 @@ export type UseAPIKeysParams = PaginatedHookConfig<
>;

/**
* @internal
* @interface
*/
export type UseAPIKeysReturn<T extends UseAPIKeysParams> = PaginatedResources<
APIKeyResource,
T extends { infinite: true } ? true : false
>;

/**
* @internal
*
* The `useAPIKeys()` hook provides access to paginated API keys for the current user or organization.
*
* @example
Expand Down
6 changes: 0 additions & 6 deletions packages/shared/src/types/apiKeys.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -23,20 +23,14 @@ export interface APIKeyResource extends ClerkResource {

export interface APIKeysNamespace {
/**
* @experimental This API is in early access and may change in future releases.
*
* Retrieves a paginated list of API keys for the current user or organization.
*/
getAll(params?: GetAPIKeysParams): Promise<ClerkPaginatedResponse<APIKeyResource>>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Creates a new API key.
*/
create(params: CreateAPIKeyParams): Promise<APIKeyResource>;
/**
* @experimental This API is in early access and may change in future releases.
*
* Revokes a given API key by ID.
*/
revoke(params: RevokeAPIKeyParams): Promise<APIKeyResource>;
Expand Down
17 changes: 3 additions & 14 deletions packages/shared/src/types/clerk.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -644,26 +644,18 @@ export interface Clerk {
unmountPricingTable: (targetNode: HTMLDivElement) => void;

/**
* This API is in early access and may change in future releases.
*
* Mount a api keys component at the target element.
*
* @experimental
* Mount an API keys component at the target element.
*
* @param targetNode - Target to mount the APIKeys component.
* @param props - Configuration parameters.
*/
mountAPIKeys: (targetNode: HTMLDivElement, props?: APIKeysProps) => void;

/**
* This API is in early access and may change in future releases.
*
* Unmount a api keys component from the target element.
* Unmount an API keys component from the target element.
* If there is no component mounted at the target node, results in a noop.
*
* @experimental
*
* @param targetNode - Target node to unmount the ApiKeys component from.
* @param targetNode - Target node to unmount the APIKeys component from.
*/
unmountAPIKeys: (targetNode: HTMLDivElement) => void;

Expand DownExpand Up@@ -1032,9 +1024,6 @@ export interface Clerk {

/**
* API Keys Object
*
* @experimental
* This API is in early access and may change in future releases.
*/
apiKeys: APIKeysNamespace;

Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -63,6 +63,7 @@ exports[`root public exports > should not change unexpectedly 1`] = `
"__experimental_useCheckout",
"__experimental_usePaymentElement",
"getToken",
"useAPIKeys",
"useAuth",
"useClerk",
"useEmailLink",
Expand Down
7 changes: 1 addition & 6 deletions packages/ui/src/components/APIKeys/APIKeys.tsx
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
import { isClerkAPIResponseError } from '@clerk/shared/error';
import { isOrganizationId } from '@clerk/shared/internal/clerk-js/organization';
import {
__experimental_useAPIKeys as useAPIKeys,
__internal_useOrganizationBase,
useClerk,
useUser,
} from '@clerk/shared/react';
import { useAPIKeys, __internal_useOrganizationBase, useClerk, useUser } from '@clerk/shared/react';
import type { APIKeyResource } from '@clerk/shared/types';
import { lazy, useState } from 'react';

Expand Down
Loading