Skip to content
中文

Automation API

Praxis Automation saves TypeScript scripts and YAML workflows, runs them on demand or from schedule and webhook triggers, and records each run with its calls, logs and result. A script has three module-scope bindings, not globals and needing no import: praxis, the same SDK as codemode, where praxis.<domain>.<resource>.<method>(…) is one public API call (recorded as platform_api); call(actionId, input), where the Action ID is a string — bare names such as ocr for built-in Actions, namespace/name for your own — and never a praxis method (recorded as action); and invoke(“namespace/name”, input), which starts a child script or workflow run (recorded as script or workflow). Workflows reach capabilities only through call: (an Action) and run: (a saved script or workflow), and Actions have no praxis: built-in Actions operate platform capabilities directly, and your own code Actions can call only built-in Actions. Actions time out after 5 min (run-sandbox after 6 h), scripts after 30 min of wall-clock time, and workflows default to 24 h and allow up to 30 days; for long-running, background or batch work, create the run with wait: 0 and poll it with praxis.automation.runs.retrieve, or split work into child runs or a workflow. Differences: choose your own namespace without registration, while the praxis namespace is reserved for built-in Actions; Actions run at their current revision, while published scripts and workflows use namespace/name@version or @tag; drafts can run directly as source without publishing; schedule and webhook triggers require a published target. A workflow step written call: praxis/approval opens a human task (an approval) and waits for an assignee to respond through praxis.automation.humanTasks.respond; listing human tasks gives the caller their approval inbox. Start with praxis.automation.runs.create to test source or execute a published target.

Manage actions, publish scripts and workflows, inspect runs, and receive inbound webhooks.

https://api.deepraxis.com/automation/v1

Authentication

Use Authorization: Bearer $PRAXIS_API_KEY. Inbound webhooks use the secret URL returned on creation or rotation, without an API Key.

TypeScript SDK

The SDK is not published to npm. Install from local source and run examples with Bun; replace the path with your local SDK directory.

bun add /absolute/path/to/packages/sdk/typescript
bun example.ts

Examples target develop. Install jq for curl bodies containing variables. Choose unused names beginning with sample-. Actions, scripts and workflows use the docs-samples namespace; archive them after use and delete triggers.

Actions

Scripts

Workflows

Definition tools

Runs

Triggers and inbound webhooks