SDK reference · Python SDK
prov.identify.list_decisions
prov.identify.list_decisions in Python SDK.
Signature
prov.identify.list_decisions(**query: Any = …) -> AnyParameters
**queryAny
Request fields
sortenumquery- The order of the list:
created, with-in front for descending. Newest first when omitted. Anext_cursorcarries its order; pass it back with the samesort. One ofcreated,-created. classarray of enumsquery- Only these classes. One value, or several separated by commas.
decisionarray of enumsquery- Only these decisions. One value, or several separated by commas.
qstringquery- Search text. Matches when the decision's ID, the agent's ID, directory or operator, the path, the action or the rule's ID contains it, ignoring case. At most 200 characters.
actionstringquery- Only this route action.
agent_idstringquery- Only this agent.
pseudonymstringquery- Only this person's pseudonym.
sourceenumquery- Only this source. One of
hosted,middleware,edge. human_backedenumquery- Only decisions with (or without) a person behind the agent. One of
true,false. shadow_differsenumquery- Only decisions where the shadow policy would have decided differently (or the same). One of
true,false. protocolenumquery- Only decisions whose request carried this payment protocol. One of
ap2,acp,x402. network_kindenumquery- Only decisions from this kind of network (decisions with no address are left out). One of
residential,mobile,business,hosting,unknown. agent_rangeenumquery- Only decisions whose address is in this operator's published range;
anyfor any operator,nonefor an address in no published range. One ofopenai,anthropic,google,microsoft,apple,perplexity,meta,commoncrawl,any,none. created_gtetimestampquery- The start of the window.
created_ltetimestampquery- The end of the window.
Returns
Any The decisions.
HTTP operation
GET /v1/identify/decisions: List traffic decisions
Errors
Example
const step1 = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/assessments`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}),
})).json();
const trafficDecisionId = step1.id;
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/decisions`, {
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5" },
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
step1 = httpx.post(f"{api}/v1/identify/assessments", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"request": {
"method": "GET",
"url": "https://harborbean.example/products",
"headers": {
"user-agent": "curl/8.7.1"
}
},
"ip": "35.180.4.77"
}).json()
traffic_decision_id = step1["id"]
data = httpx.get(f"{api}/v1/identify/decisions", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}).json()