List Pending Approvals
curl --request GET \
--url https://api.neuralfactory.ai/workflows/approvals/pending \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.neuralfactory.ai/workflows/approvals/pending"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.neuralfactory.ai/workflows/approvals/pending', 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.neuralfactory.ai/workflows/approvals/pending",
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.neuralfactory.ai/workflows/approvals/pending"
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.neuralfactory.ai/workflows/approvals/pending")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.neuralfactory.ai/workflows/approvals/pending")
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{
"items": [
{
"id": "<string>",
"execution_id": "<string>",
"step_id": "<string>",
"status": "<string>",
"workflow_id": "<string>",
"step_name": "<string>",
"prompt": "<string>",
"approver_role": "<string>",
"requested_at": "<string>",
"expires_at": "<string>",
"decision": "<string>",
"approver_id": "<string>",
"comment": "<string>",
"evidence": "<string>",
"context": {},
"workflow_name": "",
"requested_by": "<string>",
"context_summary": "",
"decided_at": "<string>",
"allow_self_approval": false,
"type": "<string>",
"reason": "<string>"
}
],
"meta": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Workflows
List Pending Approvals
Approvals inbox listing.
status=pending (default) returns open requests; status=decided
returns resolved ones (approved/rejected/timed_out) sorted by decision
time descending. Every item is enriched with workflow_name,
requested_by (email when resolvable) and a redacted one-line
context_summary.
API key permission: Agents (Admin also opens it).
GET
/
workflows
/
approvals
/
pending
List Pending Approvals
curl --request GET \
--url https://api.neuralfactory.ai/workflows/approvals/pending \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.neuralfactory.ai/workflows/approvals/pending"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.neuralfactory.ai/workflows/approvals/pending', 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.neuralfactory.ai/workflows/approvals/pending",
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.neuralfactory.ai/workflows/approvals/pending"
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.neuralfactory.ai/workflows/approvals/pending")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.neuralfactory.ai/workflows/approvals/pending")
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{
"items": [
{
"id": "<string>",
"execution_id": "<string>",
"step_id": "<string>",
"status": "<string>",
"workflow_id": "<string>",
"step_name": "<string>",
"prompt": "<string>",
"approver_role": "<string>",
"requested_at": "<string>",
"expires_at": "<string>",
"decision": "<string>",
"approver_id": "<string>",
"comment": "<string>",
"evidence": "<string>",
"context": {},
"workflow_name": "",
"requested_by": "<string>",
"context_summary": "",
"decided_at": "<string>",
"allow_self_approval": false,
"type": "<string>",
"reason": "<string>"
}
],
"meta": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}