Skip to content

Scripts

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

GET /v1/scripts

The workspace’s scripts you may see, newest first, with the version each runs, tags and 30-day stats.

await reminix.scripts.list();
FieldDescription
limitnumber, queryItems per page, 1–100 (default 25).
cursorstring, queryOpaque token from a previous page's nextCursor.
qstring, querySearch the name, slug, description and tags — each word matches the start of a word. Results are best match first, one page (no cursor).
tagstring, queryOnly scripts with this tag.
ownerstring, queryAn owner's user id.
publishedstring, querytrue: only scripts with a published version.
archivedstring, querytrue: the archived scripts instead (they are left out otherwise).
More about this endpoint

Search with q (best match first) and filter by tag, owner or published — look here before writing a new one. Paginate with the opaque nextCursor token.

POST /v1/scripts

Creates an empty script — upload a version, then publish it.

await reminix.scripts.create({
slug: "unlock-account",
name: "Unlock an account",
});
FieldDescription
slugstring, requiredIts id in URLs and commands: lowercase letters, digits and dashes, unique in the workspace.
namestring, requiredWhat people see in the app.
descriptionstringWhat it does, in a sentence or two.
More about this endpoint

The slug names it everywhere (the API path, the agent tool, the command line) and is unique in the workspace.

GET /v1/scripts/{slug}

One script by its slug: its name, owner, status, published version, README, and who uses it — people, schedules, triggers and the scripts that follow it.

await reminix.scripts.get("unlock-account");
FieldDescription
slugstring, path, required

PATCH /v1/scripts/{slug}

Changes its name or description, who may see and run it (access, teams), and which runs need a person’s approval.

await reminix.scripts.update("unlock-account");
FieldDescription
slugstring, path, required
namestringWhat people see in the app.
descriptionstringWhat it does, in a sentence or two.
accessstringworkspace: every member may see and run it. teams: only members of teamIds (and owners and admins).
teamIdsarrayWith access: teams: the teams whose members may see and run it.
tagsarrayUp to 10; lowercase letters, digits and dashes.
approvalPolicystringWhich runs wait for a person's approval: none, agents (runs started through an agent's token) or always.
More about this endpoint

The script’s owner, or a workspace owner or admin.

POST /v1/scripts/{slug}/archive

Stops it: it leaves the scripts list, can’t be run, and its schedules and triggers skip it.

await reminix.scripts.archive("unlock-account");
FieldDescription
slugstring, path, required
More about this endpoint

Its runs, versions and files stay on record — scripts are archived, never deleted. Refused while a run of it is going or waiting for approval. The script’s owner, or a workspace owner or admin.

POST /v1/scripts/{slug}/restore

Brings an archived script back: listed and runnable again, its schedules and triggers resumed.

await reminix.scripts.restore("unlock-account");
FieldDescription
slugstring, path, required
More about this endpoint

The script’s owner, or a workspace owner or admin.