keys.create
Creates a new API key. This endpoint requires Clerk JWT authentication.
Authentication
Parameters
string
required
Descriptive name for the API key. Use names that indicate the key’s purpose.
Response
string
Internal UUID for the API key record
string
Your Clerk user ID
string
Clerk’s API key ID
string
The name you provided
string
The actual API key secret. Only returned on creation.
string
ISO 8601 timestamp of creation
Examples
Best Practices
Use descriptive names
Use descriptive names
Create separate keys per environment
Create separate keys per environment
Store keys securely
Store keys securely
Related Endpoints
List API Keys
View all your API keys
Revoke API Key
Revoke a key
Authentication Guide
Learn about API key security