SDK reference · Python SDK
prov.identify.report_decisions
prov.identify.report_decisions in Python SDK.
Signature
prov.identify.report_decisions(decisions: list) -> AnyParameters
decisionslistRequired
Request fields
Idempotency-Keystringheader- Retry a create safely: the same key + request returns the stored response (24 h, per caller).
Provenance-Originstringheader- The sites this middleware serves, comma-separated origins (at most 10 are read). Only the scheme, host and port are kept.
decisionsarray of objectsRequired- The decisions (the
reportOf(verdict)shape from@provenanceauth/identify).agent_platform, when the verdict named one, is kept only as a catalog name withsignedordeclared; any other value rejects that decision. A verified agent'sagent_program(visa_tap,mastercard_agent_pay),agent_signed_for(general,browse,pay),agent_card_name(at most 80 characters) andagent_operator_kind(direct,intermediary) are kept for the traffic backtest. Optionalip(at most 64 characters) anduser_agent(at most 1,024) give the decision itsnetworkanddeviceblocks; without themnetwork.unavailableis[ip]anddevice.typeisunknown.
Returns
Any How many were accepted, repeated or rejected.
HTTP operation
POST /v1/identify/decisions: Report decisions
Errors
- authentication_required
- invalid_json
- parameter_invalid
- parameter_missing
- policy_account_required
- rate_limit_exceeded
Example
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/identify/decisions`, {
method: "POST",
headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
body: JSON.stringify({
"decisions": [
{
"id": "tas_01JREFERENCE00000000000001",
"created_at": "2026-10-25T18:00:00.000Z",
"source": "middleware",
"class": "signed_agent",
"action": "browse",
"decision": "allow",
"rule_id": null,
"policy_version": null,
"shadow_action": null,
"shadow_rule_id": null,
"agent_id": null,
"agent_directory": "https://agents.example/.well-known/http-message-signatures-directory",
"operator": "agents.example",
"agent_category": null,
"agent_verified": true,
"key_id": "poqkLGiymh_W0uP6PZFw-dvez3QJT5SolqXBCW38r0U",
"human_backed": false,
"pseudonym": null,
"intent_jti": null,
"bot_score": 0,
"signals": [],
"vendor": {
"vendor": null,
"status": "not_configured",
"score": null
},
"method": "GET",
"path": "/products",
"bundle_stale": false
}
]
}),
})).json();import os
import httpx
api = os.environ["PROVENANCE_API"]
data = httpx.post(f"{api}/v1/identify/decisions", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
"decisions": [
{
"id": "tas_01JREFERENCE00000000000001",
"created_at": "2026-10-25T18:00:00.000Z",
"source": "middleware",
"class": "signed_agent",
"action": "browse",
"decision": "allow",
"rule_id": None,
"policy_version": None,
"shadow_action": None,
"shadow_rule_id": None,
"agent_id": None,
"agent_directory": "https://agents.example/.well-known/http-message-signatures-directory",
"operator": "agents.example",
"agent_category": None,
"agent_verified": True,
"key_id": "poqkLGiymh_W0uP6PZFw-dvez3QJT5SolqXBCW38r0U",
"human_backed": False,
"pseudonym": None,
"intent_jti": None,
"bot_score": 0,
"signals": [],
"vendor": {
"vendor": None,
"status": "not_configured",
"score": None
},
"method": "GET",
"path": "/products",
"bundle_stale": False
}
]
}).json()