Workflows
List workflows
Your workflows, newest first. Needs workflow:read.
GET
/
api
/
workflows
List workflows
curl --request GET \
--url https://api.hitl.sh/v1/api/workflows \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hitl.sh/v1/api/workflows"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hitl.sh/v1/api/workflows', 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.hitl.sh/v1/api/workflows",
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.hitl.sh/v1/api/workflows"
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.hitl.sh/v1/api/workflows")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hitl.sh/v1/api/workflows")
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{
"data": {
"count": 5,
"workflows": [
{
"id": "6af2ce5f8207961501f59482",
"name": "Translation quality",
"description": "Native speakers rate machine translations.",
"status": "active",
"trigger": {
"type": "webhook",
"webhook_id": "wf_d7050a5d0e91ee0944534988405a9c7a"
},
"steps": 3,
"has_review": true,
"runnable": true,
"execution_count": 2,
"last_executed_at": "2026-11-10T07:59:39.189Z",
"created_at": "2026-11-10T07:57:19.308Z",
"updated_at": "2026-11-10T07:57:22.218Z"
},
{
"id": "6af2ce5b8207961501f5947e",
"name": "Support reply review",
"description": "An agent drafts a reply; a person edits and sends it.",
"status": "active",
"trigger": {
"type": "webhook",
"webhook_id": "wf_b5bdb3e59a5dbbae7c37391cc794e752"
},
"steps": 4,
"has_review": true,
"runnable": true,
"execution_count": 2,
"last_executed_at": "2026-11-10T07:59:44.889Z",
"created_at": "2026-11-10T07:57:15.116Z",
"updated_at": "2026-11-10T07:57:18.042Z"
},
{
"id": "6af2ce568207961501f5947a",
"name": "Deploy gate",
"description": "An on-call engineer signs off production deploys.",
"status": "active",
"trigger": {
"type": "webhook",
"webhook_id": "wf_fe660c09a7434ebfc13a9e71f6dc63da"
},
"steps": 4,
"has_review": true,
"runnable": true,
"execution_count": 2,
"last_executed_at": "2026-11-10T07:59:50.439Z",
"created_at": "2026-11-10T07:57:10.915Z",
"updated_at": "2026-11-10T07:57:13.849Z"
},
{
"id": "6af2ce528207961501f59476",
"name": "Content moderation",
"description": "Moderators check posts the classifier flagged.",
"status": "active",
"trigger": {
"type": "webhook",
"webhook_id": "wf_4aa18482334c7eae5e18f094bca35223"
},
"steps": 4,
"has_review": true,
"runnable": true,
"execution_count": 2,
"last_executed_at": "2026-11-10T07:59:55.996Z",
"created_at": "2026-11-10T07:57:06.721Z",
"updated_at": "2026-11-10T07:57:09.654Z"
},
{
"id": "6af2ce4e8207961501f59472",
"name": "Refund approval",
"description": "A support lead approves, denies or escalates refunds over $100.",
"status": "active",
"trigger": {
"type": "webhook",
"webhook_id": "wf_26db308d0ea2bfd5427999311a169b3b"
},
"steps": 6,
"has_review": true,
"runnable": true,
"execution_count": 4,
"last_executed_at": "2026-11-10T08:00:07.228Z",
"created_at": "2026-11-10T07:57:02.477Z",
"updated_at": "2026-11-10T07:57:05.452Z"
}
]
},
"error": false,
"msg": "Workflows retrieved"
}{
"error": true,
"msg": "Invalid API key"
}{
"error": true,
"msg": "Rate limit exceeded"
}⌘I
List workflows
curl --request GET \
--url https://api.hitl.sh/v1/api/workflows \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.hitl.sh/v1/api/workflows"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.hitl.sh/v1/api/workflows', 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.hitl.sh/v1/api/workflows",
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.hitl.sh/v1/api/workflows"
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.hitl.sh/v1/api/workflows")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hitl.sh/v1/api/workflows")
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{
"data": {
"count": 5,
"workflows": [
{
"id": "6af2ce5f8207961501f59482",
"name": "Translation quality",
"description": "Native speakers rate machine translations.",
"status": "active",
"trigger": {
"type": "webhook",
"webhook_id": "wf_d7050a5d0e91ee0944534988405a9c7a"
},
"steps": 3,
"has_review": true,
"runnable": true,
"execution_count": 2,
"last_executed_at": "2026-11-10T07:59:39.189Z",
"created_at": "2026-11-10T07:57:19.308Z",
"updated_at": "2026-11-10T07:57:22.218Z"
},
{
"id": "6af2ce5b8207961501f5947e",
"name": "Support reply review",
"description": "An agent drafts a reply; a person edits and sends it.",
"status": "active",
"trigger": {
"type": "webhook",
"webhook_id": "wf_b5bdb3e59a5dbbae7c37391cc794e752"
},
"steps": 4,
"has_review": true,
"runnable": true,
"execution_count": 2,
"last_executed_at": "2026-11-10T07:59:44.889Z",
"created_at": "2026-11-10T07:57:15.116Z",
"updated_at": "2026-11-10T07:57:18.042Z"
},
{
"id": "6af2ce568207961501f5947a",
"name": "Deploy gate",
"description": "An on-call engineer signs off production deploys.",
"status": "active",
"trigger": {
"type": "webhook",
"webhook_id": "wf_fe660c09a7434ebfc13a9e71f6dc63da"
},
"steps": 4,
"has_review": true,
"runnable": true,
"execution_count": 2,
"last_executed_at": "2026-11-10T07:59:50.439Z",
"created_at": "2026-11-10T07:57:10.915Z",
"updated_at": "2026-11-10T07:57:13.849Z"
},
{
"id": "6af2ce528207961501f59476",
"name": "Content moderation",
"description": "Moderators check posts the classifier flagged.",
"status": "active",
"trigger": {
"type": "webhook",
"webhook_id": "wf_4aa18482334c7eae5e18f094bca35223"
},
"steps": 4,
"has_review": true,
"runnable": true,
"execution_count": 2,
"last_executed_at": "2026-11-10T07:59:55.996Z",
"created_at": "2026-11-10T07:57:06.721Z",
"updated_at": "2026-11-10T07:57:09.654Z"
},
{
"id": "6af2ce4e8207961501f59472",
"name": "Refund approval",
"description": "A support lead approves, denies or escalates refunds over $100.",
"status": "active",
"trigger": {
"type": "webhook",
"webhook_id": "wf_26db308d0ea2bfd5427999311a169b3b"
},
"steps": 6,
"has_review": true,
"runnable": true,
"execution_count": 4,
"last_executed_at": "2026-11-10T08:00:07.228Z",
"created_at": "2026-11-10T07:57:02.477Z",
"updated_at": "2026-11-10T07:57:05.452Z"
}
]
},
"error": false,
"msg": "Workflows retrieved"
}{
"error": true,
"msg": "Invalid API key"
}{
"error": true,
"msg": "Rate limit exceeded"
}