Skip to main content

Workflows

Workflows are node-graph pipelines you build, version, deploy, and run. Use this resource to author a workflow, manage its nodes and connections, run it (synchronously or fire-and-forget), and share it.

Access it as client.workflows on a Strongly client, or the same path on AsyncStrongly with await. All methods exist on both with identical signatures.

Quick start​

from strongly import Strongly

client = Strongly()

# List (auto-paginates as you iterate) # filters: status, search, tag
for workflow in client.workflows.list():
print(workflow.id)

Methods​

Core​

list​

list(*, status: str | None = None, search: str | None = None, tag: str | None = None, limit: int | None = None) -> SyncPaginator[WorkflowSummary]

List your workflows, a page at a time as you iterate (templates are not listed).

Each workflow is a summary; retrieve returns the full workflow.

Parameters

  • status (str | None, optional): Only workflows in this state: draft, active or paused, the states stats() counts. An agent's workflow is active while the agent runs and draft otherwise. An archived workflow is never listed.
  • search (str | None, optional): Only workflows whose name or description matches (sent as q).
  • tag (str | None, optional): Only workflows with this tag.
  • limit (int | None, optional): The most workflows to return; every matching one when omitted.

create​

create(*, name: str, description: str | None = None, status: str | None = None, workflow_type: str | None = None, tags: Sequence[str] | None = None, nodes: Sequence[Mapping[str, Any]] | None = None, connections: Sequence[Mapping[str, Any]] | None = None, settings: Mapping[str, Any] | None = None, environment_variables: Mapping[str, str] | None = None) -> Workflow

Create a workflow and return it.

Parameters

  • name (str): The workflow's name.
  • description (str | None, optional): What it does.
  • status (str | None, optional): Its status; draft when omitted.
  • workflow_type (str | None, optional): batch (the default) or streaming.
  • tags (Sequence[str] | None, optional): Its tags.
  • nodes (Sequence[Mapping[str, Any]] | None, optional): Its nodes, as retrieve shows them; none when omitted.
  • connections (Sequence[Mapping[str, Any]] | None, optional): The connections between its nodes: [{"id", "source", "target", "sourcePort"?, "targetPort"?}].
  • settings (Mapping[str, Any] | None, optional): Its settings (spanLevel, retryAttempts, ...).
  • environment_variables (Mapping[str, str] | None, optional): Its own environment variables ({"NAME": "value"}, string values), given to the code its author supplies (custom nodes, the code node) in every run. A name the platform sets in the sandbox (PATH, HOME, PYTHONPATH, WORKFLOW_ID, EXECUTION_ID, ...) or STRONGLY_API_KEY is refused (400). A batch workflow only.

retrieve​

retrieve(workflow_id: str) -> Workflow

Get a workflow with its nodes and connections.

Parameters

  • workflow_id (str): The workflow's id.

update​

update(workflow_id: str, *, name: str | None = None, description: str | None = None, status: str | None = None, tags: Sequence[str] | None = None, nodes: Sequence[Mapping[str, Any]] | None = None, connections: Sequence[Mapping[str, Any]] | None = None, settings: Mapping[str, Any] | None = None, deployment_environment_id: str | None = None, deployment_environment_version: int | None = None, max_concurrent_executions: int | None = None, environment_variables: Mapping[str, str | None] | None = None) -> Workflow

Change a workflow (only the fields you pass) and return it.

Each node is pinned to the published version its nodeVersion names, older ones included (one not published is refused (400), naming the published versions); a node naming none keeps the version the workflow holds for it, and a node new to it takes the catalog's latest. Sending the nodes back as retrieve shows them never changes a version. A deployed workflow is refused (409) until it is undeployed, except for its environment_variables.

