Governance
Get a Trust Fabric attention item
Reads one attention item, decided ones included, by the resource it is about, decided at the deployment root as listAttention is. Requires permission audit:read, decided at the deployment root.
GET
/
api
/
v3
/
governance-attention-items
/
{subjectId}
Get a Trust Fabric attention item
curl --request GET \
--url https://api.forge.gloo.com/api/v3/governance-attention-items/{subjectId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.forge.gloo.com/api/v3/governance-attention-items/{subjectId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.forge.gloo.com/api/v3/governance-attention-items/{subjectId}', 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.forge.gloo.com/api/v3/governance-attention-items/{subjectId}",
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.forge.gloo.com/api/v3/governance-attention-items/{subjectId}"
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.forge.gloo.com/api/v3/governance-attention-items/{subjectId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.forge.gloo.com/api/v3/governance-attention-items/{subjectId}")
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": {
"item": {
"key": "<string>",
"kind": "human_node",
"id": "<string>",
"title": "<string>",
"summary": "<string>",
"requestedAt": 123,
"deadlineAt": 123,
"overdue": true,
"ownerLabel": "<string>",
"workflowRunId": "<string>",
"sessionId": "<string>",
"orgUnitId": "<string>",
"source": "<string>",
"reason": "<string>",
"href": "<string>",
"effect": "resume_workflow",
"resolution": "operator_approval",
"unavailableReason": "<string>",
"form": {
"version": 2,
"schema": {
"type": "object",
"properties": {},
"required": [
"<string>"
],
"xForgeOrder": [
"<string>"
]
},
"actions": [
{
"id": "<string>",
"label": "<string>",
"doneLabel": "<string>",
"style": "primary",
"effect": "permit",
"requires": [
"<string>"
],
"assurance": "none"
}
]
},
"grantDescriptor": {
"targetOrgUnitId": "<string>",
"subjects": [
{
"kind": "worker",
"id": "<string>"
}
],
"targetOrgUnitCode": "<string>",
"connectionTarget": "<string>"
},
"state": "pending",
"subject": {
"kind": "procedure_build",
"label": "<string>",
"href": "<string>",
"requesterLabel": "<string>",
"position": {
"index": 123,
"total": 123
}
},
"effectDetail": {
"toolId": "<string>",
"riskLevel": "read",
"writes": true,
"sendsOut": true,
"credentialUse": true,
"sensitiveData": true,
"egressHosts": [
"<string>"
],
"egressHostsOmitted": 123,
"requiredPermissions": [
"<string>"
]
},
"argsPreview": {
"json": "<string>",
"truncated": true,
"redactedPaths": 123,
"egressHosts": [
"<string>"
]
},
"approvers": {
"names": [
"<string>"
],
"count": 123,
"overflow": true,
"includesMe": true
},
"ability": {
"canApprove": true,
"approveDoor": "operator",
"approveBlockedReason": "<string>",
"canReject": true,
"rejectDoor": "operator",
"rejectBlockedReason": "<string>",
"rejectConsequence": "<string>",
"approveIsSelfRelease": true
},
"decision": {
"decidedAt": 123,
"decidedBy": "<string>",
"decidedByPerson": true,
"reason": "<string>",
"outcome": "build_resumed",
"statusLine": "<string>",
"href": "<string>",
"remaining": 123
},
"cancelReason": "due_date"
}
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "forbidden",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "resource_missing",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "internal_error",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}The reference panel describes the current v3 operation. The notes below describe its v2 compatibility API. Follow the v3 request schema for current calls: v3 can move identifiers from the body or query into the URL. Keep the v2 method, path, and payload together when using the compatibility API.
v2 compatibility notes
Reads one attention item, decided ones included, by the resource it is about: a workflow run, a chat session, an approval, a human step or an agent setup request. Who reads as whom, and whatability
means, are the same as for listAttention.
An item you may not see, a missing resource and an id that does not name a resource of its kind all
answer the same 404. An unknown kind is 400.
Parameters
| Parameter | Required | Meaning |
|---|---|---|
kind | Yes | workflow_run, chat_session, approval, human_node or agent_setup. |
id | Yes | The resource id. |
Example
curl "$FORGE_BASE/api/v2/governance/getAttentionItem?kind=approval&id=appr_123" \
-H "Authorization: Bearer $FORGE_TOKEN"
{ "data": { "item": { … } }, "meta": { "requestId": "…" } }; item follows the
TrustAttentionItem schema. The MCP tool forge_get_attention_item returns the same data and
meta.Authorizations
BearerAuthPlatformApiKeyPersonalKey
Path Parameters
Query Parameters
⌘I
Get a Trust Fabric attention item
curl --request GET \
--url https://api.forge.gloo.com/api/v3/governance-attention-items/{subjectId} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.forge.gloo.com/api/v3/governance-attention-items/{subjectId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.forge.gloo.com/api/v3/governance-attention-items/{subjectId}', 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.forge.gloo.com/api/v3/governance-attention-items/{subjectId}",
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.forge.gloo.com/api/v3/governance-attention-items/{subjectId}"
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.forge.gloo.com/api/v3/governance-attention-items/{subjectId}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.forge.gloo.com/api/v3/governance-attention-items/{subjectId}")
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": {
"item": {
"key": "<string>",
"kind": "human_node",
"id": "<string>",
"title": "<string>",
"summary": "<string>",
"requestedAt": 123,
"deadlineAt": 123,
"overdue": true,
"ownerLabel": "<string>",
"workflowRunId": "<string>",
"sessionId": "<string>",
"orgUnitId": "<string>",
"source": "<string>",
"reason": "<string>",
"href": "<string>",
"effect": "resume_workflow",
"resolution": "operator_approval",
"unavailableReason": "<string>",
"form": {
"version": 2,
"schema": {
"type": "object",
"properties": {},
"required": [
"<string>"
],
"xForgeOrder": [
"<string>"
]
},
"actions": [
{
"id": "<string>",
"label": "<string>",
"doneLabel": "<string>",
"style": "primary",
"effect": "permit",
"requires": [
"<string>"
],
"assurance": "none"
}
]
},
"grantDescriptor": {
"targetOrgUnitId": "<string>",
"subjects": [
{
"kind": "worker",
"id": "<string>"
}
],
"targetOrgUnitCode": "<string>",
"connectionTarget": "<string>"
},
"state": "pending",
"subject": {
"kind": "procedure_build",
"label": "<string>",
"href": "<string>",
"requesterLabel": "<string>",
"position": {
"index": 123,
"total": 123
}
},
"effectDetail": {
"toolId": "<string>",
"riskLevel": "read",
"writes": true,
"sendsOut": true,
"credentialUse": true,
"sensitiveData": true,
"egressHosts": [
"<string>"
],
"egressHostsOmitted": 123,
"requiredPermissions": [
"<string>"
]
},
"argsPreview": {
"json": "<string>",
"truncated": true,
"redactedPaths": 123,
"egressHosts": [
"<string>"
]
},
"approvers": {
"names": [
"<string>"
],
"count": 123,
"overflow": true,
"includesMe": true
},
"ability": {
"canApprove": true,
"approveDoor": "operator",
"approveBlockedReason": "<string>",
"canReject": true,
"rejectDoor": "operator",
"rejectBlockedReason": "<string>",
"rejectConsequence": "<string>",
"approveIsSelfRelease": true
},
"decision": {
"decidedAt": 123,
"decidedBy": "<string>",
"decidedByPerson": true,
"reason": "<string>",
"outcome": "build_resumed",
"statusLine": "<string>",
"href": "<string>",
"remaining": 123
},
"cancelReason": "due_date"
}
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "bad_request",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "forbidden",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "resource_missing",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "internal_error",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}{
"error": {
"code": "unauthorized",
"message": "<string>",
"docUrl": "<string>",
"reason": "requester_unavailable",
"requiredPermission": "<string>",
"personRequired": true,
"decisionId": "<string>",
"capHeadroom": {
"remainingCents": 123,
"capCents": 123,
"consumedCents": 123,
"estimateCents": 123
},
"details": [
{
"path": "<string>",
"param": "<string>",
"message": "<string>",
"code": "required"
}
]
},
"meta": {
"requestId": "<string>",
"hasMore": true,
"nextCursor": "<string>",
"asOf": 123
}
}
