Skip to main content

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.
Save this immediately! You won’t be able to see it again.
string
ISO 8601 timestamp of creation

Examples

The secret field is only returned when creating a key. Store it securely immediately. If you lose it, you’ll need to create a new key.

Best Practices

List API Keys

View all your API keys

Revoke API Key

Revoke a key

Authentication Guide

Learn about API key security