Parameters

  • workflow_id (str): The workflow's id.
  • name (str | None, optional): Its new name.
  • description (str | None, optional): Its new description.
  • status (str | None, optional): draft, active or paused.
  • tags (Sequence[str] | None, optional): Its tags (replaces them).
  • nodes (Sequence[Mapping[str, Any]] | None, optional): The whole graph's nodes (replaces them).
  • connections (Sequence[Mapping[str, Any]] | None, optional): The whole graph's connections (replaces them).
  • settings (Mapping[str, Any] | None, optional): Its settings (replaces them: read, change and send them back to keep others).
  • deployment_environment_id (str | None, optional): The saved environment (hardware tier) it deploys on.
  • deployment_environment_version (int | None, optional): Pin that environment to a version.
  • max_concurrent_executions (int | None, optional): How many of its runs may be in flight at once, 1 to 10 (default 1).
  • environment_variables (Mapping[str, str | None] | None, optional): Its own environment variables, patched name by name: {"NAME": "value"} sets one, {"NAME": None} removes one, and names left out are kept. Given to the code its author supplies (custom nodes, the code node) in every run. A deployed workflow takes them too: its worker rolls with them, with no downtime. A name the platform sets in the sandbox (PATH, HOME, PYTHONPATH, WORKFLOW_ID, EXECUTION_ID, ...) or STRONGLY_API_KEY is refused (400). A batch workflow only.

Examples

client.workflows.update(workflow_id, environment_variables={"MYZOE_DATA_KEY": key})
client.workflows.update(workflow_id, environment_variables={"OLD_SETTING": None})

delete​

delete(workflow_id: str) -> None

Delete a workflow. Undeploy it and stop its runs first, or it is refused (409).

An agent's workflow is deleted as the agent (client.agents.delete): a running agent is stopped and its workspaces deleted first.

Parameters

  • workflow_id (str): The workflow's id.

Lifecycle & actions​

start​

start(workflow_id: str, *, replicas: int | None = None) -> Workflow

Start a stopped deployment (scale it back up) and return the workflow.

Parameters

  • workflow_id (str): The workflow.
  • replicas (int | None, optional): How many replicas to run; its deployment's when omitted.

stop​

stop(workflow_id: str) -> Workflow

Stop a deployment (scale it to zero, keeping it for a quick start) and return it.

Parameters

  • workflow_id (str): The workflow.

deploy​

deploy(workflow_id: str, *, environment_id: str | None = None, environment_version: int | None = None, cpu: str | None = None, memory: str | None = None, disk: str | None = None, gpu: str | None = None, gpu_type: str | None = None, use_spot: bool | None = None, spot_fallback: bool | None = None, force_redeploy: bool | None = None, autoscaling: WorkflowAutoscaling | Mapping[str, Any] | Literal[False] | None = None) -> Workflow

Deploy a workflow and return it, its deployment_status queued (poll status).

Resources default to the workflow's saved environment.

A size is the whole workload: Strongly's helper services beside it (sign-in proxy, outbound proxy, data volume mounts, model cache upload, metrics) are taken out of it, never added on top (set 4 GB and the workload uses 4 GB in total). A size too small to hold them is refused naming them. A CPU, memory, GPU count or disk above the largest allowed machine's room for one workload raises APIError with status_code 400 naming the resource and both figures, and nothing is created or changed. Check client.compute.list_pools() allowed_sizes (max_cpu, max_memory_gib, max_disk_gib, max_gpus) before a large size.

