Skip to content

Automation ​

Workflows, their runs, and the app connections they use.

Scope: automation:read · automation:write

The concepts — triggers, nodes, expressions, connections — are documented once, for everyone, in the Help Center: Automation overview, Triggers, The node catalog, Expressions. This page is the HTTP surface over them.

Workflows ​

GET/automation/workflowsPaged list.Try it
POST/automation/workflowsCreate a workflow.Try it
GET/automation/workflows/{id}One workflow with its graph.Try it
PATCH/automation/workflows/{id}Update name, description or settings.Try it
DELETE/automation/workflows/{id}Delete the workflow.Try it
PUT/automation/workflows/{id}/graphReplace the node graph — this edits the DRAFT.Try it
GET/automation/workflows/for-object/{objectKey}Workflows that react to a Data Object.Try it
GET/automation/workflows/{id}/shapesThe data shape available at each node — what your expressions can reference.Try it
GET/automation/workflows/{id}/condition-statusWhich reactive conditions currently match.Try it

Lifecycle ​

POST/automation/workflows/{id}/publishPublish the draft as a new version — this is what triggers fire.Try it
POST/automation/workflows/{id}/activateTurn the live workflow on.Try it
POST/automation/workflows/{id}/deactivateTurn it off.Try it
GET/automation/workflows/{id}/versionsVersion history.Try it
GET/automation/workflows/{id}/versions/{versionId}One version.Try it
POST/automation/workflows/{id}/versions/{versionId}/restoreRoll back to a version.Try it

Editing a graph does not change what runs

Triggers fire the published version. PUT …/graph edits the draft; nothing changes in production until you publish. That separation is what makes it safe to build against a live workflow.

Running and testing ​

POST/automation/workflows/{id}/runStart a run with a payload you supply.Try it
POST/automation/workflows/{id}/nodes/{nodeId}/testExecute a single node against sample input.Try it
POST/automation/expressions/evaluateEvaluate an expression against a sample context.Try it
GET/automation/node-typesThe node catalog with each node's input schema.Try it

Runs ​

GET/automation/workflows/{id}/runsPaged run history for a workflow.Try it
GET/automation/runs/{runId}One run: status, per-node input/output, errors.Try it
POST/automation/runs/{runId}/retryRetry a failed run.Try it
POST/automation/runs/{runId}/cancelCancel a running one.Try it
GET/automation/statsAggregate run counts and failure rates.Try it

Run states and what each failure means: Runs and errors.

Triggering a workflow from outside ​

A workflow with a webhook trigger gets its own URL, which authenticates with the token in the path — not with an API key:

POST https://api.onivos.com/automation/hooks/{tenantId}/{token}

Post any JSON body; it becomes the run's trigger payload. The workflow's webhook security settings decide what else is required (a signature, an allowlist, a shared key):

POST/automation/hooks/{tenantId}/{token}Trigger a workflow from outside. Any JSON body becomes the run payload; the token in the path authenticates.no keyTry it
GET/automation/workflows/{id}/webhook-securityThe security policy on that URL.Try it
PUT/automation/workflows/{id}/webhook-securitySet the policy.Try it
POST/automation/workflows/{id}/webhook-security/keysMint a signing key.Try it
DELETE/automation/workflows/{id}/webhook-security/keys/{keyId}Revoke a signing key.Try it
POST/automation/resume/{tenantId}/{token}Resume a run paused on a wait step. The run hands you this URL.no keyTry it
GET/automation/review/{tenantId}/{token}Read what an approval step is asking for.no keyTry it

A workflow paused on a wait step resumes at POST /automation/resume/{tenantId}/{token}, and an approval step is answered at /automation/review/{tenantId}/{token}. Both are token URLs handed to you by the run.

Setup walkthrough: Receive webhooks.

There is no outbound webhook subscription API

Onivos does not currently expose a "subscribe my URL to event X" endpoint. To push events to your system, build a workflow: trigger on the event, and end it with an HTTP request node pointed at your endpoint. That gives you filtering, retries and a run log for free.

Connections ​

The credentials a workflow uses to reach third-party apps.

GET/automation/connectionsList connections.Try it
POST/automation/connectionsCreate one from credentials — the fallback when a provider has no OAuth.Try it
GET/automation/connections/{id}One connection.Try it
PATCH/automation/connections/{id}Rename a connection.Try it
DELETE/automation/connections/{id}Remove a connection.Try it
GET/automation/connections/{id}/oauth/startBegin the OAuth consent flow.Try it
GET/automation/connections/oauth/appsProviders with a one-click connect available.Try it
GET/automation/connections/oauth/redirect-uriThe redirect URI to register when you bring your own app.Try it
POST/automation/connections/oauth/quickRegister your own OAuth app for a provider.Try it

Where a provider supports OAuth, use it — API keys are the fallback, not the default. See Connect an app.

Variables and templates ​

GET/automation/varsWorkspace variables available to every workflow.Try it
PUT/automation/varsReplace them.Try it
DELETE/automation/vars/{id}Remove one.Try it
GET/automation/templatesPrebuilt workflow templates.Try it
POST/automation/templates/{key}/installInstall a template into the workspace.Try it
GET/automation/run-settings/defaultsDefault retry/timeout settings for new workflows.Try it

AI authoring ​

POST/automation/workflows/{id}/ai/generateBuild a graph from a description.Try it
POST/automation/workflows/{id}/ai/editEdit the graph from an instruction.Try it
POST/automation/workflows/{id}/ai/explainExplain what the workflow does.Try it