API reference
Upload PDF bank statements and read their transactions from your own code. Included in Starter, Professional and Business.
Authentication
Create a key in the app under Developer API and send it on every request as Authorization: Bearer cbs_live_…. A key acts as you: it sees your statements, files them under your bank accounts and uses your plan's pages. Keys stop working while your plan isn't active.
Quickstart
# 1. Upload a statement
curl https://convertbs.com/api/v1/conversions \
-H "Authorization: Bearer $CONVERTBS_KEY" \
-F file=@chase-november.pdf
# 2. When it's completed (webhook or GET /api/v1/conversions/{id}),
# read its transactions as JSON, CSV or XLSX
curl "https://convertbs.com/api/v1/conversions/{id}/transactions?format=json" \
-H "Authorization: Bearer $CONVERTBS_KEY"Endpoints
POST /api/v1/conversions: Upload a PDF (up to 4 MB in the body, 25 MB with upload_url) and start converting itPOST /api/v1/conversions/{id}/confirm: Start the conversion after a PUT to upload_urlGET /api/v1/conversions: List your statements, newest firstGET /api/v1/conversions/{id}: Status, account, period and totalsGET /api/v1/conversions/{id}/transactions: Transactions as JSON, or a CSV, XLSX, QBO, QFX, OFX, QIF, IIF or Tally fileDELETE /api/v1/conversions/{id}: Delete a statement and its transactionsGET /api/v1/bank-accounts: Your bank accountsGET /api/v1/usage: Pages used and left this period
60 requests a minute per key · Starter, Professional and Business plans.
Uploading
For PDFs up to 4 MB, send multipart/form-data with the file in a file field (and optionally bank_account_id). The response is the new conversion with status pending or processing.
For larger PDFs (up to 25 MB), send JSON { "file_name": "march.pdf", "file_size": 5242880 }. The response has an upload_url: PUT the file there with the returned headers within 15 minutes, then call POST /api/v1/conversions/{id}/confirm.
A conversion ends as completed (balances check out), needs_review (rows extracted, but the balances don't add up or a page was unreadable) or failed (pages are refunded). Use a webhook instead of polling.
Transactions
GET /api/v1/conversions/{id}/transactions returns JSON rows: date, description, reference, money_out, money_in, balance. Amounts are decimal strings, never floats. Add ?format=csv, xlsx, qbo, qfx, ofx, qif, iif or tally for a file in your saved export settings.
Errors
Errors return a status code and { "error": { "code": "…", "message": "…" } }. Codes: unauthorized (401), forbidden (403, e.g. the plan doesn't include the API), not_found (404), conflict (409), quota_exceeded (402, out of pages), rate_limited (429), invalid_input (400).
Webhooks
Add endpoints under Integrations → Webhooks. When a statement finishes we send a POST with a JSON body to each endpoint that wants the event: conversion.completed, conversion.needs_review or conversion.failed. The body has the event id, type, created and data with the statement's id, status, account, period, totals and transaction count; fetch the rows with the API.
Answer with any 2xx within 10 seconds. Anything else is retried after 1, 5, 30, 120, 360 and 900 minutes. Redirects are not followed, and the URL must be public HTTPS.
Verifying the signature
Each request has a ConvertBS-Signature header like t=1796300754,v1=5f2b…. Compute an HMAC-SHA256 of {t}.{raw body} with the endpoint's signing secret, compare it to v1 in constant time, and reject timestamps older than five minutes.
import { createHmac, timingSafeEqual } from "node:crypto";
function verify(secret, rawBody, header) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
if (Math.abs(Date.now() / 1000 - Number(parts.t)) > 300) return false;
const expected = createHmac("sha256", secret)
.update(`${parts.t}.${rawBody}`)
.digest("hex");
return expected.length === parts.v1?.length &&
timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}