getSecret()
Gets the secret of the given API key.
function getSecret(apiKeyId: string): Promise<{ secret: string }>- Name
apiKeyId- Type
string- Description
The ID of the API key to get the secret of.
const response = await clerkClient.apiKeys.getSecret('apikey_123')Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint GET/api_keys/{apiKeyId}/secret. See the BAPI reference for more information.
Feedback
Last updated on