FurlPay Docs
Open App
  • Platform Overviewupdated
  • API Referencenew
  • 5-Minute Sandbox Quickstartupdated
  • Sandbox & Test Assetsnew
  • Create a Developer Account
  • Identity & KYC Verification
  • Passkeys & Biometrics
  • Transaction Statuses & Retries
  • Frequently Asked Questions
  • Core Primitives & Money Modelnew
  • Merchant Payments & Invoices
  • Contractor Payroll & Batch Payouts
  • EIP-3009 Gasless & Recurring
  • Circle CCTP Cross-Chain
  • LI.FI Cross-Chain Swaps
  • Solana Actions & Blinks
  • Wallet Infrastructure & Handles
  • Market Data Streams
  • Gasless Transfers Availability
  • Deposits & Withdrawals Support
  • Agentic Finance Overviewupdated
  • x402 & MPP Settlement Gatewayupdated
  • Agent Identity, Trust & TAP Mandatesupdated
  • Autonomous Finance & Policies
  • Claude Connector (MCP + OAuth 2.1)
  • AI Assistants & HITL Approvals
  • x402 Monetization Basics
  • Settlement Workspace & Maker-Checker
  • Transaction Truth & Double-Entry Ledgerupdated
  • Par 1:1 Routing Simulator Overview
  • Par Quote Engine & Swap Lifecycle
  • Par Networks & Settlement Assets
  • Par Operator Console
  • Par API Reference
  • Par Webhooks
  • Par AML & Travel Rule
  • Screening, Monitoring & Travel Rule
  • Circle Integration
  • Stripe Crypto Integration
  • Persona KYC Integration
  • API Conventions & Idempotencyupdated
  • Authentication, Keys & Versioning
  • Webhooks (PUSH HMAC-SHA512 & PULL)
  • Errors & Exception Playbooks
  • Rate Limits & Retry-After
  • Official SDKs (TS, Python, Go, Rust)updated
  • FurlPay CLI (@furlpay/cli) & MCP
  • Monorepo & Package Reference
  • SDK & API Integration Support
  • Cryptographic Architecture & KMS
  • Security Posture & Isolation
  • Signing Boundaries & WebAuthn
  • Production Configuration & Workers
  • Colocation Directory
  • Security & Compliance Frameworks
  • Regulatory & Launch Posture
  • Privacy, Redaction & GDPR

CLI full reference

  • CLI overview & install
  • Command index
  • MCP tool reference
  • Honesty matrix

Resources

  • Interactive Developer Workbench
  • Operational Status (/status)
  • Release Changelog
  • OpenAPI 3.1 Spec
  • Postman Collection
  • llms.txt (AI Index)
  • llms-full.txt (Full Docs)
  • Network & Assets
  • Proof of Reserves
  • Terms of Service
  • Privacy & DPA
  • Regulatory Disclosures
  • Security Disclosures
  • Contact Support
  • GitHub
Docs/04. Treasury and Institutional Finance/Par API Reference

Par 1:1 FX

Par API reference

Par exposes three surfaces: the v1 REST API for operators and agents, theconsole API that backs the /orders/par console, and the x402 endpoint that prices a single attested quote. This page lists every route that exists today — nothing here is a proposal.

Authentication

The v1 routes take an API key as a bearer token. The key carries scopes, and a route refuses a key that lacks the scope it needs.

bash
curl https://furlpay.com/api/v1/par/rates \
  -H "authorization: Bearer sk_test_..."

The console routes use the session cookie instead, and are scoped to the signed-in operator. The deposit-intake route is not user-authenticated at all — it is authenticated by an HMAC signature over the raw request body.

Rate limits are keyed by operator

Every v1 Par budget is keyed by the operator, not by IP alone. Operators behind one corporate NAT share an address, and one tenant must not be able to spend another's budget. The money-moving buckets fail closed during a Redis outage rather than degrading to a per-instance budget.

Operator authorisation

An API key's scopes say what the key may do. They do not say whether the key's owner is allowed to operate the rail at all — so the Par routes check that separately.

  • Deny by default. An account with no par_operator entitlement is not an operator. It cannot read an operator ledger, open a swap, or use an API key to do either.
  • Revocable. The entitlement is a role grant, so revoking it stops authorising on the next request everywhere, with one write.
  • The key path is checked too. A key minted by an unentitled account is refused on the Par routes, so the entitlement cannot be side-stepped by using a key instead of a session.

Who is an operator is a deployment decision

The first operators are provisioned by configuration; everyone else needs an approved grant. On the v1 API the key's owner is checked by id, so an account is entitled through its grant or through the configured operator list.

v1 REST API

