API reference · v1
FurlPay API
Programmable stablecoin payments, transparent conversion and financial infrastructure. This page lists only routes that exist in the repository; schemas are quoted from their validation code.
Environment: Par is Sandbox-only. Production settlement, custody vaults and chain RPCs are not enabled, so no request here can move real funds.
Quickstart
Generate a Sandbox key
Sandbox credentials are separate from production and never leave the server.
Open API keysRequest a quote
POST the Par quote body below; the response is a locked quote with an expiry.
Open Par consoleAuthentication
API routes accept a FurlPay API key in the Authorization header. Console routes use the authenticated session instead. Keys are shown once at creation, are environment-scoped and must never be embedded in a browser bundle.
Manage keys in the developer console.
Verified endpoints
Methods and bodies below are read from the route handlers. There is no published OpenAPI document yet, so none is advertised; this table is the contract of record for now.
| Method | Path | Auth | Body | Notes |
|---|---|---|---|---|
| POST | /api/par/quotes | API key | sellToken, buyToken, sellNetwork, buyNetwork, sellAmount, operatorRef? | Locks a 1:1 quote; response carries quoteId and expiresAt. |
| GET | /api/par/swaps | API key | — | Lists the operator's swaps, newest first. |
| POST | /api/par/swaps | API key | quoteId, deposit details | Creates a swap from a live, unused quote. |
| GET | /api/par/state | API key | — | Aggregate Par state for the operator. |
| POST | /api/orders/new | Session | quoteId, networkId, walletId, bankAccountId | Creates an order from a server-stored quote. |
| POST | /api/wallet/chains/challenge | Session | chain, address | Issues an account-bound signing challenge. |
Request and response
Request
POST /api/par/quotes
Authorization: Bearer <furlpay_api_key>
Content-Type: application/json
{
"sellToken": "USDT",
"buyToken": "USDC",
"sellNetwork": "ethereum",
"buyNetwork": "arbitrum",
"sellAmount": "1000.00",
"operatorRef": "invoice-1042"
}Response shape
{
"quoteId": "uuid",
"sellToken": "USDT",
"buyToken": "USDC",
"sellNetwork": "ethereum",
"buyNetwork": "arbitrum",
"sellAmountMinor": "1000000000",
"buyAmountMinor": "1000000000",
"rate": "1.000000",
"createdAt": "ISO-8601",
"expiresAt": "ISO-8601",
"environment": "sandbox"
}cURL
curl -X POST https://furlpay.com/api/par/quotes \
-H "Authorization: Bearer $FURLPAY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"sellToken":"USDT","buyToken":"USDC","sellNetwork":"ethereum","buyNetwork":"arbitrum","sellAmount":"1000.00"}'Lifecycle and idempotency
Quotes expire; swaps move through locked, deposit_detected, deposit_confirmed, aml_screening, settling, completed, or fail to failed / expired. The engine rejects illegal transitions.
Order creation accepts a client order id and returns the original order on replay. Par quotes are single-use: a reused quote is refused rather than repriced. Webhooks are HMAC-SHA256 over ${timestamp}.${rawBody}.
Errors and limits
Failures return a code and message; validation failures include the field. Rate limits are per credential and return 429 with a retry hint. See the error guide and rate limits.
Machine-readable: /llms.txt indexes the docs. There is no OpenAPI JSON or Postman collection yet — publishing one before the contract is final would be a promise the API cannot keep.
