Public REST API for bank statement conversion
ClearlyLedger exposes a public REST API for programmatic PDF bank statement conversion. The full OpenAPI 3.0 specification is machine-readable: every operation has a unique operationId, a description, typed request parameters and a typed JSON response schema, so it can be imported directly into an LLM function-calling tool, Postman, or any OpenAPI-aware client.
Start with a small synthetic statement and the current specification. Check the operation's authentication requirements, request fields and response schema before sending a request. Keep credentials in your server environment and use fictional financial data while checking field mappings.
Handle unsuccessful responses separately from completed conversions. A returned spreadsheet still needs source-row review: compare dates, signed amounts and descriptions, then inspect declared issues. An unavailable balance check is not a pass. Confirm the destination application's format requirements before treating an export as import-ready.
Machine-readable spec: /openapi.json. Interactive documentation (Swagger UI): clearlyledger-backend-production.up.railway.app/docs.
Base URL: https://clearlyledger-backend-production.up.railway.app — also reachable under https://clearlyledger.com/api/ for routes namespaced under /api. Authenticated endpoints take a Supabase-issued JWT as Authorization: Bearer <token>.
curl https://clearlyledger.com/api/healthReturns a JSON health payload. Errors — including 404s for unknown routes — are returned as structured JSON, never an HTML error page.
Conversion
POST /convert, /convert/batch, /convert/quickbooks, /convert/xero, /convert/gnucash, /convert/accounting
Conversion history
GET /conversions/history, /conversions/recent, /conversions/{id}/export
Bank coverage
GET /banks lists supported bank profiles.
Usage & billing
GET /usage/stats, /billing/plan
Health
GET /api/health
See the full OpenAPI spec for request and response schemas on every operation.
For API access questions, rate limits, or enterprise integration requests, contact us.