MethodPathDescription
GET/api/v1/par/healthService status, settlement readiness, storage backend and per-chain configuration. Scope payments:read. 120/min.
GET/api/v1/par/ratesLive USDT/USDC spot rate against the locked par rate, and the saving at $1M. Scope payments:read. 120/min.
GET/api/v1/par/configFee tiers, supported networks, quote expiry, per-swap cap and the hedge trigger. Scope payments:read. 120/min.
POST/api/v1/par/quotesLock a 15-minute 1.000000 quote. Scope payments:create. 60/min.
GET/api/v1/par/swapsList this operator's swaps. Scope payments:read. 120/min.
POST/api/v1/par/swapsOpen a swap from a quote. Accepts idempotencyKey and optional IVMS-101 travel-rule metadata. Scope payments:create. 60/min.
GET/api/v1/par/swaps/{swapId}Poll one swap: status, both AML legs, settlement receipt and payout reference. Scope payments:read. 240/min.
POST/api/v1/par/swaps/{swapId}/cancelCancel a locked, unfunded swap. Scope payments:create. 30/min.
GET/api/v1/par/liquidityMulti-chain vault balances, the net unhedged delta and this operator's pending Tier-3 hedge intents. Scope payments:read. 120/min.
GET/api/v1/par/billing/summaryMonthly volume, active fee tier and accrued invoice. Scope ledger:read. 120/min.
GET/api/v1/par/invoicesThe current billing period's invoice. Scope ledger:read. 120/min.
GET/api/v1/par/reconcileDouble-entry ledger reconciliation: balanced or not, negative vaults, open cases, dead-letter webhooks. Scope payments:read. 60/min.
GET/api/v1/par/metricsPrometheus exposition metrics for Par observability. Scope payments:read. 60/min.
GET/api/v1/par/compliance/casesThe operator's AML review queue. Scope payments:read. 60/min.
GET/api/v1/par/webhooksThe registered endpoint's URL and creation time. Never the signing secret. Scope webhooks:read. 120/min.
POST/api/v1/par/webhooksRegister an endpoint and receive the signing secret once. Scope webhooks:manage. 20/min.
DELETE/api/v1/par/webhooksRemove the registered endpoint. Scope webhooks:manage. 20/min.
GET/api/v1/par/webhooks/deliveriesOutbound delivery history and delivery status. Scope payments:read. 60/min.
POST/api/v1/par/webhooks/deliveries/{deliveryId}/replayReplay a failed or dead-letter delivery. Scope webhooks:manage. 30/min.
POST/api/v1/par/webhooks/testDeliver or preview a signed test event. Scope webhooks:manage. 20/min.

Console API

Session-authenticated, and used by the operator console. They carry the same guarantees as the v1 routes — Zod validation on every mutating handler, a per-endpoint rate limit, and operator scoping on every read.

MethodPathDescription
GET/api/par/stateEverything the console renders: swaps, rates, liquidity, billing, compliance cases, hedge intents, deliveries and reconciliation. 120/min.
POST/api/par/quotesLock a quote from the console. 60/min.
GET/api/par/swapsList this operator's swaps. 120/min.
POST/api/par/swapsOpen a swap from the console. 40/min.
POST/api/par/swaps/{swapId}/cancelCancel a locked swap. 30/min.
POST/api/par/compliance/{caseId}/resolveApprove or reject a compliance case. An approval resumes a parked swap. 30/min.
GET/api/par/webhooksThe registered endpoint. 120/min.
POST/api/par/webhooksRegister an endpoint and receive the secret once. 20/min.
DELETE/api/par/webhooksRemove the endpoint. 20/min.
POST/api/par/webhooks/testDeliver or preview a signed event. 20/min.
POST/api/par/webhooks/deliveries/{deliveryId}/replayReplay a delivery. 30/min.

The deposit simulator is sandbox-only

POST /api/par/swaps/{swapId}/simulate-deposit drives the full deposit → confirmation → screening → settlement path with a synthetic transaction hash. It is gated on a sandbox predicate: available in development, never in a production deployment and never once Par is armed for live money. Without that gate, any authenticated account could self-report a deposit, consume vault liquidity and be billed for a swap that was never funded.

Deposit intake

MethodPathDescription
POST/api/webhooks/par-depositSigned deposit notification from a chain watcher or operator. HMAC-SHA256 over the raw body; stale timestamps and replayed hashes are rejected. 100/min.

x402

MethodPathDescription
GET/api/x402/parAn attested 1.000000 quote, priced at $0.01. Returns 402 with an x402 challenge until the payment settles. 60/min.

The quote it returns is attested: it names both token contracts, carries the market benchmark, and states the rate as a fixed string rather than a floating-point number.

bash
curl "https://furlpay.com/api/x402/par?sellToken=USDT&sellNetwork=tron&buyNetwork=base&amount=100000" \
  -H "x-payment: ..."

Validation and errors

Every mutating handler validates its body with a strict Zod schema: an unknown key is a400, not a field quietly merged into a stored record. Amounts are decimal strings parsed to base units — at most six decimals, greater than zero, and capped at 50,000,000 per swap. A value with more precision than the token carries is rejected rather than silently rounded.

ParameterTypeDescription
400 INVALID_REQUESToptionalerror codeThe body or a path parameter failed validation.
401 / 403optionalerror codeMissing credentials, a missing scope, a signature failure, or a swap the caller does not own.
409optionalerror codeAn illegal state transition, or a quote that has already been consumed.
410 QUOTE_EXPIREDoptionalerror codeThe 15-minute quote window closed before the swap was opened.
422 INVALID_ADDRESSoptionalerror codeThe payout address does not obey the destination network's format.
429optionalerror codeThe per-operator budget for this endpoint is spent.
503 SETTLEMENT_DISARMEDoptionalerror codeNo custody vault is configured for the network, or the rail is paused.

Errors never carry internals

A stack trace, a Redis URL or a provider message is logged server-side and never returned. Clients get a stable code and a message they can act on.
Did this page help?
Edit this page on GitHub

Previous

Par Operator Console

Next

Par Webhooks