Skip to content

Environments

Terminal window
npm install @reminix/sdk
import { createClient } from "@reminix/sdk";
const reminix = createClient(); // reads REMINIX_API_KEY

GET /v1/environments

The workspace’s environments, oldest first, with which is the default.

await reminix.environments.list();
More about this endpoint

Name one with the X-Environment header to act in it.

POST /v1/environments

Adds an environment with no secret values yet — save them with X-Environment set to it.

await reminix.environments.create({
name: "staging",
});
FieldDescription
namestring, requiredIts name, unique in the workspace.
approvalPolicystringWhich runs here wait for a person's approval: none, agents (runs an agent starts) or always. A run uses the stricter of this and its script's policy. Default: none.
agentsAllowedbooleanWhether agents (MCP) may run scripts here, or schedule them to. Default: true.
More about this endpoint

Lowercase letters, digits and dashes. Owners and admins, or a workspace API key.

GET /v1/environments/{environment}

One environment, with what uses it: the secret values deleting it would delete, and the schedules and triggers that keep it from being deleted.

await reminix.environments.get("staging");
FieldDescription
environmentstring, path, required

PATCH /v1/environments/{environment}

Renames it, changes its rules, or makes it the workspace’s default (isDefault: true).

await reminix.environments.update("staging");
FieldDescription
environmentstring, path, required
namestringIts name, unique in the workspace.
approvalPolicystringWhich runs here wait for a person's approval: none, agents (runs an agent starts) or always. A run uses the stricter of this and its script's policy.
agentsAllowedbooleanWhether agents (MCP) may run scripts here, or schedule them to.
isDefaultbooleanMake it the default. To change the default, make another one the default.
More about this endpoint

Runs keep the name they ran under. Owners and admins, or a workspace API key.

DELETE /v1/environments/{environment}

Deletes it and every secret value it holds (GET it first to see how many).

await reminix.environments.delete("staging");
FieldDescription
environmentstring, path, required
More about this endpoint

Refused for the only environment, the default, and one a schedule or trigger runs in. Owners and admins, or a workspace API key.