Risk and intelligence

API reference

Intelligence

/intelligence — forecasts of net outflow, corridor health, the state reading, advice and its evaluation, and the bounds of what is applied automatically.

Scope intelligence, an operator product: it reads the positions of the whole deployment. 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.

https://api.pathglobal.finance/intelligence

Liquidity intelligence forecasts what each position will pay out, reads the state of the platform, and gives advice. Each advice is one of a closed set of options. What intelligence may change is narrow:

  • tighten: a lower corridor throttle, never under the corridor's floor, and a higher target for a position, never over its policy's ceiling — only when the bounds allow automatic tightening;
  • propose: a treasury transfer, which waits for a person.

It never loosens a control, approves, or moves value itself.


GET /forecasts

QueryRequiredNotes
accountyesThe ledger reference of a nostro
horizonnoHours, 1 to 720. Default 72
{
  "forecast": {
    "subject": "nostro:-:na_sandbox_USD_liquidity:USD",
    "horizon_hours": 2,
    "buckets": [
      { "at": "2026-11-19T13:00:00.000Z", "p50": "120000", "p90": "184000", "p99": "260000" },
      { "at": "2026-11-19T14:00:00.000Z", "p50": "95000", "p90": "150000", "p99": "221000" }
    ],
    "source": "baseline",
    "as_of": "2026-11-19T13:40:03.469Z"
  }
}

One bucket per hour: the net outflow of the position (positive when value leaves) at the 50th, 90th and 99th percentiles. source is model or baseline.

GET /health?corridor=

corridor is ASSET@network>ASSET@network.

{
  "corridor": "USD@fednow>MXN@spei",
  "score": 98,
  "factors": { "success": 0.98, "finality": 1, "headroom": 0.91, "in_doubt": 1, "breaks": 1, "switches": 1 },
  "as_of": "2026-11-19T13:40:03.470Z"
}

score is 0 to 100; a higher score is healthier. Each factor is between 0 and 1.

GET /state

The state reading: one reading for the platform, and one per position, breaker and shortfall.

{
  "as_of": "2026-11-19T13:40:03.461Z",
  "summary": "…",
  "reading": "normal",
  "advice": "adv_…",
  "source": "baseline",
  "positions": [
    { "account": "nostro:-:na_sandbox_USD_liquidity:USD", "balance": "1004000000", "available": "1004000000", "status": "open", "reading": "normal" }
  ],
  "breakers": [],
  "shortfalls": [],
  "reasons": []
}

A reading is normal, watch_<subject> or act_<subject>. A frozen or closed position reads act.

Advice

GET /advice

Filters: topic, subject, active (true, false); paged by after and limit (1 to 1000, default 100).

GET /advice/:id

{
  "id": "adv_8c2f…",
  "kind": "intelligence.advice",
  "topic": "buffer",
  "subject": "nostro:-:na_sandbox_USD_liquidity:USD",
  "options": ["<option>", "…"],
  "choice": "<option>",
  "effect": "tighten",
  "source": "baseline",
  "inputs_digest": "4be1…",
  "reason": "<reason>",
  "applied": "auto",
  "created_at": "2026-11-19T13:40:03.470Z",
  "active": true,
  "wake_at": "2026-11-20T13:40:03.470Z",
  "version": 1
}
FieldNotes
topicrefuel_plan, buffer, corridor, anomaly, state
options, choiceThe closed set and the option chosen
effectnone, tighten, propose
sourcemodel or baseline
appliedauto (applied), proposed (a transfer waits for a person), shadow (recorded, not applied), refused (outside the bounds), none
applied_refWhat was applied: a transfer id, a corridor
outcomeSet when the period the advice concerns ends: the forecast against what was realised and whether a shortfall was avoided

The same inputs give the advice in force; other inputs give a new advice.

GET /evaluation?from&to

Advice and forecasts against what was realised, over a range (both instants, or neither):

KeyNotes
adviceThe advice in the range
agreed_with_baselineHow many chose what the baseline chose
forecast_error_p50The median error of the forecasts evaluated
shortfalls_avoidedHow many advice outcomes avoided a shortfall
by_topicThe same counts per topic, by source and by application

Bounds

GET /bounds

{ "bounds": { "shadow": false, "auto_throttle": false, "buffer_multipliers": ["<multiplier>", "…"], "version": 0 } }
FieldNotes
shadowAdvice is recorded and nothing is applied
auto_throttleCorridor throttles and anomaly tightening are applied
buffer_multipliersThe options of a buffer advice: multipliers of a position's target

PUT /bounds

Under an approval bounds_change, for this payload and the current version of the bounds.

{ "shadow": false, "auto_throttle": true, "buffer_multipliers": ["<multiplier>", "…"], "approval": "apr_…" }

buffer_multipliers is a list of numbers. Without approval: 202 with { approval }. With an approved one: { bounds }.

Sources

Each forecast and each advice states its source: model or baseline. An advice is always one of its options.

On this page