Guides

Getting started

The Path Global API from a client's server — base URL, keys and modes, scopes, headers, idempotency, errors, the SDK and the sandbox, up to a first quote.

Path Global is an operator on the PATH network. Access to its API is on request at pathglobal.finance.

These guides are for a client of Path Global who integrates its API from a server. Each one starts in test mode, with a test key, and states what changes with a live key. The full contract of each route is in the API reference.

Base URL and products

https://api.pathglobal.finance

Each product sits under its own prefix, /<product>: /accounts, /router, /settlement and so on. Paths carry no number: a request pins its API version with the Path-Version header, see Versioning. GET /health answers { status, version, modes } without a key; version is 2026-11-26.genesis.

Keys and modes

A request carries Authorization: Bearer <key>. Path Global issues the keys; the mode of a request is the mode its key was issued for.

KeyModeReaches
key_test_…testThe sandbox: simulated networks, providers and pools. Nothing settles
key_live_…liveReal networks and real value

A key belongs to a credential and carries a set of scopes. It can also name the operator who holds it, carry an expiry (expires_at) and accept requests only from given address ranges. Keys stay on your server: never in a browser, a mobile application or a repository.

ErrorWhen
401 pathglobal.auth.unauthenticatedNo key, a key that is revoked or expired, or a key used outside its address ranges
403 pathglobal.auth.scope_missingThe key does not carry the scope of the route
503 pathglobal.core.mode_unavailableThe mode of the key is not available

Scopes

Path Global grants scopes per key, on request. Each prefix needs one scope; a few routes need a second one.

ScopePrefixA route that also needs
accounts/accounts
addresses/addresses
endpoints/endpoints
router/router, /catalogue
decision/decision
proof/proofrisk: deciding a verdict in review
liquidity/liquiditytreasury: pausing and resuming a pool, reading its movements
clearing/clearing
settlement/settlement
ramp/ramp
crossway/crossway
tools/tools
connect/connect
operations/operationsrisk: closing a netting set, settling a clearing period
treasury/treasurytreasury_approve: resolving a transfer, a reconciliation break or an inbound item
risk/risktreasury_approve or risk_approve: deciding an approval, by its action
intelligence/intelligence
treasury_approveApprover scope, see Risk, limits and approvals
risk_approveApprover scope, see Risk, limits and approvals

treasury, treasury_approve, risk and risk_approve are operator scopes. The products under them act on the whole deployment rather than on the caller's objects; they are covered in Treasury and Risk. The other products reach only the caller's own accounts, holdings, quotes, routes, verdicts and executions: one of another client answers 404, as one that does not exist.

Headers

Request header
AuthorizationBearer <key>
Content-Typeapplication/json on a request with a body. JSON bodies are 256 KB at most
Path-VersionThe API version, 2026-11-26.genesis. Recommended on every request: see Versioning
Idempotency-KeyOptional on a POST, below
Path-Operator, Path-Operator-Timestamp, Path-Operator-SignatureLive mode, operator routes only: see Going live
Response header
Path-VersionThe version that served the answer, 2026-11-26.genesis
Path-Version-Pinnedtrue when the request carried Path-Version, false when it did not
PathGlobal-Request-IdThe id to quote to Path Global about a request
PathGlobal-Modetest or live, once the key is read
PathGlobal-Idempotent-Replaytrue on a replayed answer

A rate limit applies per client address. Past it the API answers 429 with the standard RateLimit headers; wait and send again.

Idempotency

A POST can carry Idempotency-Key, 1 to 255 characters, chosen by you. A key is kept for 24 hours for the API key that sent it.

You sendThe API answers
The same key and the same bodyThe first answer again, with PathGlobal-Idempotent-Replay: true
The same key and another body409 pathglobal.core.idempotency_conflict
The same key while the first request still runs409 pathglobal.core.idempotency_in_progress: send it again later

A request holds its key for 300 seconds while it runs. An answer with a 5xx status is not kept, so the same request with the same key runs again. Use one key per operation you mean to happen once: a payout, an account opening, an obligation.

Errors

Every error has the same envelope:

{
  "error": {
    "code": "pathglobal.router.quote_expired",
    "message": "quote \"…\" has expired",
    "details": {},
    "request_id": "…"
  }
}

