Skip to content

Script settings API

The script settings endpoints, each in TypeScript, Python, the CLI and curl.

Terminal window
npm install @reminix/sdk
export REMINIX_API_KEY="<your API key>"

To pass the key yourself, use createClient({ apiKey: key }) in TypeScript or Reminix(api_key=key) in Python.

Scope: scripts:read.

Returns how the workspace governs scripts, such as whether publishing needs a second person.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const scriptSetting = await reminix.scriptSettings.get();
console.log(scriptSetting);

Returns:

{
"publishNeedsSecondPerson": false
}

Scope: scripts:write.

Changes how the workspace governs scripts.

import { createClient } from "@reminix/sdk";
// Uses the REMINIX_API_KEY environment variable.
const reminix = createClient();
const scriptSetting = await reminix.scriptSettings.update({
publishNeedsSecondPerson: false,
});
console.log(scriptSetting);

Returns:

{
"publishNeedsSecondPerson": false
}
Field Description
publishNeedsSecondPerson boolean Whether publishing needs a second person. When it's on, each publish becomes a request. Another owner or admin, not the person who asked, approves it.
More about this endpoint

Workspace owners and admins can change these settings, and so can a workspace API key. Turning on second-person publishing needs the Business plan.