Workflows
List runs
A workflow’s last 20 runs, newest first, each with its state, steps and output.
GET
/
workflows
/
{id}
/
runs
List a workflow’s recent runs
curl --request GET \
--url https://www.orgo.ai/api/workflows/{id}/runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.orgo.ai/api/workflows/{id}/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.orgo.ai/api/workflows/{id}/runs', 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://www.orgo.ai/api/workflows/{id}/runs",
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://www.orgo.ai/api/workflows/{id}/runs"
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://www.orgo.ai/api/workflows/{id}/runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.orgo.ai/api/workflows/{id}/runs")
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{
"runs": [
{
"run_id": "0d9c6c1e-5b8e-4a59-9d3b-7a1f2c3d4e5f",
"state": "done",
"at": 1793887204000,
"by": "Claude Code",
"inputs": {},
"steps": [
{
"id": "a",
"title": "9:00 AM",
"kind": "start",
"how": "ran",
"ms": 4,
"output": {}
},
{
"id": "b",
"title": "Write the report",
"kind": "agent",
"how": "ran",
"ms": 21400,
"output": {
"report": "3 new customers yesterday."
}
}
],
"output": {
"report": "3 new customers yesterday."
},
"finished_at": "2026-11-05T14:00:31.000Z"
}
]
}{
"error": "<string>",
"code": "<string>",
"say": "<string>",
"next": "<string>",
"to_fix": [
"<string>"
],
"problems": [
{}
],
"version": 123,
"lines": "<string>"
}{
"error": "<string>",
"code": "<string>",
"say": "<string>",
"next": "<string>",
"to_fix": [
"<string>"
],
"problems": [
{}
],
"version": 123,
"lines": "<string>"
}{
"error": "<string>",
"code": "<string>",
"say": "<string>",
"next": "<string>",
"to_fix": [
"<string>"
],
"problems": [
{}
],
"version": 123,
"lines": "<string>"
}{
"error": "Too many API requests this minute (120 a minute on your plan). Try again in 12 seconds.",
"code": "rate_limited",
"limit": "api_other_per_minute",
"retry_after": 12
}{
"error": "<string>",
"code": "<string>",
"say": "<string>",
"next": "<string>",
"to_fix": [
"<string>"
],
"problems": [
{}
],
"version": 123,
"lines": "<string>"
}Returns a workflow’s last 20 runs, newest first. Each run has the shape Get a run describes. A time that started no run (missed while Orgo was down past its window, its computer deleted, out of credit) is listed as a stopped run with no steps, its reason in
stop.
Path parameters
string
required
The workflow’s id, like
morning-report.Response
Example
curl https://www.orgo.ai/api/workflows/morning-report/runs \
-H "Authorization: Bearer $ORGO_API_KEY"
import os, requests
r = requests.get(
"https://www.orgo.ai/api/workflows/morning-report/runs",
headers={"Authorization": f"Bearer {os.environ['ORGO_API_KEY']}"},
)
for run in r.json()["runs"]:
print(run["run_id"], run["state"])
const r = await fetch("https://www.orgo.ai/api/workflows/morning-report/runs", {
headers: { Authorization: `Bearer ${process.env.ORGO_API_KEY}` },
});
const { runs } = await r.json();
Response
{
"runs": [
{
"run_id": "0d9c6c1e-5b8e-4a59-9d3b-7a1f2c3d4e5f",
"state": "done",
"at": 1793887204000,
"by": "Claude Code",
"inputs": {},
"steps": [
{ "id": "a", "title": "9:00 AM", "kind": "start", "how": "ran", "ms": 4, "output": {} },
{ "id": "b", "title": "Write the report", "kind": "agent", "how": "ran", "ms": 21400, "output": { "report": "3 new customers yesterday." } }
],
"output": { "report": "3 new customers yesterday." },
"finished_at": "2026-11-05T14:00:31.000Z"
}
]
}
Errors
| Status | Code | When |
|---|---|---|
401 | No key, or a key Orgo doesn’t know. | |
403 | key_permission | A restricted key without Workflows read. |
404 | not_found | No workflow by that id. |
404 | (no body) | Workflows aren’t open to your account. |
429 | rate_limited | Your plan’s rate limit for other API calls. Carries Retry-After. |
503 | runs_unavailable | Runs can’t be read here right now. Retry after a minute. |
503 | Orgo couldn’t verify the key because of a server-side fault. Retry. |
⌘I
List a workflow’s recent runs
curl --request GET \
--url https://www.orgo.ai/api/workflows/{id}/runs \
--header 'Authorization: Bearer <token>'import requests
url = "https://www.orgo.ai/api/workflows/{id}/runs"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://www.orgo.ai/api/workflows/{id}/runs', 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://www.orgo.ai/api/workflows/{id}/runs",
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://www.orgo.ai/api/workflows/{id}/runs"
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://www.orgo.ai/api/workflows/{id}/runs")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.orgo.ai/api/workflows/{id}/runs")
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{
"runs": [
{
"run_id": "0d9c6c1e-5b8e-4a59-9d3b-7a1f2c3d4e5f",
"state": "done",
"at": 1793887204000,
"by": "Claude Code",
"inputs": {},
"steps": [
{
"id": "a",
"title": "9:00 AM",
"kind": "start",
"how": "ran",
"ms": 4,
"output": {}
},
{
"id": "b",
"title": "Write the report",
"kind": "agent",
"how": "ran",
"ms": 21400,
"output": {
"report": "3 new customers yesterday."
}
}
],
"output": {
"report": "3 new customers yesterday."
},
"finished_at": "2026-11-05T14:00:31.000Z"
}
]
}{
"error": "<string>",
"code": "<string>",
"say": "<string>",
"next": "<string>",
"to_fix": [
"<string>"
],
"problems": [
{}
],
"version": 123,
"lines": "<string>"
}{
"error": "<string>",
"code": "<string>",
"say": "<string>",
"next": "<string>",
"to_fix": [
"<string>"
],
"problems": [
{}
],
"version": 123,
"lines": "<string>"
}{
"error": "<string>",
"code": "<string>",
"say": "<string>",
"next": "<string>",
"to_fix": [
"<string>"
],
"problems": [
{}
],
"version": 123,
"lines": "<string>"
}{
"error": "Too many API requests this minute (120 a minute on your plan). Try again in 12 seconds.",
"code": "rate_limited",
"limit": "api_other_per_minute",
"retry_after": 12
}{
"error": "<string>",
"code": "<string>",
"say": "<string>",
"next": "<string>",
"to_fix": [
"<string>"
],
"problems": [
{}
],
"version": 123,
"lines": "<string>"
}