getSecretKey()
Retrieves a machine secret key by its ID.
function getSecretKey(machineId: string): Promise<MachineSecretKey>
- Name
machineId
- Type
string
- Description
The ID of the machine for which to retrieve the secret key.
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