Parameters

  • workflow_id (str): The workflow.
  • environment_id (str | None, optional): The saved environment (hardware tier) to run on.
  • environment_version (int | None, optional): Pin that environment to a version.
  • cpu (str | None, optional): CPU, e.g. "0.5".
  • memory (str | None, optional): Memory, e.g. "1Gi".
  • disk (str | None, optional): Disk, e.g. "5Gi".
  • gpu (str | None, optional): GPU count.
  • gpu_type (str | None, optional): GPU type. One of the types list_gpu_options lists (the admin Compute selection); any other is refused with a 400 ValidationError.
  • use_spot (bool | None, optional): Run on spot capacity (cheaper, can be reclaimed: the pod restarts on a new node). Left out: as last deployed, else on-demand.
  • spot_fallback (bool | None, optional): With use_spot: fall back to on-demand when no spot capacity is free (default true); false waits for spot.
  • force_redeploy (bool | None, optional): Redeploy even when the same version is already deployed.
  • autoscaling (WorkflowAutoscaling | Mapping | False | None, optional): Batch workflows: scale the deployed worker with its runs (min_replicas, max_replicas, executions_per_replica, each 1-50). False turns it off (one pod running up to 10 runs at once); left out: as last deployed. Not for a workflow on a schedule.

undeploy​

undeploy(workflow_id: str) -> Workflow

Undeploy a workflow (its pod is removed) and return it.

Parameters

  • workflow_id (str): The workflow.

execute​

execute(workflow_id: str, *, trigger_inputs: Mapping[str, Any] | None = None, secret_inputs: Mapping[str, str] | None = None, definition: Mapping[str, Any] | None = None, trigger_type: str | None = None, trigger_source: Mapping[str, Any] | None = None, parent_execution_id: str | None = None, idempotency_key: str | None = None) -> WorkflowRun

Run a workflow and return the run: finished with its outputs, or still running.

A draft runs its working copy on your worker pool. Runs are for drafts: a deployed workflow runs only when it is triggered, so a run that names no trigger_type is refused (409) for a deployed workflow. When status is still running, follow execution_id with client.executions.

