curl --request GET \
--url https://api.erdo.ai/v1/approvals/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.erdo.ai/v1/approvals/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.erdo.ai/v1/approvals/{id}', 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.erdo.ai/v1/approvals/{id}",
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.erdo.ai/v1/approvals/{id}"
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.erdo.ai/v1/approvals/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/approvals/{id}")
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{
"action_context": "<string>",
"action_display": "<string>",
"action_headline": "<string>",
"action_input": {},
"action_items": [
{
"decision_class": "<string>",
"params_compact": {},
"preview": "<string>",
"what": "<string>",
"why": "<string>"
}
],
"action_key": "<string>",
"agent_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"card_contract_version": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"decided_at": "2023-11-07T05:31:56Z",
"decided_by_external_ref": "<string>",
"decided_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"decision_class": "<string>",
"decision_parameter_constraints": {},
"decision_scope": "<string>",
"execution": {
"executed_at": "2023-11-07T05:31:56Z",
"failed_count": 123,
"recorded_count": 123,
"state": "<string>",
"summary": "<string>",
"total_count": 123
},
"expected_effect": {},
"expires_at": "2023-11-07T05:31:56Z",
"first_proposed_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_proposed_at": "2023-11-07T05:31:56Z",
"occurrence_count": 123,
"omitted_items": 123,
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope_options": [
{
"constraints": {},
"label": "<string>"
}
],
"status": "<string>",
"subject_display_name": "<string>",
"subject_key": "<string>",
"subject_resource_id": "<string>",
"subject_resource_type": "<string>",
"supersedes_decision_slug": "<string>",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workstream_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}GetApprovalAPI mirrors erdo_get_approval: one request in full, the read a
decision is made against — the itemized projection, the recorded reason, and the scope options — where the list is sized for scanning.
curl --request GET \
--url https://api.erdo.ai/v1/approvals/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.erdo.ai/v1/approvals/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.erdo.ai/v1/approvals/{id}', 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.erdo.ai/v1/approvals/{id}",
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.erdo.ai/v1/approvals/{id}"
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.erdo.ai/v1/approvals/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.erdo.ai/v1/approvals/{id}")
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{
"action_context": "<string>",
"action_display": "<string>",
"action_headline": "<string>",
"action_input": {},
"action_items": [
{
"decision_class": "<string>",
"params_compact": {},
"preview": "<string>",
"what": "<string>",
"why": "<string>"
}
],
"action_key": "<string>",
"agent_run_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"card_contract_version": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"decided_at": "2023-11-07T05:31:56Z",
"decided_by_external_ref": "<string>",
"decided_by_user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"decision_class": "<string>",
"decision_parameter_constraints": {},
"decision_scope": "<string>",
"execution": {
"executed_at": "2023-11-07T05:31:56Z",
"failed_count": 123,
"recorded_count": 123,
"state": "<string>",
"summary": "<string>",
"total_count": 123
},
"expected_effect": {},
"expires_at": "2023-11-07T05:31:56Z",
"first_proposed_at": "2023-11-07T05:31:56Z",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_execution_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"job_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"last_proposed_at": "2023-11-07T05:31:56Z",
"occurrence_count": 123,
"omitted_items": 123,
"organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"scope_options": [
{
"constraints": {},
"label": "<string>"
}
],
"status": "<string>",
"subject_display_name": "<string>",
"subject_key": "<string>",
"subject_resource_id": "<string>",
"subject_resource_type": "<string>",
"supersedes_decision_slug": "<string>",
"thread_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workstream_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"code": "not_found",
"details": {},
"message": "<string>"
}Authorizations
An Erdo API key (erdo_api_...) or scoped token (erdo_token_...).
Path Parameters
Response
Success response
Show child attributes
Show child attributes
service from the stored row and the action registry, never by a consumer. See ApprovalCard for what each field promises; CardContractVersion is what a renderer keys its expectations on.
— opaque, unverified, and stored exactly as it arrived. It is read back here so a reconciliation that missed the decision event still learns it rather than recording the decision with nobody attached. Attribution only; see DecideRequest.
for the surfaces a person reads. A single-action grant has one member; a batch has one per child, and the summary says whether its members landed, failed, remain in flight, or have an unconfirmed outcome. A sibling's success must never hide a failed or indeterminate member.
Show child attributes
Show child attributes
captured at filing from the call's expected_effect field and stored verbatim — the approval service never interprets it. The decision record turns it into a typed measurement contract when it records the decision this approval became; see ExpectedEffect for the declaration's shape.
Absent on most approvals, and honestly so: a change with no measurable business effect is better declaring nothing than inventing a metric.
report is moot the next day). nil is the default and the common case — an ask with no deadline never ages out; it resolves only when decided, superseded, or withdrawn.
Show child attributes
Show child attributes
deduplication. OccurrenceCount is how many times this exact action-on-subject has been proposed (1 = proposed once); when > 1 the UI shows "proposed Nx since <FirstProposedAt>". FirstProposedAt/LastProposedAt COALESCE to CreatedAt when the row predates dedupe tracking.
acts on (e.g. "artifact" + its id), when the action's registration declares one. They let a client resolve and render the actual subject — open/preview the page being published — instead of parsing a display string. Empty when the action carries no resolvable subject.
this action would end, captured at filing from the call's supersedes_decision_slug field. Stored as its own column rather than left in action_input because the decision producer must read it after the human answers, and a re-proposal rewrites that blob wholesale.
Empty on almost every approval: most changes reverse nothing.

