getSecretKey()
Gets the secret key for the given machine.
Returns the machine's secret key.
function getSecretKey(machineId: string): Promise<MachineSecretKey>- Name
machineId- Type
string- Description
The ID of the machine to get the secret key for.
const machineId = 'mch_123'
const response = await clerkClient.machines.getSecretKey(machineId)Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint GET/machines/{machine_id}/secret_key. See the BAPI reference for more information.
Feedback
Last updated on