API reference
Risk
/risk — corridors, limits and exposures, breakers, approvals and rules, operators, identities, cases and the audit log.
Scope risk, an operator scope. Risk acts on the whole deployment, not on the caller's objects. In
test mode a test key exercises it in the sandbox with no signature. In live mode it is available to
a key whose agreement includes operator access; every request carries the signature of a registered
operator (operator headers).
https://api.pathglobal.finance/riskA change that tightens is applied at once. A change that loosens is applied when the request carries
the id of its approval (approval); without one the route requests the approval and answers 202
with { approval }. See Approvals.
Corridors
A corridor is a pair of nodes, ASSET@network>ASSET@network, with the bounds a payment between them
is admitted under. A pair with no open corridor is refused with pathglobal.risk.corridor_closed. Path
Global opens the corridors of a client's pairs on request.
GET /corridors · GET /corridors/:id
PUT /corridors/:id
Creates or replaces a corridor, under an approval corridor_open. The id is the one the body's from
and to give.
{
"from": { "asset": "USD", "network": "fednow" },
"to": { "asset": "MXN", "network": "spei" },
"state": "open",
"tier": "standard",
"per_transaction": { "min": { "value": "<amount>", "asset": "USD" }, "max": { "value": "<amount>", "asset": "USD" } },
"daily": { "value": "<amount>", "asset": "USD" },
"throttle_floor": { "per_minute": "<count>", "amount_per_hour": { "value": "<amount>", "asset": "USD" } },
"advance": "<never | under_limit>",
"hold_max_seconds": "<seconds>",
"in_doubt_limit": { "value": "<amount>", "asset": "USD" },
"corroborate_above": { "value": "<amount>", "asset": "USD" },
"reroute": true,
"unwind_cost": "<bearer>",
"unwind_slippage_bps": "<bps>",
"required_fields": ["payer_name", "payee_name"],
"required_checks": ["<check>", "…"],
"verdict_max_age_seconds": "<seconds>"
}Values in angle brackets are placeholders: amounts are decimal strings, counts, seconds and _bps
fields are integers.
| Field | Notes |
|---|---|
state | open, throttled, closed |
tier | low, standard, high |
per_transaction, daily | Bounds per payment and per day |
throttle, throttle_floor | { per_minute, amount_per_hour }: the throttle in force, and the lowest one an automatic change sets |
advance, advance_limit | never, or under_limit: a pay-in that can still be recalled is advanced up to the limit (bounded_exposure) |
hold_max_seconds | How long a payer's hold may wait for its delivery |
in_doubt_limit | A bound on the value in doubt on the corridor at once |
corroborate_above | An amount above which a pay-in is corroborated before it counts as received |
reroute | A refused pay-out is sent again once, by another partner or network |
unwind_cost | Who bears the difference of a reverse conversion |
unwind_slippage_bps | The bound of a reverse conversion |
required_fields | Among payer_name, payee_name, purpose, payer_jurisdiction, payee_jurisdiction |
required_checks | The Proof checks a verdict carries, passing |
travel_rule_above | The amount from which originator and beneficiary data are exchanged |
verdict_max_age_seconds | The age of the oldest verdict a payment is admitted under |
POST /corridors/:id/close
At once. { "reason": "…" }.
POST /corridors/:id/throttle
{ "throttle": { "per_minute", "amount_per_hour" }, "approval"?, "reason"? }. A tighter throttle is
applied at once; a looser one under an approval corridor_open.
POST /corridors/:id/open
Under an approval corridor_open.
Limits and exposures
A limit bounds one measure for one subject: exposure, outflow, count, open_position,
unwind, in_doubt, prepaid, over a window (minute, hour, day) or at any time. Its id is
<scope>:<subject>:<measure>[:<window>], with a scope among partner, network, corridor,
asset, issuer, client, participant, provider, system.
GET /limits
PUT /limits/:id
{ "limit": { "value", "asset" }, "approval"? }. A lower limit is applied at once. A higher one, or a
new id, is applied under an approval limit_raise.
GET /exposures
{ "exposures": [ { limit, scope, subject, value, limit_value, utilisation_bps, as_of } ] }.
Breakers
A breaker stops what goes through its subject. Its id is <scope>:<subject>, with a scope among
corridor, partner, network, asset, account, client, provider, system. States: closed,
half_open, open.
GET /breakers
POST /breakers/:id/trip
At once. { "cause": "…" }.
POST /breakers/:id/reset
Two steps, each under an approval breaker_reset: open → half_open, which admits payments up to
the probe amount ({ "probe": { "value", "asset" } }), then half_open → closed. A closed breaker
answers 409.
Pauses
A client reads 503 pathglobal.risk.halted when new work is paused on the platform. Send it again
later.
Approvals and rules
GET /approvals · GET /approvals/:id
Filters: state, action, subject; paged by after and limit.
POST /approvals/:id/approve · POST /approvals/:id/reject
The key carries the approver scope of the action: treasury_approve or risk_approve. In live mode
the body carries signature. See Approvals.
GET /rules/:id · PUT /rules/:id
An approval rule: it decides some treasury transfers in place of a person, within the bounds it
states. PUT writes under an approval rule_change.
{
"action": "treasury_transfer",
"kinds": ["refuel", "rebalance", "sweep"],
"per_transfer": [{ "value": "<amount>", "asset": "USD" }],
"per_day": [{ "value": "<amount>", "asset": "USD" }],
"sources": "allowlisted_own",
"tiers": ["hot", "warm"],
"status": "active"
}Operators
GET /operators
POST /operators
Under an approval operator_register. 201 with the operator.
{ "id": "op-amara", "public_key": "<Ed25519 public key, 64 hexadecimal characters>", "scopes": ["risk", "risk_approve"] }POST /operators/:id/revoke
At once.
Identities
The identity of a client, participant, supplier, provider or partner, as risk holds it: pending,
verified, restricted, blocked.
GET /identities/:subject
POST /identities/:subject/restrict · /block
At once. { "reason": "…" }. The accounts of the subject stop debiting (restrict) or are frozen
(block).
POST /identities/:subject/restore
Under an approval identity_restore.
Cases
A case is a decision for a person: a verdict in review, a delivery that could not land, a screening hit.
GET /cases
Filters: state (open, assigned, decided), subject; paged by after and limit.
POST /cases/:id/assign
The caller takes the case.
POST /cases/:id/decide
{ "decision": "pass" | "fail" | "file", "approval"? }. file blocks the subject and files a signal
with its network (PIP-0021). A case above the corridor's maximum per transaction is
decided under an approval case_decide.
POST /proof/checks/:id/decision
{ "outcome": "pass" | "fail" } decides a verdict in review and answers the new signed verdict. The
route is an operator route under the scope risk; the decider is a credential other than the one
that asked for the checks. A verdict is read with GET /proof/checks and
GET /proof/checks/:id by the client that asked for it.
Audit
GET /audit?from&to
Every decision of risk, in order, between two instants; paged by after and limit.
Refusals a payment receives
A refusal is the error of the call, or the failure.code of a route that ends failed.
| Code | Status | When |
|---|---|---|
pathglobal.risk.corridor_closed | 422 | The pair has no open corridor |
pathglobal.risk.corridor_throttled | 429 | The corridor's throttle is reached |
pathglobal.risk.exposure_exceeded | 422 | A limit or the daily bound of the corridor is reached |
pathglobal.risk.velocity_exceeded | 429 | A count limit of the client is reached |
pathglobal.risk.breaker_open | 503 | A breaker on the way is open |
pathglobal.risk.verdict_invalid | 422 | The Proof verdict is missing, too old, not passing, or for another payment |
pathglobal.risk.identity_restricted | 403 | The payer's identity is restricted or blocked |
pathglobal.risk.halted | 503 | New work is paused on the platform |
Settlement
/settlement — SETTLs and receipts, the SETTL states, where the value sits, executions, guarantee levels and two-party exchanges.
Intelligence
/intelligence — forecasts of net outflow, corridor health, the state reading, advice and its evaluation, and the bounds of what is applied automatically.