Path GlobalPrivate APIs are now on Path Global.Open Path Global
Transverse

API reference

Risk

Assessing a payee before a payment; filing, withdrawing, contesting and deciding a risk signal.

PIP-0021. Every call is made by a member, with its credential. A target is a key of the directory: send its value, hashed on arrival and not kept, or its hash.


POST /risk/assess

{ "target": { "type": "address", "value": "path:4a91c2f7e8d3" }, "nonce": "b0b5c4e2a9d14f6e" }

Returns a signed risk_assessment: level (low, elevated, high), score (0 to 100), reasons, assessed_at, expires_at. The answer has the same shape whatever the network knows about the target. Counts against the reciprocity budget of the identifier type: 429 path.finder.budget_exhausted when it is spent.

POST /risk/signals

{
  "target": { "type": "phone", "value": "+221771234567" },
  "kind": "scam_beneficiary",
  "evidence": { "receipt": "rcp_7q2m9k4x8v3p1z5t6w0y" },
  "note": "Customer reported a fake seller"
}

201 with the signal: reference, kind, target (type and hash), status, filed_at, expires_at.

ErrorWhen
400 path.core.malformed_requestNo receipt and no instruction in evidence
409 path.risk.signal_duplicateThis member already has an open signal of this kind on this target
429 path.risk.filing_limitThe monthly filing allowance is reached

GET /risk/signals

The signals this member filed, newest first.

POST /risk/signals/{reference}/withdraw

The filer withdraws its signal. 409 path.risk.signal_closed when it is not open.

POST /risk/signals/{reference}/contest

{ "reason": "The account holder is verified and the payment was delivered" }

Only the member holding the target in the directory. The signal becomes contested.

POST /risk/signals/{reference}/decide

{ "outcome": "upheld", "note": "Confirmed by two independent receipts" }

The network's decision: upheld or dismissed.

A signal reads as 404 path.core.not_found to a member that is neither its filer nor the holder of its target.

On this page