Skip to Content

createAdminClient()

function createAdminClient(config?): AdminClient;

A client for the admin API. With no configuration it reads the key from PRETERNATURAL_MODEM_ADMIN_API_KEY and the deployment from PRETERNATURAL_MODEM_ENV.

const admin = createAdminClient(); const projects = await admin.projects.list();

Parameters

config?

CreateAdminClientConfig = {}

Last updated on