Approval Status
curl --request GET \
--url https://api.example.com/v1/approvals/{approval_id}/statusimport requests
url = "https://api.example.com/v1/approvals/{approval_id}/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/approvals/{approval_id}/status', 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.example.com/v1/approvals/{approval_id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/v1/approvals/{approval_id}/status"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/approvals/{approval_id}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/approvals/{approval_id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyApprovals
Approval Status
Check approval status, expiry, and token state
GET
/
v1
/
approvals
/
{approval_id}
/
status
Approval Status
curl --request GET \
--url https://api.example.com/v1/approvals/{approval_id}/statusimport requests
url = "https://api.example.com/v1/approvals/{approval_id}/status"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/approvals/{approval_id}/status', 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.example.com/v1/approvals/{approval_id}/status",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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.example.com/v1/approvals/{approval_id}/status"
req, _ := http.NewRequest("GET", url, nil)
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.example.com/v1/approvals/{approval_id}/status")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/approvals/{approval_id}/status")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyReturns the current status, expiry, and token state for an approval request.
This route is org- and wallet-scoped. It accepts any caller that can access the underlying approval request: static operator key, tenant API key, or authorized platform session.
curl -s \
-H "Authorization: Bearer $TOKEN" \
"http://127.0.0.1:3030/v1/approvals/$APPROVAL_ID/status"
Response Fields
| Field | Type | Description |
|---|---|---|
id | string | UUID of the approval request |
status | string | One of pending, approved, denied, expired |
expires_at | string | ISO 8601 timestamp when the approval expires |
risk_score | number | Numeric risk score assigned during the Sense stage |
alignment_score | number | Mandate alignment score (0-1, Jaccard or LLM-based) |
escalation_trigger | string | null | Reason the request was escalated (e.g. "over_limit", "low_alignment") |
token_state | string | One of available, expired, consumed, context_mismatch |
token_state_last_error | string | null | Last error message if token consumption failed |
created_at | string | ISO 8601 timestamp mapped from the DB’s requested_at column |
approved_at | string | null | ISO 8601 timestamp when approved (null if not yet approved) |
denied_reason | string | null | Operator-provided reason for denial (null if not denied) |
This REST route does not return the raw
approval_token. For that, use POST /v1/approvals/{approval_id}/consume or the MCP approval tools.Approval States
| State | Description |
|---|---|
pending | Awaiting operator review |
approved | Approved, token available |
denied | Rejected by operator |
expired | TTL exceeded (default 5 minutes) |
Token States
| Token State | Description |
|---|---|
available | Token is ready to be consumed |
expired | Token TTL has elapsed |
consumed | Token has already been used |
context_mismatch | Retry context does not match the original request |
Errors
401UNAUTHENTICATED/INVALID_API_KEY403 REJECTED_POLICY: caller cannot access the approval’s org or wallet404 NOT_FOUND: approval does not exist