Listar decisões
RegistosGET /decisions
Returns the tenant's decision log one cursor page at a time. Each entry records the policy and version applied, the subject, the inputs, the mode, the outcome and its explanation, and who decided. Requires automations:read.
Parâmetros
limitMaximum resources to return (default 20, maximum 100).
afterOpaque cursor returned by the previous page.
approval_typeReturn only decisions of this approval type (for example refund or write_off); empty returns every type.
Devolve
200 Decisions, newest first
Permissões automations:read · Funções: admin, analyst, customer_service, finance, operations, owner
curl -X GET "$BUSINESS_API/decisions" \
-H "Authorization: Bearer sk_test_..."
# Sem comando CLI equivalente; use cURL ou HTTP directo.
const res = await fetch("$BUSINESS_API/decisions", {
method: "GET",
headers: {
Authorization: "Bearer sk_test_..."
}
});
const data = await res.json();
import requests
res = requests.get(
"$BUSINESS_API/decisions",
headers={
"Authorization": "Bearer sk_test_..."
}
)
data = res.json()
req, _ := http.NewRequest("GET", "$BUSINESS_API/decisions", nil)
req.Header.Set("Authorization", "Bearer sk_test_...")
resp, err := http.DefaultClient.Do(req)
Resposta 200
Decisions, newest first