code is pathglobal.<product>.<condition> and is stable: switch on it. message is for a person. A body that is not JSON is 400 pathglobal.core.malformed_request; a Path-Version that is not a version of the API is 400 pathglobal.core.unsupported_version, with details.latest; a route that does not exist is 404. The codes of each product are listed in the API reference.

The SDK

npm install @pathglobal/sdk
import { PathGlobal, PathGlobalApiError } from '@pathglobal/sdk';

const pg = new PathGlobal({ apiKey: process.env.PATHGLOBAL_API_KEY! });

console.log(pg.mode); // "test" for a key_test_… key, "live" for any other

The client takes baseUrl, fetch, timeoutMs (30 000 by default), operator and apiVersion as well. It sends Path-Version on every request: PATHGLOBAL_API_VERSION, 2026-11-26.genesis, unless apiVersion pins another version at construction. Each product is a namespace: pg.accounts, pg.router, pg.settlement, pg.clearing. A call that creates something once takes { idempotencyKey } as its last argument. An error answered by the API is thrown as a PathGlobalApiError with status, code, message, requestId and details. See the SDK reference.

The raw HTTP equivalent of any call:

curl -s https://api.pathglobal.finance/catalogue/networks \
  -H "Authorization: Bearer $PATHGLOBAL_TEST_KEY" \
  -H "Path-Version: 2026-11-26.genesis"

The sandbox

A test key reaches the sandbox. It follows the contract of live mode on simulated networks, and it advances on its own: a route, an execution or a period moves while you wait, so poll the object. The sandbox reference lists what it starts with, and the fixture payees of its PATH network. A route marked test mode answers 404 pathglobal.core.not_found on a live key.

Fund a holding

A route from an Omni Account draws on its holding, and the sandbox enforces balances: fund the holding first. POST /accounts/holdings/:id/fund credits a holding of the caller. Test mode only.

const account = await pg.accounts.openOmni(
  { holder: { name: 'Acme Treasury' }, holdings: [{ kind: 'virtual_account', currency: 'USD' }] },
  { idempotencyKey: 'open-acme-usd' },
);
const holding = account.holdings[0]!;

await pg.accounts.fund(holding.id, { value: '10000.00', asset: 'USD' }, 'test funding 1');
curl -s -X POST https://api.pathglobal.finance/accounts/holdings/$HOLDING/fund \
  -H "Authorization: Bearer $PATHGLOBAL_TEST_KEY" -H 'Content-Type: application/json' \
  -H "Path-Version: 2026-11-26.genesis" \
  -d '{ "amount": { "value": "10000.00", "asset": "USD" }, "reference": "test funding 1" }'

Simulate a deposit

POST /endpoints/:id/deposits makes a deposit arrive on an endpoint, as a network would notify it: { amount, network?, payer?, rail_reference? }. A deposit on an endpoint anchored to a holding is credited to that holding. Test mode only.

await pg.endpoints.simulateDeposit(endpointId, { amount: { value: '500.00', asset: 'EUR' }, payer: { name: 'Example Treasury Ltd' } });

Outcomes by keyword

A payment whose reference contains one of these words, as a whole word, gets that outcome from the simulated network:

WordOutcome
failThe order is refused
timeoutThe order is accepted and the call does not answer
unknownThe network has no trace of the order
slowThe order is final some time after it is accepted
returnThe order is final, then returned
shortA collection brings less than instructed
overA collection brings more than instructed
chargeA fee line is added to the statement
outageThe network does not answer

Outcomes by rule

POST /operations/sandbox/script gives an outcome to every order whose reference contains match. It needs the operations scope and exists in test mode only. A new rule with the same match replaces the one before.

await pg.connectivity.script('invoice-7781', 'return');
// { scripted: { match: "invoice-7781", outcome: "return" } }

A first quote

A quote is firm, signed and moves nothing. It names the route Path Global chose, its fees, its guarantee level and the instant it expires.

const quote = await pg.router.quote({
  amount: { value: '250.00', asset: 'USD' },
  source: { omni_account: account.id },
  destination: { network: 'sepa-inst', identifier: 'DE89370400440532013000', holder: 'Example Treasury Ltd' },
  deliver: { asset: 'EUR' },
  reference: 'invoice-1042',
});

console.log(quote.route.deliver);  // { value: "…", asset: "EUR" }
console.log(quote.route.fees);     // in the asset sent
console.log(quote.guarantee);      // "atomic", "conditional", …
console.log(quote.expires_at);

Route a payment carries it through to a signed receipt.

On this page