Parameters

  • workflow_id (str): The workflow.
  • trigger_inputs (Mapping[str, Any] | None, optional): The trigger node's inputs.
  • secret_inputs (Mapping[str, str] | None, optional): Secret values for this run only, name to string (a password, an archive's passwords as JSON). Each reaches the run's code as an environment variable of its name (os.environ["NAME"]; a node setting that names a secret, like File Extractor's Passwords Secret, takes the name), for that run's processes only, in a draft run and in a deployed workflow's always-running worker alike (concurrent runs never see each other's). Never stored: they travel only in the request that hands the run to its worker, which holds them in memory until the run ends; never logged or returned (the run keeps their names only). The workers a loop running Across Workers starts are not given them: an item there that names one fails with an error naming it. A name is never one of the workflow's environment variables or secrets, nor a platform name (400). A deployed workflow that runs on its schedule only, with no always-running worker, refuses them (422). A run given them cannot be resumed or retried from the dead-letter queue.
  • definition (Mapping[str, Any] | None, optional): A draft only: run this definition ({"nodes", "connections"}) instead of the saved one.
  • trigger_type (str | None, optional): What triggered the run: "rest-api" to call a deployed workflow whose trigger is a REST API trigger, or an app's own trigger name. Omitted, the run is started by hand (manual): a draft run. A run past the runs the workflow takes at once is refused (429 concurrency-limit, its inFlight naming the runs holding the places) and not started; send it again once one ends. A run frees its place as soon as its last step completes. To be told when a run ends, create an alert rule (create_alert_rule) with condition execution_completed or execution_failed and a webhook channel.
  • trigger_source (Mapping[str, Any] | None, optional): Where the run came from, stored on the execution.
  • parent_execution_id (str | None, optional): The run that starts this one (a Sub-Workflow node's run): the run records it, its trigger is sub-workflow, and the parent's trace lists it. You must be able to see that run.
  • idempotency_key (str | None, optional): The run's Idempotency-Key (1 to 255 characters, a UUID is right): sending the run again with the same key and body within 24 hours answers the same run and never starts a second one. The same key with another body is refused (422 idempotency-key-reused). Omitted, a fresh key for this call, which its retries reuse.

Other​

add_connection​

add_connection(workflow_id: str, *, source_node_id: str, target_node_id: str, source_port: str | None = None, target_port: str | None = None, feedback: bool | None = None, max_iterations: int | None = None) -> WorkflowConnection

Connect two nodes and return the connection (its id removes it).

Parameters

  • workflow_id (str): The workflow.
  • source_node_id (str): The node the data comes from.
  • target_node_id (str): The node it goes to.
  • source_port (str | None, optional): The source's output (default output): continue for a loop body (output for a map body; the body ends in a Loop Accumulator, where the loop returns on its own, so nothing is connected from a loop's or map's completed port), if / else from a conditional, case_<n> / default from a switch-case.
  • target_port (str | None, optional): The target's input (default input; ai or tools on an agent node).
  • feedback (bool | None, optional): A streaming feedback edge (closes a loop); give max_iterations with it.
  • max_iterations (int | None, optional): The most times a feedback edge runs per session.

add_member​

add_member(resource_id: str, *, user_id: str, role: str) -> Permissions

Share the resource with a user.

Parameters

  • resource_id (str): The resource's id.
  • user_id (str): The user to share it with.
  • role (str): "editor" (use and change it) or "user" (use it only; types without a use-only tier, such as knowledge bases, take "editor" only).

add_node​

add_node(workflow_id: str, *, node_type: str, label: str | None = None, config: Mapping[str, Any] | None = None, position: Mapping[str, Any] | None = None, node_version: str | None = None) -> WorkflowGraphNode

Add a catalog node to a workflow; answers the node (its id there is id).

The node takes the published version node_version names, older ones included (one not published is refused (400), naming the published versions), else the catalog's latest; the workflow then keeps it: saves and deploys never change it.

Parameters

  • workflow_id (str): The workflow.
  • node_type (str): The catalog node: its unique catalog id (e.g. "postgresql-sources") or its type (e.g. "webhook").
  • label (str | None, optional): The node's label; the catalog name when omitted.
  • config (Mapping[str, Any] | None, optional): Its configuration.
  • position (Mapping[str, Any] | None, optional): Its canvas position {"x", "y"}; placed after the last node when omitted.
  • node_version (str | None, optional): A published version of the node to pin, e.g. "1.3.14"; the latest when omitted.

arrange​

arrange(workflow_id: str) -> WorkflowArrangement

Arrange a workflow's nodes in a left-to-right layout.

Parameters

  • workflow_id (str): The workflow.

build​

build(*, name: str, nodes: Sequence[Mapping[str, Any]], connections: Sequence[Mapping[str, Any]] | None = None, workflow_type: str | None = None, description: str | None = None) -> Workflow

Create a whole workflow graph in one call and return the workflow.

Parameters

  • name (str): The workflow's name.
  • nodes (Sequence[Mapping[str, Any]]): Every node: &#123;"id", "type", "label"?, "config"?, "inputMappings"?, "category"?, "nodeVersion"?&#125;`; `id` is your own reference, used in `connections. category is required when a type is both a source and a destination (sources or destinations). nodeVersion pins a published version of the node, older ones included (one not published is refused (400), naming the published versions); omitted, the node takes the catalog's latest.
  • connections (Sequence[Mapping[str, Any]] | None, optional): Every edge: {"source", "target", "sourcePort"?, "targetPort"?}; a loop body hangs off sourcePort continue.
  • workflow_type (str | None, optional): batch (the default) or streaming.
  • description (str | None, optional): What the workflow does.

check_import​

check_import(*, export_data: Mapping[str, Any]) -> WorkflowImportCheck

Check an exported bundle before importing it: the dependencies to resolve.

Parameters

  • export_data (Mapping[str, Any]): The bundle export answered.

create_alert_rule​

create_alert_rule(*, name: str, condition: str, channels: Sequence[Mapping[str, Any]], workflow_id: str | None = None, condition_config: Mapping[str, Any] | None = None, throttle: Mapping[str, Any] | None = None, is_enabled: bool | None = None, description: str | None = None) -> WorkflowAlertRule

Create a workflow alert rule and return it.

You are alerted on each channel when a run of the workflow (or of any of your workflows, with no workflow_id) ends meeting condition.

Parameters

  • name (str): The rule's name.
  • condition (str): execution_failed, execution_timeout, execution_completed, duration_exceeded, node_failed, consecutive_failures or dlq_threshold.
  • channels (Sequence[Mapping[str, Any]]): {"type": "in_app", "config": {}} (your bell), email (emailAddresses; none = your address), slack (slackWebhookUrl) or webhook (webhookUrl).
  • workflow_id (str | None, optional): The workflow; all your workflows when omitted.
  • condition_config (Mapping[str, Any] | None, optional): durationThresholdMs, nodeTypes, failureCount or dlqCountThreshold, per condition.
  • throttle (Mapping[str, Any] | None, optional): {"enabled": bool, "intervalMinutes": int} (off when omitted).
  • is_enabled (bool | None, optional): Whether it alerts; True when omitted.
  • description (str | None, optional): What the rule is for.

create_version​

create_version(workflow_id: str, *, message: str, description: str | None = None, type: str | None = None, tag: str | None = None) -> WorkflowVersion

Commit a new version of a workflow and return it (the platform assigns its number).

Parameters

  • workflow_id (str): The workflow.
  • message (str): What changed: the version's commit message.
  • description (str | None, optional): Longer notes.
  • type (str | None, optional): minor (the default) or major.
  • tag (str | None, optional): A human label, e.g. "v1.4.0"; the version is still its number.

delete_alert_rule​

delete_alert_rule(rule_id: str) -> None

Delete one of your workflow alert rules; its alerts stay in the history.

Parameters

  • rule_id (str): The rule.

delete_connection​

delete_connection(workflow_id: str, connection_id: str) -> None

Remove a connection.

Parameters

  • workflow_id (str): The workflow.
  • connection_id (str): The connection (its id from retrieve or add_connection).

delete_node​

delete_node(workflow_id: str, node_id: str) -> None

Remove a node and its connections from a workflow.

Parameters

  • workflow_id (str): The workflow.
  • node_id (str): The node.

delete_secret​

delete_secret(workflow_id: str, name: str) -> WorkflowSecretRemoval

Remove one of a workflow's secrets.

Later runs no longer get it; a deployed workflow's worker rolls without it.

Parameters

  • workflow_id (str): The workflow.
  • name (str): The secret's name.

dependency_access​

dependency_access(workflow_id: str, *, for_: str) -> WorkflowDependencyAccess

List the dependencies you may not use before you run or deploy a workflow.

Parameters

  • workflow_id (str): The workflow.
  • for_ (str): run or deploy.

deploy_version​

deploy_version(workflow_id: str, version_id: str, *, environment_id: str | None = None, cpu: str | None = None, memory: str | None = None, disk: str | None = None, gpu: str | None = None, gpu_type: str | None = None, use_spot: bool | None = None, spot_fallback: bool | None = None, autoscaling: WorkflowAutoscaling | Mapping[str, Any] | Literal[False] | None = None) -> Workflow

Deploy a saved version (roll back or forward) and return the workflow, deploying.

A size is the whole workload: Strongly's helper services beside it (sign-in proxy, outbound proxy, data volume mounts, model cache upload, metrics) are taken out of it, never added on top (set 4 GB and the workload uses 4 GB in total). A size too small to hold them is refused naming them. A CPU, memory, GPU count or disk above the largest allowed machine's room for one workload raises APIError with status_code 400 naming the resource and both figures, and nothing is created or changed. Check client.compute.list_pools() allowed_sizes (max_cpu, max_memory_gib, max_disk_gib, max_gpus) before a large size.

Parameters

  • workflow_id (str): The workflow.
  • version_id (str): The version to deploy.
  • environment_id (str | None, optional): The saved environment to run on.
  • cpu (str | None, optional): CPU, e.g. "0.5".
  • memory (str | None, optional): Memory, e.g. "1Gi".
  • disk (str | None, optional): Disk, e.g. "5Gi".
  • gpu (str | None, optional): GPU count.
  • gpu_type (str | None, optional): GPU type. One of the types list_gpu_options lists (the admin Compute selection); any other is refused with a 400 ValidationError.
  • use_spot (bool | None, optional): Run on spot capacity (cheaper, can be reclaimed: the pod restarts on a new node). Left out: as last deployed, else on-demand.
  • spot_fallback (bool | None, optional): With use_spot: fall back to on-demand when no spot capacity is free (default true); false waits for spot.
  • autoscaling (WorkflowAutoscaling | Mapping | False | None, optional): Batch workflows: scale the deployed worker with its runs (min_replicas, max_replicas, executions_per_replica, each 1-50). False turns it off (one pod running up to 10 runs at once); left out: as last deployed. Not for a workflow on a schedule.

discover​

discover(*, app_id: str, limit: int | None = None) -> SyncPaginator[WorkflowAppEntry]

List the active workflows a marketplace app owns, with how to trigger each.

Parameters

  • app_id (str): The app.
  • limit (int | None, optional): The most workflows to return; every one when omitted.

duplicate​

duplicate(workflow_id: str) -> Workflow

Copy a workflow (as a draft) and return the copy.

Parameters

  • workflow_id (str): The workflow to copy.

emit_event​

emit_event(*, event_type: str, event_data: Mapping[str, Any] | None = None, source: str | None = None) -> WorkflowEventResult

Emit an event: it starts each deployed workflow you may use that listens for it.

Each run is yours; drafts never start.

Parameters

  • event_type (str): The event type, e.g. "order.created".
  • event_data (Mapping[str, Any] | None, optional): The event's payload.
  • source (str | None, optional): Where the event comes from.

export​

export(workflow_id: str) -> WorkflowExport

Export a workflow as a portable .strongly.json bundle.

Parameters

  • workflow_id (str): The workflow.

import_bundle​

import_bundle(*, export_data: Mapping[str, Any], resolved_deps: Mapping[str, Any]) -> Workflow

Import an exported bundle as a new draft workflow and return it.

Parameters

  • export_data (Mapping[str, Any]): The bundle export answered.
  • resolved_deps (Mapping[str, Any]): {refId: resource_id}: for each dependency check_import listed, the id of the resource that stands in for it ({} when there are none).

lifecycle​

lifecycle(workflow_id: str) -> WorkflowLifecycle

Get a workflow's lifecycle policy and deployment status.

Parameters

  • workflow_id (str): The workflow.

list_alert_rules​

list_alert_rules(*, workflow_id: str | None = None, limit: int | None = None) -> SyncPaginator[WorkflowAlertRule]

List your workflow alert rules, a page at a time as you iterate.

Parameters

  • workflow_id (str | None, optional): Only the rules that apply to this workflow: its own and your rules for all your workflows.
  • limit (int | None, optional): The most rules to return; every one when omitted.

list_alerts​

list_alerts(*, workflow_id: str | None = None, rule_id: str | None = None, limit: int | None = None) -> SyncPaginator[WorkflowAlert]

List the alerts your rules sent, newest first, a page at a time as you iterate.

Parameters

  • workflow_id (str | None, optional): Only alerts about this workflow.
  • rule_id (str | None, optional): Only alerts this rule sent.
  • limit (int | None, optional): The most alerts to return; every one when omitted.

list_nodes​

list_nodes(workflow_id: str, *, limit: int | None = None) -> SyncPaginator[WorkflowNodeSummary]

List a workflow's nodes with their connection counts, a page at a time.

Parameters

  • workflow_id (str): The workflow.
  • limit (int | None, optional): The most nodes to return; every one when omitted.

list_secrets​

list_secrets(workflow_id: str) -> SyncPaginator[WorkflowSecret]

List a workflow's secrets: names, and when and by whom each was set. Never a value.

Parameters

  • workflow_id (str): The workflow.

logs​

logs(workflow_id: str, *, lines: int | None = None, container: str | None = None) -> WorkflowLogs

Get the recent log lines of a deployed workflow's pods.

Parameters

  • workflow_id (str): The workflow.
  • lines (int | None, optional): The last this many lines of each pod (default 200, at most 2000).
  • container (str | None, optional): The container; the workflow worker when omitted.

metrics​

metrics(workflow_id: str, *, window: str | None = None) -> WorkflowMetrics

Count a workflow's runs by status, with their average duration and error rate.

Parameters

  • workflow_id (str): The workflow.
  • window (str | None, optional): 1h, 24h (the default), 7d or 30d.

permissions​

permissions(resource_id: str) -> Permissions

Return who can reach the resource: its owner, members and their roles, and visibility.

Parameters

  • resource_id (str): The resource's id.

remove_member​

remove_member(resource_id: str, user_id: str) -> None

Stop sharing the resource with a user.

Parameters

  • resource_id (str): The resource's id.
  • user_id (str): The user to stop sharing it with.

restore_version​

restore_version(workflow_id: str, version_id: str) -> WorkflowVersionRestore

Make a draft workflow's working copy a saved version's content, e.g. to undo edits.

Nothing is lost: edits since the latest version are saved as a version first, then a new version carries the restored content. Refused (409) for a deployed workflow and for the latest version when there are no edits since it.

Parameters

  • workflow_id (str): The workflow.
  • version_id (str): The version to restore (from versions).

retrieve_alert_rule​

retrieve_alert_rule(rule_id: str) -> WorkflowAlertRule

Get one of your workflow alert rules.

Parameters

  • rule_id (str): The rule.

retrieve_version​

retrieve_version(workflow_id: str, version_id: str) -> WorkflowVersionDetail

Get one version of a workflow with its full definition.

Parameters

  • workflow_id (str): The workflow.
  • version_id (str): The version's id (from versions).

set_secret​

set_secret(workflow_id: str, name: str, value: str) -> WorkflowSecret

Set (or replace) one of a workflow's secrets.

The value is stored encrypted, can never be read back, and reaches every run (draft and deployed) as the environment variable name. A deployed workflow's worker rolls with it, with no undeploy. You must be able to edit the workflow.

Parameters

  • workflow_id (str): The workflow (a batch workflow).
  • name (str): An environment variable name; never STRONGLY_*, a name the sandbox sets, or one of the workflow's environment variables.
  • value (str): The secret value.

set_visibility​

set_visibility(resource_id: str, visibility: str) -> Permissions

Make the resource public (every user can find and use it) or private.

Parameters

  • resource_id (str): The resource's id.
  • visibility (str): "public" or "private".

stats​

stats() -> WorkflowStats

Count your workflows by status (templates are not counted).

status​

status(workflow_id: str) -> WorkflowStatus

Get a workflow's live deployment status and how to invoke it.

Gate readiness on health["replicas"]["ready"] >= 1.

Parameters

  • workflow_id (str): The workflow.

structure_check​

structure_check(workflow_id: str) -> WorkflowStructureCheck

Check a workflow's structure: broken connections, a missing trigger, unset services.

Parameters

  • workflow_id (str): The workflow.

time_series​

time_series(workflow_id: str, *, window: SeriesWindow | None = None, granularity: SeriesGranularity | None = None) -> WorkflowRunsSeries

Get a workflow's runs over time, by outcome, with their durations.

Each run counts once, in the hour or day it was created: completed, partial, failed, cancelled or still running, which add up to runs.

Every hour (24h) or UTC day (7d, 30d) of the window is a point, from the one its start falls in to the current one; a quiet point counts zero.

Parameters

  • workflow_id (str): The workflow ID.
  • window ({"24h", "7d", "30d"} | None, optional): The window. The API's default is "30d".
  • granularity ({"hourly", "daily"} | None, optional): hourly for 24h, daily otherwise; the window's when left out (another is refused).

update_alert_rule​

update_alert_rule(rule_id: str, *, name: str | None = None, condition: str | None = None, channels: Sequence[Mapping[str, Any]] | None = None, workflow_id: str | None = None, condition_config: Mapping[str, Any] | None = None, throttle: Mapping[str, Any] | None = None, is_enabled: bool | None = None, description: str | None = None) -> WorkflowAlertRule

Change one of your workflow alert rules (only the fields you pass) and return it.

Parameters

  • rule_id (str): The rule.
  • name (str | None, optional): Its new name.
  • condition (str | None, optional): Its new condition (as create_alert_rule).
  • channels (Sequence[Mapping[str, Any]] | None, optional): Its channels (replaces them).
  • workflow_id (str | None, optional): The workflow it watches.
  • condition_config (Mapping[str, Any] | None, optional): Its condition's settings.
  • throttle (Mapping[str, Any] | None, optional): Its throttle.
  • is_enabled (bool | None, optional): False pauses it.
  • description (str | None, optional): What the rule is for.

update_lifecycle​

update_lifecycle(workflow_id: str, *, type: str, idle_timeout_minutes: int | None = None, schedule: Mapping[str, Any] | None = None) -> WorkflowLifecycle

Set a workflow's lifecycle policy and return it.

Parameters

  • workflow_id (str): The workflow.
  • type (str): always-on, idle-shutdown, on-demand or scheduled-window.
  • idle_timeout_minutes (int | None, optional): With idle-shutdown: minutes idle before it stops (5 to 1440, default 30).
  • schedule (Mapping[str, Any] | None, optional): With scheduled-window: &#123;"timezone", "windows": [&#123;"days", "startTime", "endTime"&#125;]&#125;.

update_node​

update_node(workflow_id: str, node_id: str, *, config: Mapping[str, Any] | None = None, label: str | None = None, node_version: str | None = None) -> WorkflowGraphNode

Change a node's configuration (merged into it), label or version; answers the node.

Parameters

  • workflow_id (str): The workflow.
  • node_id (str): The node (its id in the workflow).
  • config (Mapping[str, Any] | None, optional): Configuration values, merged into the node's.
  • label (str | None, optional): Its new label.
  • node_version (str | None, optional): A published version of its catalog node to pin it to, older ones included; one not published is refused (400), naming the published versions.

update_node_input_mappings​

update_node_input_mappings(workflow_id: str, node_id: str, *, mappings: Mapping[str, Any]) -> WorkflowGraphNode

Set a node's input mappings (replaces them); answers the node.

Parameters

  • workflow_id (str): The workflow.
  • node_id (str): The node.
  • mappings (Mapping[str, Any]): {inputName: "data.path.in.the.incoming.data"}.

update_node_passthrough_values​

update_node_passthrough_values(workflow_id: str, node_id: str, *, values: Mapping[str, Any]) -> WorkflowGraphNode

Set a node's pass-through values (replaces them); answers the node.

Each entry copies one of the node's inputs into its output, so the next node can map it as data.<outputKey>.

Parameters

  • workflow_id (str): The workflow.
  • node_id (str): The node.
  • values (Mapping[str, Any]): {outputKey: "inputName"}, each inputName one of the node's inputs.

validate​

validate(workflow_id: str) -> WorkflowValidation

Check a workflow's control-flow and loop wiring, with fixes for what is wrong.

Parameters

  • workflow_id (str): The workflow.

versions​

versions(workflow_id: str, *, limit: int | None = None) -> SyncPaginator[WorkflowVersion]

List a workflow's versions, newest first, a page at a time as you iterate.

Each says whether it is the current version and whether it is deployed; the definitions are left out (retrieve_version has one).

Parameters

  • workflow_id (str): The workflow.
  • limit (int | None, optional): The most versions to return; every one when omitted.