



























API keys are now available for authorization, with management built-in to the prebuilt components. This feature is part of the machine authentication suite.
When you enable API keys in the Clerk Dashboard, an API Keys tab appears in your <UserProfile /> and <OrganizationProfile /> components. Users can then create, view, and revoke their API keys.
You can also use the standalone <APIKeys /> component anywhere in your application:
You can also create and manage API keys programmatically using the Backend SDK, with control over scopes, claims, and expiration:
Use the auth() helper to verify API keys in your backend. An example of this using Next.js is shown below:
API keys are free to use during the beta period. After general availability, they'll move to a simple usage-based pricing model:
$0.001 per key creation$0.00001 per key verificationBilling isn't live yet — we'll provide at least 30 days' notice before billing begins. We'll also provide usage stats and monitoring in the Dashboard before then, so you'll have complete visibility over your usage and costs.
Ready to let your users create API keys? Check out these resources:
We'd love to hear your feedback as you try out API keys. Your input during the beta period will help us refine the feature. Have questions or suggestions? Reach out through our feedback portal or join the discussion in our Discord community.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。