View as Markdown

Authorize · Guide

Use network signals

Use this to let what the network knows about an agent or a passkey change what your policy asks for, and to report the orders that went wrong. Network facts are inputs to your own rules: on their own, they never block anything.

Before you begin: your account shares with the network (the default; see give to get), and your agents call authorize with agent_id.

1. Add network facts to a rule

Policies read these facts:

FactValue
network.agent.unrecognized_rateRefusals as unrecognized over all decisions, 0 to 1
network.agent.off_task_rateDenials as "Not what I asked for" over all decisions, 0 to 1
network.agent.fraud_report_rateFraud reports over orders and decisions, 0 to 1
network.agent.verifiedWhether the agent has a registered signing key
network.passkey.unrecognized_denials_countTimes this passkey refused a request as unrecognized
network.passkey.companies_countCompanies other than you that saw this passkey
network.sufficient_dataWhether every value rests on the minimums

Below the minimums a fact is null, and a comparison with null doesn't match, so a new agent is treated by your other rules.

{
  "rules": [
    {
      "id": "ask-for-agents-people-refuse",
      "when": [{ "fact": "network.agent.unrecognized_rate", "op": "gt", "value": 0.05 }],
      "require": { "approval": true }
    }
  ]
}

Save it with PUT /v1/mandate/policies, or start from the Network signals template in Rules → Developer editor → Templates & advanced.

2. Read the signals on a result

A valid verify for a verified agent carries network_signals, as do approvals, checkout approvals and network accepts. Log them next to your own risk data; don't show them to the person.

const result = await provenance.mandate.assessments.create({ intentToken, actionDescription });
if (result.valid && result.networkSignals?.agent?.sufficientData) {
  riskLog.record({ agentUnrecognizedRate: result.networkSignals.agent.unrecognizedRate });
}

3. Report an order that went wrong

Report fraud, an unrecognized charge or an agent that misbehaved, by the order's token jti or a decision_id from your ledger. The example records an order first, then reports it:

curl -s -X POST $PROVENANCE_API/v1/mandate/intents -H "Authorization: Bearer $PROVENANCE_KEY" -H "Content-Type: application/json" -d '{ "action_description": "Buy 2 linen notebooks: $38.00", "agent_session_id": "sess_report_docs", "device_id": "dev_00000000000000000000000000000001" }' > /dev/null
export DECISION_ID=$(curl -s "$PROVENANCE_API/v1/mandate/assessments?session=sess_report_docs&limit=1" -H "Authorization: Bearer $PROVENANCE_KEY" | jq -r '.data[0].id')
curl -s -X POST $PROVENANCE_API/v1/authorize/agent_reports \
  -H "Authorization: Bearer $PROVENANCE_KEY" -H "Content-Type: application/json" \
  -d '{ "decision_id": "'$DECISION_ID'", "kind": "unrecognized_charge", "occurred_at": "2026-10-26T19:00:00Z", "note": "The cardholder called about this order." }'

The report counts from the next hourly count. Your note stays private. Withdraw it within 30 days with DELETE /v1/authorize/agent_reports/{id}.

4. When a person says Not me

A person can open an order in the Provenance app and choose Not me. Provenance pauses their agent and files an unrecognized_charge report on your account for that order. It shows in GET /v1/authorize/agent_reports with filed_by: "person", and your webhook endpoints subscribed to authorize.network_report.filed get it at once:

{
  "id": "evt_01M6YQ2ZJ8K4V7N9P2R5T8W1X3",
  "object": "event",
  "type": "authorize.network_report.filed",
  "created_at": "2026-11-08T14:02:11.000Z",
  "environment": "live",
  "account_id": "acct_quillstack",
  "data": {
    "id": "nrp_01M6YQ2ZHT3B6D9F2H5K8M1P4R",
    "object": "network_report",
    "kind": "unrecognized_charge",
    "status": "active",
    "filed_by": "person",
    "intent_jti": "8f5f6828-813c-4494-8b64-c32b35c07827",
    "order_id": "ord_8841",
    "store_origin": "https://shop.quillstack.example",
    "subject": "Xb4hR2kq9WfT7pLm3Ns8Vd1Yc6Ze0Ga5",
    "occurred_at": "2026-11-08T13:40:02.000Z",
    "created_at": "2026-11-08T14:02:11.000Z"
  }
}

subject is the sub your own tokens carried for this person: the same person has a different one at every other store. The event carries nothing else about them (no name, contact, passkey, agent or note). Match it to the order by order_id or intent_jti, hold the shipment if you still can, and reach the customer the way you normally would. Provenance doesn't open a dispute or ask for a refund.

Errors you might see

CodeWhat to do
parameter_invalidThe order isn't one your account verified or accepted. Report only your own orders.
network_report_duplicateThis order already has a report of this kind.
network_report_closedThe report was withdrawn, removed after review, or is past 30 days.

See also