create()
Creates a new machine.
Returns the created Machine object.
function create(bodyParams: CreateMachineParams): Promise<Machine>const response = await clerkClient.machines.create({
name: 'Email Server',
})const response = await clerkClient.machines.create({
name: 'API Gateway',
scopedMachines: ['mch_123', 'mch_456'],
defaultTokenTtl: 3600,
})Backend API (BAPI) endpoint
This method in the SDK is a wrapper around the BAPI endpoint POST/machines. See the BAPI reference for more information.
Feedback
Last updated on