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.
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
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_operatorentitlement 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
v1 REST API
| Method | Path | Description |
|---|---|---|
| GET | /api/v1/par/health | Service status, settlement readiness, storage backend and per-chain configuration. Scope payments:read. 120/min. |
| GET | /api/v1/par/rates | Live USDT/USDC spot rate against the locked par rate, and the saving at $1M. Scope payments:read. 120/min. |
| GET | /api/v1/par/config | Fee tiers, supported networks, quote expiry, per-swap cap and the hedge trigger. Scope payments:read. 120/min. |
| POST | /api/v1/par/quotes | Lock a 15-minute 1.000000 quote. Scope payments:create. 60/min. |
| GET | /api/v1/par/swaps | List this operator's swaps. Scope payments:read. 120/min. |
| POST | /api/v1/par/swaps | Open 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}/cancel | Cancel a locked, unfunded swap. Scope payments:create. 30/min. |
| GET | /api/v1/par/liquidity | Multi-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/summary | Monthly volume, active fee tier and accrued invoice. Scope ledger:read. 120/min. |
| GET | /api/v1/par/invoices | The current billing period's invoice. Scope ledger:read. 120/min. |
| GET | /api/v1/par/reconcile | Double-entry ledger reconciliation: balanced or not, negative vaults, open cases, dead-letter webhooks. Scope payments:read. 60/min. |
| GET | /api/v1/par/metrics | Prometheus exposition metrics for Par observability. Scope payments:read. 60/min. |
| GET | /api/v1/par/compliance/cases | The operator's AML review queue. Scope payments:read. 60/min. |
| GET | /api/v1/par/webhooks | The registered endpoint's URL and creation time. Never the signing secret. Scope webhooks:read. 120/min. |
| POST | /api/v1/par/webhooks | Register an endpoint and receive the signing secret once. Scope webhooks:manage. 20/min. |
| DELETE | /api/v1/par/webhooks | Remove the registered endpoint. Scope webhooks:manage. 20/min. |
| GET | /api/v1/par/webhooks/deliveries | Outbound delivery history and delivery status. Scope payments:read. 60/min. |
| POST | /api/v1/par/webhooks/deliveries/{deliveryId}/replay | Replay a failed or dead-letter delivery. Scope webhooks:manage. 30/min. |
| POST | /api/v1/par/webhooks/test | Deliver 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.
| Method | Path | Description |
|---|---|---|
| GET | /api/par/state | Everything the console renders: swaps, rates, liquidity, billing, compliance cases, hedge intents, deliveries and reconciliation. 120/min. |
| POST | /api/par/quotes | Lock a quote from the console. 60/min. |
| GET | /api/par/swaps | List this operator's swaps. 120/min. |
| POST | /api/par/swaps | Open a swap from the console. 40/min. |
| POST | /api/par/swaps/{swapId}/cancel | Cancel a locked swap. 30/min. |
| POST | /api/par/compliance/{caseId}/resolve | Approve or reject a compliance case. An approval resumes a parked swap. 30/min. |
| GET | /api/par/webhooks | The registered endpoint. 120/min. |
| POST | /api/par/webhooks | Register an endpoint and receive the secret once. 20/min. |
| DELETE | /api/par/webhooks | Remove the endpoint. 20/min. |
| POST | /api/par/webhooks/test | Deliver or preview a signed event. 20/min. |
| POST | /api/par/webhooks/deliveries/{deliveryId}/replay | Replay 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
| Method | Path | Description |
|---|---|---|
| POST | /api/webhooks/par-deposit | Signed deposit notification from a chain watcher or operator. HMAC-SHA256 over the raw body; stale timestamps and replayed hashes are rejected. 100/min. |
x402
| Method | Path | Description |
|---|---|---|
| GET | /api/x402/par | An 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.
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.
| Parameter | Type | Description |
|---|---|---|
| 400 INVALID_REQUESToptional | error code | The body or a path parameter failed validation. |
| 401 / 403optional | error code | Missing credentials, a missing scope, a signature failure, or a swap the caller does not own. |
| 409optional | error code | An illegal state transition, or a quote that has already been consumed. |
| 410 QUOTE_EXPIREDoptional | error code | The 15-minute quote window closed before the swap was opened. |
| 422 INVALID_ADDRESSoptional | error code | The payout address does not obey the destination network's format. |
| 429optional | error code | The per-operator budget for this endpoint is spent. |
| 503 SETTLEMENT_DISARMEDoptional | error code | No custody vault is configured for the network, or the rail is paused. |
Errors never carry internals
