View as Markdown

SDK reference · Python SDK

prov.identify.report_decisions

prov.identify.report_decisions in Python SDK.

Signature

prov.identify.report_decisions(decisions: list) -> Any

Parameters

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 with signed or declared; any other value rejects that decision. A verified agent's agent_program (visa_tap, mastercard_agent_pay), agent_signed_for (general, browse, pay), agent_card_name (at most 80 characters) and agent_operator_kind (direct, intermediary) are kept for the traffic backtest. Optional ip (at most 64 characters) and user_agent (at most 1,024) give the decision its network and device blocks; without them network.unavailable is [ip] and device.type is unknown.

Returns

Any How many were accepted, repeated or rejected.

HTTP operation

POST /v1/identify/decisions: Report decisions

Errors

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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.