from engini import Engini
client = Engini() # reads ENGINI_API_KEY
wf = client.workflows.get(1234)
print(wf.name, wf.enabled, wf.steps_count)import { Engini } from "@engini/sdk";
const client = new Engini(); // reads ENGINI_API_KEY
const wf = await client.workflows.get(1234);
console.log(wf.name, wf.enabled, wf.stepsCount);engini workflows get 1234 --jsonconst options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.engini.io/v1/workflows/{workflowId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.engini.io/v1/workflows/{workflowId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.engini.io/v1/workflows/{workflowId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.engini.io/v1/workflows/{workflowId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engini.io/v1/workflows/{workflowId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"workflowId": 123,
"name": "<string>",
"type": "<string>",
"enabled": true,
"deleted": true,
"blocked": true,
"consecutiveFailures": 123,
"maxConsecutiveFailures": 123,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": {
"id": 123,
"name": "<string>"
},
"historyRetentionDays": 123,
"workflowConcurrency": 123,
"applyConcurrencyLimitOnWaitingWorkflow": true,
"stepsCount": 123,
"connections": [
{
"connectionId": 123,
"connectionName": "<string>",
"applicationName": "<string>",
"applicationSlug": "<string>"
}
],
"workspace": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"environment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>"
},
"slug": "<string>",
"folderName": "<string>",
"folderId": 123,
"deletedAt": "2023-11-07T05:31:56Z",
"deletedBy": {
"id": 123,
"name": "<string>"
},
"blockReason": "<string>",
"blockedDate": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": {
"id": 123,
"name": "<string>"
},
"lastRunAt": "2023-11-07T05:31:56Z",
"nextRun": "2023-11-07T05:31:56Z",
"description": "<string>",
"steps": [
{
"stepNo": 123,
"parentStepNo": 123,
"name": "<string>",
"jumpsTo": [
123
],
"isSkipped": true,
"sortOrder": 123,
"description": "<string>",
"activityName": "<string>",
"applicationSlug": "<string>",
"applicationName": "<string>",
"connectionId": 123,
"connectionName": "<string>",
"configuration": "<unknown>"
}
],
"webhookUrl": "<string>"
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}Get a workflow
Returns one workflow including its designer steps, which the list endpoint omits because a step array per row is expensive on a full page.
A deleted workflow still resolves here, with deleted set to true plus deletedAt and deletedBy, so that the workflowId on an old execution never points at nothing. Each step’s configuration is opaque, connector-defined and outside the v1 compatibility guarantee - it can change shape without a new API version.
from engini import Engini
client = Engini() # reads ENGINI_API_KEY
wf = client.workflows.get(1234)
print(wf.name, wf.enabled, wf.steps_count)import { Engini } from "@engini/sdk";
const client = new Engini(); // reads ENGINI_API_KEY
const wf = await client.workflows.get(1234);
console.log(wf.name, wf.enabled, wf.stepsCount);engini workflows get 1234 --jsonconst options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.engini.io/v1/workflows/{workflowId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.engini.io/v1/workflows/{workflowId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.engini.io/v1/workflows/{workflowId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.engini.io/v1/workflows/{workflowId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.engini.io/v1/workflows/{workflowId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"workflowId": 123,
"name": "<string>",
"type": "<string>",
"enabled": true,
"deleted": true,
"blocked": true,
"consecutiveFailures": 123,
"maxConsecutiveFailures": 123,
"createdAt": "2023-11-07T05:31:56Z",
"createdBy": {
"id": 123,
"name": "<string>"
},
"historyRetentionDays": 123,
"workflowConcurrency": 123,
"applyConcurrencyLimitOnWaitingWorkflow": true,
"stepsCount": 123,
"connections": [
{
"connectionId": 123,
"connectionName": "<string>",
"applicationName": "<string>",
"applicationSlug": "<string>"
}
],
"workspace": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"environment": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"type": "<string>"
},
"slug": "<string>",
"folderName": "<string>",
"folderId": 123,
"deletedAt": "2023-11-07T05:31:56Z",
"deletedBy": {
"id": 123,
"name": "<string>"
},
"blockReason": "<string>",
"blockedDate": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"updatedBy": {
"id": 123,
"name": "<string>"
},
"lastRunAt": "2023-11-07T05:31:56Z",
"nextRun": "2023-11-07T05:31:56Z",
"description": "<string>",
"steps": [
{
"stepNo": 123,
"parentStepNo": 123,
"name": "<string>",
"jumpsTo": [
123
],
"isSkipped": true,
"sortOrder": 123,
"description": "<string>",
"activityName": "<string>",
"applicationSlug": "<string>",
"applicationName": "<string>",
"connectionId": 123,
"connectionName": "<string>",
"configuration": "<unknown>"
}
],
"webhookUrl": "<string>"
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}{
"errorCode": "<string>",
"message": "<string>",
"requestId": "<string>",
"timestamp": "<string>",
"details": [
{
"field": "<string>",
"issue": "<string>"
}
]
}Response
The workflow with its steps.
Public shape of a workflow including its designer steps, as returned by GET /v1/workflows/{workflowId}. The list endpoint returns WorkflowPublicDTO without Steps, because a step array per row is ruinous on a 100-row page.
The address an external system sends to in order to start this workflow, when its trigger is a webhook that Engini hands out (the URL the designer shows on the trigger). Omitted for every other trigger, and for a deleted workflow: a polling or app-subscribed trigger has no address to send to. The URL may end in a relative path with {name} placeholders, which the sender fills in; the filled values reach the workflow under urlparameters. Calls are answered 404 while the workflow is turned off - a workflow created through the API is always created off, so turn it on before sending to it. The token inside the URL is what authorizes a call to it, so treat the value like a credential: do not log it or share it beyond the system that sends to it.